LlamaIndex’s ExtractBench Pro measures data extraction from difficult documents
LlamaIndex’s new ExtractBench Pro tests data extraction from 100 programmatically generated, difficult documents. In the company’s own measurements, coding agents achieved the best Value F1 and Grounded F1 scores, but using them cost up to $0.95 per page.
LlamaIndex, which sells AI tools for document processing, released the ExtractBench Pro benchmark on 15 October. The benchmark measures how well programs extract information from exceptionally difficult documents. LlamaIndex designed and ran the test itself, and its own LlamaExtract service was among the systems tested. The results are therefore the company’s own measurements.
In data extraction, a program reads a document and fills in the fields of a predefined structure, or schema, such as names and amounts. LlamaIndex’s blog says the original ExtractBench, which contains 370 documents, is becoming too easy: even the cheapest LlamaExtract tier scores above 93 per cent Value F1 on it. The metric takes into account both whether the extracted values are correct and whether all the values are found.
The 100 documents in the Pro version are based on rare and difficult document types that the company has received from its customers. The documents themselves, however, were generated programmatically, combining invented content with the formatting of real documents. This keeps the sources anonymous and means the correct answers are known for certain, the company said.
| Challenge | What makes it difficult | Documents |
|---|---|---|
| Document-specific rules | a correction or note on another page changes a value | 22 |
| In-house terminology | an organisation’s own definition changes the classification | 14 |
| In-house calculation rules | the value is calculated from several figures | 12 |
| Drawn relationships | the value depends on a line in a diagram | 20 |
| Charts in documents | the value is read from a curve as a range | 25 |
| Long chart pages | hundreds of readings from a very long page, such as a borehole log | 7 |
Source: LlamaIndex blog. The challenge names are our own wording.
LlamaIndex tested 12 systems: four commercial extraction services, five coding agents (Claude Code and Codex with different models) and three of its own LlamaExtract tiers. A coding agent is an AI program that writes and runs code. Each system had 30 minutes to process each document. If a system failed or exceeded the time limit, it scored zero on that document.
The main metric is the proportion of documents in which every value is correct. The company justifies the choice by saying that a system either solved a document’s challenge almost without error or clearly failed. The Grounded F1 metric also requires the system to point correctly to the place where it found the value.
The blog says the LlamaExtract tiers scored 18.5–47.0 percentage points lower on Value F1 and 22.9–30.4 percentage points lower on Grounded F1 than in the original test. Coding agents achieved the best results on both metrics, but they were expensive to use: a page cost $0.41 with the Opus model and $0.95 with the Astra model. Claude also often exceeded the time limit. The company said its own tiers give the best results for their price on all metrics at under 25 cents per page. It acknowledged, however, that it has much room for improvement on drawn relationships and long chart pages.
The blog shows the systems’ results only as charts. Jerry Liu of LlamaIndex wrote on X that Codex using the Astra model reaches about 58 per cent Value F1 and the company’s agentic tiers 20–40 per cent. These figures are hard to reconcile with the blog’s data: the cheapest tier scored above 93 per cent in the original test, and Value F1 fell by at most 47 percentage points. The sources do not make clear which metric Liu means.
The code is in LlamaIndex’s GitHub repository run-llama/ExtractBench. Its download command uv run extract-bench download --dataset pro fetches the 100-document dataset, the schemas and the correct answers; the command requires the uv tool. The company also published a research paper, and Liu’s post on X linked to the dataset on Hugging Face as well.