Nov 29, 2024 · 55m · latent-space
[Paper Club] DocETL: Agentic Query Rewriting + Eval for Complex Document Processing w Shreya Shankar
gold bands on the timeline = statements, start to end. Hover to read, click to jump. CC turns on captions
In this Paper Club session, host Eugene Yan and author Shreya Shankar break down DocETL, an agentic framework that formalizes complex document processing through database-style operators, query rewriting, and automated plan optimization. The discussion covers operator design, LLM-as-a-judge evaluation pipelines, and how DocETL enables comprehensive dataset analytics beyond standard RAG systems.
How this conversation actually went
Every chapter scored 0–10 on four independent dynamics. Hover any point for the reasoning behind the score. How this is scored →
speaking balance: gold is the hosts, purple is the guest (3 minute bins)
Swix and Eugene directly spar over ranking architectures, with Swix doubting the necessity of pairwise comparisons and Eugene asserting strong conviction that pairwise is required.
Hardest push from the hosts ▶ 48:36 Preempting criticism of weak academic evaluationsShreya pushes back on conventional academic benchmark expectations, preempting Eugene's notes by candidly admitting the evaluation lacks ground truth because real-world end users never have labeled data.
Biggest teaching moment ▶ 47:13 Reframing DocETL against RAG misconceptionsShreya systematically educates Vibhu on the architectural scope of DocETL, correcting the idea that it is merely a pre-processing pipeline for RAG and defining it as an analytical semantic layer.
The host holds their own ▶ 43:36 Citing literature on LLM judge ensembling superiorityEugene demonstrates deep domain expertise by citing the Cohere PoLL paper to explain how majority-vote ensembles of smaller models achieve higher human correlation than single large models.
the scores for every segment, with the reasoning behind each
| Chapter | Topic | The hosts as informed peer | Guest teaching | Guest disagreement | The hosts pushing back | Why |
|---|---|---|---|---|---|---|
| Overview of Core and Auxiliary DocETL Operators | 7 | 0 | 0 | 0 | Eugene walks through DocETL's core operators (Map, Reduce, Resolve, Filter, Split, Gather) and connects them to production data engineering challenges like entity deduplication. | |
| Discussion on Ranking, Filtering, and Operator Categorization | 7 | 3 | 3 | 3 | Swix questions the absence of a rank operator, prompting a technical exchange between Eugene, Swix, and Shreya over pairwise ranking versus embedding similarity. | |
| Rewrite Directives: Data Decomposition and Hierarchical Aggregation | 7 | 3 | 1 | 2 | Eugene explains rewrite directives and shares empirical findings where removing chunking improved metrics, while Shreya reinforces why automated optimization is necessary due to task-dependent variability. | |
| Iterative Refinement, Gleaning, and Projection Synthesis | 7 | 4 | 2 | 3 | Vibhu probes ambiguous paper phrasing regarding data generation versus validation models, and Eugene challenges the premise that LLM verification is always easier than generation. | |
| The Optimization Engine and Pipeline Rewrite Evaluation | 7 | 3 | 1 | 2 | Eugene details the candidate rewrite evaluation pipeline and cost dynamics, while Shreya clarifies practical constraints around synthetic operators lacking ground-truth labels. | |
| Evaluation Reliability and LLM-as-a-Judge Ensembling | 8 | 2 | 1 | 2 | Eugene and Shreya explain why LLM-as-a-judge works for binary precision-recall tasks, with Eugene citing empirical literature on multi-model ensembling beating GPT-4 standalone evaluation. | |
| Differentiating DocETL from Traditional RAG Systems | 4 | 7 | 1 | 2 | Vibhu asks whether DocETL is a document chunker for RAG, prompting Shreya to clearly explain that DocETL is an analytical semantic layer for whole-dataset processing rather than point-lookup retrieval. | |
| Ground Truth Challenges, Evaluation Trade-offs, and Paper Takeaways | 7 | 5 | 2 | 3 | Shreya candidly preempts Eugene's critique of the paper's heuristic evaluation metrics, explaining the reality of messy enterprise data without ground truth, while Eugene emphasizes precision risks. |