Pith. sign in

REVIEW 20 cited by

DocETL: Agentic Query Rewriting and Evaluation for Complex Document Processing

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2410.12189 v3 pith:23NNQ6EO submitted 2024-10-16 cs.DB cs.AI

DocETL: Agentic Query Rewriting and Evaluation for Complex Document Processing

classification cs.DB cs.AI
keywords datadocetlevaluationprocessingunstructuredagent-basedcomplexdocument
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
read the original abstract

Analyzing unstructured data has been a persistent challenge in data processing. Large Language Models (LLMs) have shown promise in this regard, leading to recent proposals for declarative frameworks for LLM-powered processing of unstructured data. However, these frameworks focus on reducing cost when executing user-specified operations using LLMs, rather than improving accuracy, executing most operations as-is (in a single LLM call). This is problematic for complex tasks and data, where LLM outputs for user-defined operations are often inaccurate, even with optimized prompts. For example, an LLM may struggle to identify {\em all} instances of specific clauses, like force majeure or indemnification, in lengthy legal documents, requiring decomposition of the data, the task, or both. We present DocETL, a system that optimizes complex document processing pipelines, while accounting for LLM shortcomings. DocETL offers a declarative interface for users to define such pipelines and uses an agent-based approach to automatically optimize them, leveraging novel agent-based rewrites (that we call rewrite directives), as well as an optimization and evaluation framework. We introduce (i) logical rewriting of pipelines, tailored for LLM-based tasks, (ii) an agent-guided plan evaluation mechanism that synthesizes and orchestrates task-specific validation prompts, and (iii) an optimization algorithm that efficiently finds promising plans, considering the latencies of agent-based plan generation and evaluation. Our evaluation on four different unstructured document analysis tasks demonstrates that DocETL finds plans with outputs that are 25 to 80% more accurate than well-engineered baselines, addressing a critical gap in unstructured data analysis. DocETL is open-source at docetl.org, and as of March 2025, has amassed over 1.7k GitHub Stars, with users spanning a variety of domains.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 20 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Fast LLM-Based Semantic Filtering: From a Unified Framework to an Adaptive Two-Phase Method

    cs.DB 2026-06 unverdicted novelty 7.0

    An adaptive two-phase semantic filter using clustering then a hybrid proxy trained on LLM confidence achieves 1.6-2.0x speedup over prior methods at 90% accuracy on 10K document corpora.

  2. Navigating the Conceptual Multiverse

    cs.HC 2026-04 unverdicted novelty 7.0

    The conceptual multiverse system with a verification framework for decision structures helps users in philosophy, AI alignment, and poetry build clearer working maps of open-ended problems by making implicit LLM choic...

  3. PLOP: Cost-Based Placement of Semantic Operators in Hybrid Query Plans

    cs.DB 2026-04 conditional novelty 7.0

    PLOP is a cost-based optimizer that finds optimal placements for semantic LLM operators in hybrid query plans via dynamic programming, delivering up to 1.5x speedup and 4.29x cost reduction on 44 benchmark queries whi...

  4. AnnoRetrieve: Efficient Structured Retrieval for Unstructured Document Analysis

    cs.IR 2026-04 unverdicted novelty 7.0

    AnnoRetrieve uses auto-generated structured schemas and queries to retrieve information from unstructured documents more efficiently and accurately than embedding-based methods.

  5. ASMR: Agentic Schema Generation for Ship Maintenance Report Writing

    cs.AI 2026-07 conditional novelty 6.0

    ASMR extracts concepts with an LLM, clusters them into candidate fields, then uses RL to select compact non-redundant schemas for each ship-report form type.

  6. SemJoin: Semantic Join Optimization

    cs.DB 2026-06 unverdicted novelty 6.0

    SemJoin dynamically routes semantic joins via an LLM advisor to Cluster Join or Classifier strategies, achieving 20-33 higher F1 than ABJ and lower token cost than FDJ on three datasets.

  7. Larch: Learned Query Optimization for Semantic Predicates

    cs.DB 2026-06 unverdicted novelty 6.0

    Larch uses a GNN-MDP formulation and a selectivity predictor plus dynamic programming to reorder semantic filter evaluation, cutting token usage 3x-19x versus prior systems on real and synthetic workloads.

  8. POIROT: Interrogating Agents for Failure Detection in Multi-Agent Systems

    cs.AI 2026-06 unverdicted novelty 6.0

    POIROT protocol repurposes agents in LLM multi-agent systems as an internal diagnostic layer for failure detection, outperforming single-LLM evaluators with gains that increase with complexity, agent count, and fault types.

  9. PrismaDV: Automated Task-Aware Data Unit Test Generation

    cs.LG 2026-04 unverdicted novelty 6.0

    PrismaDV generates task-aware data unit tests by jointly analyzing downstream code and dataset profiles, outperforming task-agnostic baselines on new benchmarks spanning 60 tasks, with SIFTA enabling automatic prompt ...

  10. Semantic Data Processing with Holistic Data Understanding

    cs.DB 2026-04 unverdicted novelty 6.0

    HoldUp uses LLM-guided clustering to provide holistic dataset context for semantic operators, yielding up to 33% higher classification accuracy and 30% higher scoring accuracy than row-by-row LLM processing across 15 ...

  11. iPDB -- Optimizing Semantic SQL Queries

    cs.DB 2026-01 unverdicted novelty 6.0

    iPDB adds a predict operator and semantic query optimizations to SQL so that LLM and ML calls run efficiently inside the database, delivering 2.5x average and up to 30x speedup over prior systems.

  12. ScaleDoc: Scaling LLM-based Predicates over Large Document Collections

    cs.DB 2025-09 unverdicted novelty 6.0

    ScaleDoc achieves over 2x end-to-end speedup and up to 85% fewer LLM invocations for semantic predicates on large document collections via offline LLM representations, contrastive-trained proxy filtering, and adaptive...

  13. Access Paths for Efficient Ordering with Large Language Models

    cs.DB 2025-08 unverdicted novelty 6.0

    Introduces the LLM ORDER BY semantic operator with algorithmic improvements, a semantic-aware external merge sort, and a budget-aware optimizer that selects near-optimal access paths for LLM-based ordering.

  14. CADENZA in Action: Breaking the Monolith with Intent-Dependent Plan Spaces for Semantic Queries

    cs.DB 2026-07 unverdicted novelty 5.0

    CADENZA demonstrates an optimizer that breaks semantic query intents into alternative plans, selects implementations per step, and optimizes under user preferences via a web interface.

  15. RAIDS: Rethinking Data Systems as Responsible Intelligent Infrastructure

    cs.DB 2026-06 unverdicted novelty 5.0

    RAIDS proposes making responsibility an execution-level property in data systems via composable operator contracts and a preservation objective.

  16. CAMI: Cost-Aware Agent-Guided Multi-Indexing for Semantic Retrieval

    cs.IR 2026-06 unverdicted novelty 5.0

    CAMI frames multi-index construction for semantic retrieval as a budgeted multi-objective portfolio problem and uses agent-guided search plus confidence-aware pruning to find high-recall configurations with reduced ev...

  17. Blue Data Intelligence Layer: Streaming Data and Agents for Multi-source Multi-modal Data-Centric Applications

    cs.AI 2026-04 unverdicted novelty 5.0

    Blue DIL is a new architecture that unifies structured enterprise data, LLM world knowledge, and personal context through declarative query plans and agents for multi-source multi-modal applications.

  18. How can LLMs Support Policy Researchers? Evaluating an LLM-Assisted Workflow for Large-Scale Unstructured Data

    cs.HC 2026-04 unverdicted novelty 5.0

    An LLM-assisted workflow scales thematic analysis of millions of online posts and interviews, yielding themes that align and diverge from authoritative policy reports and serving as rough input for policy researchers.

  19. 100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Models

    cs.DB 2026-03 unverdicted novelty 5.0

    Lightweight proxy models deliver over 100x cost and latency savings for semantic AI queries in databases with accuracy preserved or improved on benchmarks up to 10M rows.

  20. Making Prompts First-Class Citizens for Adaptive LLM Pipelines

    cs.DB 2025-08 unverdicted novelty 5.0

    SPEAR proposes structured prompt views, runtime adaptive refinement, and policy rules to make prompts first-class, versioned, and evolvable components in complex LLM applications.