OB-LegalQA: How well can SOTA Parsers help an agent answer questions on a redlined contract?*

* Published. The results shown are preliminary runs on the held-out set under the version 2 protocol. They will change as each partner's recommended configuration is incorporated and the set is re-run. The task scope is open: partners can propose tasks that reflect how their customers use document parsers, and these are added where they meet the benchmark's construction rules.

Introduction

+

OB-LegalQA measures how well document parsers prepare a heavily redlined contract for an AI agent that answers questions about it. The parsers under test are specialised document processing APIs, frontier vision-language models and general document processing platforms.

Each parser converts the contract PDF to markdown, and a fixed agent answers questions from that markdown. Any decision the agent makes downstream depends on how faithfully the parse kept the edits.

The parser is what is under test

The agent, its prompt and the questions are the same for every parser, so differences in score come from the parse. Edits appear in tables, footers and cross-references that span pages, and a correct answer requires the parser to handle each of these.

Semantic understanding of parsers is measured

Markdown can read cleanly and still misrepresent an edit, for example by presenting deleted text as live or dropping an insertion. An answer counts as correct only when the parse carried the meaning of the edit through to the agent.

Partners

Reducto, LlamaIndex and Extend are partners. Partners suggest domains, help us understand which evals and benchmarks are useful to their customers, and subscribe to our evaluations on the public and validation sets. Task design, data preparation, labelling and the held-out set are not shared with or influenced by any partner.

Representative Task

+

Sample task

question

How many business days’ advance written notice must Provider give LargeCo for Scheduled Maintenance?

hidden ground truth

Five (5) business days. The clause was negotiated down from ten, then to three, then settled at five — each earlier number struck in place.

What the page looks like

This is the clause as it appears in the PDF, page 18 of a 38-page service level agreement. A human reads it without effort: the struck numbers are history, the live number is five.

Clause 3 of a service level agreement as rendered in the PDF. The notice period reads 'at least ten three five (5310) business days', with 'ten', 'three' and '310' struck through and the surviving text reading 'five (5)'.

What the parser hands the agent

Two real parses of that same page. The first kept the deletions labelled, so the agent downstream can still tell which number is operative. The second returned the rule as nothing at all, and three rounds of negotiation collapsed into one live figure that was never agreed by anyone.

strike preserved
@@ a parser that kept the deletion labelledProvider shall notify LargeCo in writing (email beingsufficient) of Scheduled Maintenance at least- <del>ten</del> <ins>three-five</ins> (<ins>53</ins><del>10</del>)business days in advance.
strike lost
@@ a parser that dropped it — every round survives as live textProvider shall notify LargeCo in writing (email beingsufficient) of Scheduled Maintenance at least+ ten three five (5310)business days in advance.

Asked the question against the second parse, an agent answers 5310 business days, or ten. Neither is a reasoning failure — the number it needed was destroyed before it ever saw the document. That is the whole measurement: the agent and the question are held fixed, and the only variable is which parser produced the text.

Nine task types

Every task type is built from tracked changes in the source file, so every answer key comes from the markup. The nine types are: numeral strike, word-internal strike, struck clause, old and new side by side, struck definition term, struck table cell, mixed edits on a page, proposal between rounds, and stale cross-reference.

Evaluation Metrics

+

1. Answer classification

Each answer is assigned to one of four buckets. The three error buckets identify the kind of parsing failure behind a wrong answer.

correct

The deletion was treated as removed, and the agent gave the negotiated position.

stale · fused · other

stale: deleted text was read as live, the failure the benchmark targets.

fused: deleted and inserted text were combined into a value found in neither version, such as 5310 above.

other: wrong for a reason the markup does not explain.

A model judge, gpt-6-sol, assigns each answer to a bucket. It receives the question, the correct, stale and fused reference answers, and the agent's answer. The contract and the parser's name are withheld. Answers to the same question are judged in batches of twenty, each labelled separately. A fifth label, ambiguous, covers an answer that asserts two positions at once and is counted as other.

Each item also carries match_correct, match_stale and match_fused strings. The whole-token match result is stored on every row, so the judge can be checked against the version 1 scoring rule.

2. Reference arms bound the score

Two reference arms, built from the source file without a vendor, set the range for vendor scores.

  • oracle: markdown with struck text marked as ~~like this~~. The ceiling, the score a perfect parse would allow.
  • blind: the same markdown with all markup removed. The floor, the score when every strike is lost.

A parser's position between the two shows how much of the markup survived its parse. A score below the floor indicates errors beyond tracked changes.

3. Replicates and spread

Each vendor parses every contract three times, and the agent answers each question three times per parse. Each parser therefore has nine replicates and 13,500 graded answers. Accuracy is the share of those answers judged correct.

The ± is the sample standard deviation of accuracy across the nine replicates and includes both parser and agent variation. Parsers within each other's spread are treated as tied. The reference arms come from the source file, so they are parsed once and asked three times.

4. Cost

Vendors bill per page, and questions asked against a parsed document incur no vendor charge. Each contract is parsed three times and every parse is billed. Costs are reported per pass: one parse of the corpus, averaged over the three parses.

Vendor cost is taken from:

  • usage metadata reported by the API, for Datalab
  • credits consumed, for Extend and Pulse
  • list price per page, for the other parsers
  • token list prices, for the frontier models

Agent and judge costs are excluded. Parser $ per 1,000 correct answers is the cost of one pass divided by the number of correct answers from one ask of the question set, multiplied by 1,000. It rises with both price and error rate.

Results

+

Preliminary results. They use the 1,500-question held-out set and the version 2 protocol described above.

Each of the 94 contracts is scored in two renderings: the exported PDF with its text layer, and the same pages as 200 dpi images. The oracle and blind reference arms are in a separate table because they set the scale for vendor scores. Correct is the share of answers that match the agreed position in the contract.

Native rendering

Extend has the highest accuracy, 93.1% ± 0.3, which is 1.5 points below the oracle ceiling. Claude Fable 5.1 is second at 91.4%. Reducto, LlamaParse agentic plus and LlamaParse agentic are within one point of each other.

Figure 1a. Accuracy (%) vs median parse latency (s).
51020501002004000%20%40%60%80%100%median parse latency per contract (s), log ← betteraccuracy (%) ↑ betteroracle ceiling 94.6%blind floor 25.2%Extend: median parse latency (s) 16.9; accuracy (%) 93.1 ± 0.3; stale 1.8%ExtendClaude Fable 5.1: median parse latency (s) 336.3; accuracy (%) 91.4 ± 0.3; stale 2.6%Claude Fable 5.1Reducto: median parse latency (s) 5.3; accuracy (%) 84.8 ± 0.3; stale 5.0%ReductoLlamaParse agentic plus: median parse latency (s) 82.4; accuracy (%) 84.7 ± 0.3; stale 7.3%LlamaParse agentic plusLlamaParse agentic: median parse latency (s) 15.6; accuracy (%) 83.8 ± 0.6; stale 8.4%LlamaParse agenticDatalab track changes: median parse latency (s) 34.3; accuracy (%) 80.7 ± 0.4; stale 10.0%Datalab track changesDatalab convert: median parse latency (s) 23.7; accuracy (%) 63.9 ± 3.4; stale 19.2%Datalab convertGPT-6 Astra: median parse latency (s) 256.1; accuracy (%) 61.6 ± 0.4; stale 25.6%GPT-6 AstraPulse: median parse latency (s) 53.3; accuracy (%) 48.4 ± 0.4; stale 36.3%PulseMistral OCR: median parse latency (s) 14.6; accuracy (%) 36.9 ± 0.4; stale 42.8%Mistral OCRUnstructured: median parse latency (s) 65.3; accuracy (%) 27.0 ± 0.2; stale 56.0%Unstructured
Figure 1b. Accuracy (%) vs parser $ per 1,000 correct answers (USD).
$0$25$50$75$100$125$150$175$2000%20%40%60%80%100%parser $ per 1,000 correct answers (USD) ← betteraccuracy (%) ↑ betteroracle ceiling 94.6%blind floor 25.2%Extend: parser $ per 1,000 correct $40.91; accuracy (%) 93.1 ± 0.3; stale 1.8%ExtendClaude Fable 5.1: parser $ per 1,000 correct $182.99; accuracy (%) 91.4 ± 0.3; stale 2.6%Claude Fable 5.1Reducto: parser $ per 1,000 correct $17.97; accuracy (%) 84.8 ± 0.3; stale 5.0%ReductoLlamaParse agentic plus: parser $ per 1,000 correct $101.17; accuracy (%) 84.7 ± 0.3; stale 7.3%LlamaParse agentic plusLlamaParse agentic: parser $ per 1,000 correct $22.71; accuracy (%) 83.8 ± 0.6; stale 8.4%LlamaParse agenticDatalab track changes: parser $ per 1,000 correct $18.89; accuracy (%) 80.7 ± 0.4; stale 10.0%Datalab track changesDatalab convert: parser $ per 1,000 correct $23.86; accuracy (%) 63.9 ± 3.4; stale 19.2%Datalab convertGPT-6 Astra: parser $ per 1,000 correct $126.19; accuracy (%) 61.6 ± 0.4; stale 25.6%GPT-6 AstraPulse: parser $ per 1,000 correct $47.17; accuracy (%) 48.4 ± 0.4; stale 36.3%PulseMistral OCR: parser $ per 1,000 correct $16.54; accuracy (%) 36.9 ± 0.4; stale 42.8%Mistral OCRUnstructured: parser $ per 1,000 correct $84.67; accuracy (%) 27.0 ± 0.2; stale 56.0%Unstructured

Native rendering, held-out set. Each point is one parser configuration, coloured by vendor. Claude Fable 5.1 and GPT-6 Astra are frontier models. The dashed line connects configurations that no other configuration beats on both axes. The dotted lines mark the oracle ceiling and the blind floor. Hover a point for its values. Latency is wall-clock time per contract, including upload and polling; contracts average 24 pages. Cost is defined in section 4.

doc-processing/redline-parsing/held-out · native · doc-processing-redline-v2-2026-10 · the board openbenchmarks.com/document-processing reads
ParserCorrect ± sdStaleParser $ / 1k correctMedian parse (s)
Specialised document parsers
Datalab convert63.9% ± 3.419.2%$23.8623.7
Datalab track changes80.7% ± 0.410.0%$18.8934.3
Extend93.1% ± 0.31.8%$40.9116.9
LlamaParse agentic83.8% ± 0.68.4%$22.7115.6
Mistral OCR36.9% ± 0.442.8%$16.5414.6
Pulse48.4% ± 0.436.3%$47.1753.3
Reducto84.8% ± 0.35.0%$17.975.3
Unstructured27.0% ± 0.256.0%$84.6765.3
Long running agentic parsers
LlamaParse agentic plus84.7% ± 0.37.3%$101.1782.4
Frontier models (VLMs)
Claude Fable 5.191.4% ± 0.32.6%$182.99336.3
GPT-6 Astra61.6% ± 0.425.6%$126.19256.1
Reference armWhat it isCorrect ± sdStale
blindevery mark dropped, the floor25.2% ± 0.457.2%
oraclestruck text kept as ~~like this~~, the ceiling94.6% ± 0.01.5%

Image-only rendering

GPT-6 Astra has the highest accuracy, 93.4% ± 0.5, against 61.6% on the native rendering. Extend is second at 86.7%. Two parsers were not run on this rendering. The page images exceed the input limit of Claude Fable 5.1, and Mistral OCR converts every input to images, so both renderings would give the same result.

Figure 2a. Accuracy (%) vs median parse latency (s).
51020501002004000%20%40%60%80%100%median parse latency per contract (s), log ← betteraccuracy (%) ↑ betteroracle ceiling 93.8%blind floor 23.6%GPT-6 Astra: median parse latency (s) 247.8; accuracy (%) 93.4 ± 0.5; stale 2.2%GPT-6 AstraExtend: median parse latency (s) 19.5; accuracy (%) 86.7 ± 0.3; stale 2.6%ExtendReducto: median parse latency (s) 6.5; accuracy (%) 83.9 ± 0.4; stale 5.7%ReductoDatalab track changes: median parse latency (s) 40.1; accuracy (%) 80.7 ± 0.5; stale 9.9%Datalab track changesLlamaParse agentic: median parse latency (s) 21.5; accuracy (%) 79.9 ± 0.3; stale 11.8%LlamaParse agenticLlamaParse agentic plus: median parse latency (s) 132.8; accuracy (%) 74.9 ± 0.6; stale 15.2%LlamaParse agentic plusPulse: median parse latency (s) 56.6; accuracy (%) 65.0 ± 0.6; stale 19.8%PulseDatalab convert: median parse latency (s) 49.8; accuracy (%) 63.9 ± 3.2; stale 18.4%Datalab convertUnstructured: median parse latency (s) 71.2; accuracy (%) 27.0 ± 0.5; stale 55.3%Unstructured
Figure 2b. Accuracy (%) vs parser $ per 1,000 correct answers (USD).
$0$25$50$75$100$1250%20%40%60%80%100%parser $ per 1,000 correct answers (USD) ← betteraccuracy (%) ↑ betteroracle ceiling 93.8%blind floor 23.6%GPT-6 Astra: parser $ per 1,000 correct $107.91; accuracy (%) 93.4 ± 0.5; stale 2.2%GPT-6 AstraExtend: parser $ per 1,000 correct $43.93; accuracy (%) 86.7 ± 0.3; stale 2.6%ExtendReducto: parser $ per 1,000 correct $18.17; accuracy (%) 83.9 ± 0.4; stale 5.7%ReductoDatalab track changes: parser $ per 1,000 correct $18.89; accuracy (%) 80.7 ± 0.5; stale 9.9%Datalab track changesLlamaParse agentic: parser $ per 1,000 correct $23.83; accuracy (%) 79.9 ± 0.3; stale 11.8%LlamaParse agenticLlamaParse agentic plus: parser $ per 1,000 correct $114.50; accuracy (%) 74.9 ± 0.6; stale 15.2%LlamaParse agentic plusPulse: parser $ per 1,000 correct $35.17; accuracy (%) 65.0 ± 0.6; stale 19.8%PulseDatalab convert: parser $ per 1,000 correct $23.84; accuracy (%) 63.9 ± 3.2; stale 18.4%Datalab convertUnstructured: parser $ per 1,000 correct $84.46; accuracy (%) 27.0 ± 0.5; stale 55.3%Unstructured

Image-only rendering, held-out set. Same conventions as Figure 1.

doc-processing/redline-parsing/held-out · image-only · doc-processing-redline-v2-2026-10 · the board openbenchmarks.com/document-processing reads
ParserCorrect ± sdStaleParser $ / 1k correctMedian parse (s)
Specialised document parsers
Datalab convert63.9% ± 3.218.4%$23.8449.8
Datalab track changes80.7% ± 0.59.9%$18.8940.1
Extend86.7% ± 0.32.6%$43.9319.5
LlamaParse agentic79.9% ± 0.311.8%$23.8321.5
Pulse65.0% ± 0.619.8%$35.1756.6
Reducto83.9% ± 0.45.7%$18.176.5
Unstructured27.0% ± 0.555.3%$84.4671.2
Long running agentic parsers
LlamaParse agentic plus74.9% ± 0.615.2%$114.50132.8
Frontier models (VLMs)
GPT-6 Astra93.4% ± 0.52.2%$107.91247.8
Reference armWhat it isCorrect ± sdStale
blindevery mark dropped, the floor23.6% ± 0.657.5%
oraclestruck text kept as ~~like this~~, the ceiling93.8% ± 0.31.5%

How each parser was called

Every parser received the contract PDF and was asked for markdown. Document parsers received it as a multipart upload, and frontier models received the same bytes inline in the request. The source Word file was withheld, because its XML records each deletion directly.

doc-processing/redline-parsing/calls
ParserInterfaceSettings
Datalab convertREST, multipart POST /api/v1/convert, then polledmode: accurate, output_format=markdown
Datalab track changesREST, multipart POST /api/v1/track-changes, then polledoutput_format=markdown. A separate, purpose-built tracked-changes endpoint rather than a flag on the normal one.
Extendextend-ai SDK — files.upload() then parse()engine: parse_performance, advancedOptions.formattingDetection: change_tracking, 2026-10-17 build
LlamaParse agenticllama-cloud SDK — files.create() then parsing.parse()tier: agentic, version: 2026-09-29
Mistral OCRREST, JSON POST https://api.mistral.ai/v1/ocrmodel: mistral-ocr-4-1, PDF inline as base64
PulseREST, multipart POST https://api.runpulse.com/extractmodel: pulse-ultra-2, refine_options: text + tables + formatting
Reductoreducto SDK — upload() then parse.run()model: r-1, formatting.include: change_tracking, 2026-10-06 build
UnstructuredREST, multipart POST /api/v2/parse, then polledprofile: best, output: markdown
LlamaParse agentic plusllama-cloud SDK — files.create() then parsing.parse()tier: agentic_plus, version: 2026-09-24
Claude Fable 5.1Bedrock converse — document block, PDF as bytesmodel: claude-fable-5-1, shared parser prompt
GPT-6 AstraOpenAI Responses API — input_file, PDF inline as base64model: gpt-6-astra, shared parser prompt

Frontier models have no tracked-change setting, so the prompt determines their output. All frontier models receive the same PDF and one shared instruction asking for a faithful markdown rendering. The instruction does not mention strikethrough, because a task-specific hint would change what is being measured.

Where a vendor provides a first-party SDK, the harness uses it, matching the integration path in the vendor's documentation. Datalab, Pulse and Unstructured are called over REST. Datalab's two endpoints and Unstructured's are asynchronous, and the harness polls each job every five seconds until it completes.

Vendors return markdown in different structures. LlamaParse returns one block per page, Reducto and Extend return chunks, and Pulse and Datalab return one document. The harness joins pages or chunks in order, which is the only transformation applied to vendor output.

Tracked-change detection is an opt-in setting on Reducto, Extend and Pulse, and a separate endpoint on Datalab. Without it, a parser returns struck text as ordinary prose and scores near the blind floor. Enabling it is the largest single effect observed in this benchmark, larger than the gap between any two correctly configured parsers. Every parser runs with its vendor's tracked-change support enabled, and the setting is listed beside each parser in the table above.

Every contract is run twice

The native PDFs have a text layer and are tagged, so the deletions are recorded in the PDF structure tree. Many real documents, such as scans, photocopies and phone photos of signed pages, have neither.

The corpus is therefore also rendered as images. Each page is converted to a 200 dpi JPEG and wrapped back into a PDF, which removes the text layer, embedded fonts and structure tree. Contracts, questions and answer keys are unchanged. The difference between the two sets of results shows how much of each score comes from the text layer.

Dataset Construction

+

Collection methodology

The corpus is built from RedlineBench (CC-BY-4.0), a set of simulated contract negotiations marked up by trained annotators representing each side. The edits are standard Word tracked changes and render like any other redline.

strip comments→render to PDF→read the tracked changes→write the questions→automatic checks
  1. Strip comments. The margin comments record the drafters' reasoning, and several state the answer, for example "We cannot commit to Resolution Times". A parser that extracts comments would give the agent the answer, so the benchmark would measure comment extraction. All comment parts and their references are removed from the file, and a check confirms that no comment text remains.
  2. Render. LibreOffice converts each stripped file to PDF. Tracked changes come through struck and coloured, the way Word draws them.
  3. Read the changes. Each edited clause is classified from the source file by the form of the edit, such as a strike inside a number, across a table cell or across a whole clause. For task types that span pages or drafts, the clause's position in the rendered PDF is also recorded.
  4. Write the questions. A model writes one question per edit from the resolved facts, without access to any vendor output. Edits that do not change the contract's obligations are discarded.
  5. Check. Automatic checks reject questions whose correct and stale answers are identical, and questions about wording, such as whether a word appears.

The image-only version

Every page is rasterised to a 200 dpi JPEG and wrapped back into a PDF, as described under Results. 200 dpi is the lowest resolution at which the markup stays legible. Redline strokes are 0.5 pt wide, about 1.4 pixels at 200 dpi, and lower resolutions begin to affect the answers.

What makes a task valid

A candidate task is kept only if its answer depends on whether the agent can see the strike. When the expected and stale answers match, the task cannot distinguish parsers and is dropped. This excludes:

  • edits that fix punctuation, spacing or a stray conjunction
  • questions about whether a word appears in the text
  • deletions whose content is restated verbatim elsewhere in the same clause
  • proposals carried forward as plain text, which remain visible even when strikes are dropped, so the agent can be right by chance

Public dataset

A 95-item sample is published as openbenchmarks/OB-LegalQA on Hugging Face (CC-BY-4.0), sampled proportionally by task type. It includes:

  • the seven contract PDFs
  • the question and answer key for each item
  • the match_correct, match_stale and match_fused strings used for token matching
  • the oracle and blind renderings of each contract, so the ceiling and floor can be reproduced locally

Because these rows include answer keys, they are not contamination-free. They are published so the format can be inspected and the harness run locally. The results use a held-out set of 1,500 items.

Evaluation Environment

+

Execution process

The agent receives only:

  • the markdown one parser produced for one contract
  • one question

The source file, the edit type, the expected answer and any mention of tracked changes are withheld. The prompt is byte-identical across parsers.

PhaseModelRuns
parsethe parser under test3 per contract
readOpenAI gpt-6-luna (agent)3 asks per parse, prompt cached on the contract
judgeOpenAI gpt-6-solevery answer, twenty answers to one question per call
  • Judge input. The question, the correct, stale and fused reference answers, and the agent's answer. The contract and the parser's identity are withheld.
  • Judge output. One of correct, stale, fused, other or ambiguous, with a one-clause rationale.
  • Public sample. huggingface.co/datasets/openbenchmarks/OB-LegalQA (CC BY 4.0), 95 rows across the nine task types.
  • Held-out set. 1,500 questions over 94 contracts, in native and image-only renderings. Results on the public sample are not comparable to the held-out results.

Version History

+

This write-up changes as partners review it. Each published result names the version it was scored on.

Version 2 · October 19, 2026 (current)

  • Repeat runs. Every contract is parsed three times by each vendor and every question asked three times against each parse. Accuracy is the mean over the nine replicates and is reported with its standard deviation. A probe step parsed a few contracts repeatedly per vendor and confirmed that parser output varies between calls.
  • Model judge over every answer. Token matching settled most answers in version 1 and a model judged only the rest. Every answer is now bucketed by gpt-6-sol, in batches that share one question; token matching is kept on every row as an audit. The judge prompt was revised on September 29. Of 20 sampled disagreements between the judge and token matching on the public sample, 13 were answers marked wrong for naming the live replacement clause, which the reference did not mention.
  • Reader model. gpt-6-luna replaces gpt-5.6-sol as the agent that answers the questions, with an explicit cache breakpoint between contract and question.
  • Reference arms. The structure-tree reader, which read the redline out of the PDF's own tags, is retired. The results are bounded by the oracle ceiling and the blind floor.
  • Parsers. Unstructured added (Parse API, profile: best). Extend, Reducto and both LlamaParse tiers are scored on their current builds, dated in the Provider Configurations table. Every parse is billed, and the results report the parse bill per pass, per 1,000 correct answers.
  • Runs. Final held-out runs on the native and image-only renderings between October 1 and October 18, 2026, under one reader and one judge.

Version 1 · September 20, 2026 (published)

  • Initial question set across nine task types, built from RedlineBench. One parse per contract and one ask per question with gpt-5.6-sol as the reader; answers bucketed by whole-token matching against the correct, stale and fused strings, with a model judge for wording the tokens could not settle.
  • September 14: the held-out set carved to 1,500 questions and the image-only rendering added. September 15: the structure-tree reference arm retired.