Start here

How DealBench works

In one sentence: DealBench is a test track for systems that answer questions over the documents of a company sale (an M&A data room). For every question we know the right answer and exactly where it sits, so we can measure how well a pipeline does and in which step it goes wrong.

The result in three lines

  1. The published pipeline answers 75% of test questions right, the naive one 69%: better, but on 100 questions not significantly.
  2. Of everything we changed, the embedding model (the step that finds documents) mattered most.
  3. When two documents disagree, the pipeline said so in only 2 of 10 cases.

Naive pipeline (D1): bge-m3 over fixed 512-word windows, no reranker. Published pipeline (DR-PP, frozen before the test run): pplx-embed-v1-4b, chunks cut at headings, Qwen3-Reranker-4B.

What came out →

A · Preparing the test (done once)

  1. 1

    Fact database

    1,042 facts about a fictional Czech manufacturer, Beskyd Precision: revenue, contracts, people, loans.

  2. 2

    Rendered documents

    170 documents, 481 pages: scanned statements, spreadsheets, contract versions, e-mails, board minutes. Every number comes from the fact database.

  3. 3

    Planted traps

    12 conflicts between sources, 8 decoys that only look like conflicts, draft and final versions, 20 questions the room cannot answer.

  4. 4

    200 questions

    Each with its answer and its exact location: document, page and box, or sheet and cell.

  5. 5

    Audit

    All 200 questions checked against the rendered documents; 31 defects found and fixed in the generator, not by hand.

Why made-up data? Real deal data are confidential, and nobody knows the right answer to every question in them. Here we do, for every question, because the documents were generated from the facts.

B · What happens to each question (this is what we test)

Pick a step (click it, or use the arrow keys) to see what it does, how one real test question passes through it, what can go wrong there and how many test questions the published pipeline lost at that step.

The example question (Q111): “What was the company's revenue in FY2024?” The audited statements, a scan, say 408,912 tis. Kč (CZK thousands); the management accounts say 412,300. A good answer gives the audited figure and says that the sources disagree.

44 of 100 test questions went astray at some step, and 25 of them were answered wrong. Each is counted once, at the first step where it went astray: a source it needs dropped out (steps 1–4), or the model had its sources and the answer or its citation went wrong (step 5). The rest still came out right, from another copy of the same fact.

1ReadPDF → image → OCRxlsx cell by cell1 lost0 of them wrong2Chunk200–800 wordscut at headings0 lost0 of them wrong3Retrieveembedding model50 candidates5 lost5 of them wrong4Rerankreranker50 → top 1027 lost11 of them wrong5AnswerQwen3.8-27Banswer, then checks11 lost9 of them wrong 1ReadPDF → image → OCRxlsx cell by cell1 lost0 of them wrong2Chunk200–800 wordscut at headings0 lost0 of them wrong3Retrieveembedding model50 candidates5 lost5 of them wrong4Rerankreranker50 → top 1027 lost11 of them wrong5AnswerQwen3.8-27Banswer, then checks11 lost9 of them wrong

1. Read

What it does

Every PDF, scanned or not, is rendered to an image at 300 dpi and read by Tesseract OCR (Czech and English). Spreadsheets are read cell by cell, with merged cells filled in and units found; e-mails and Word files are read as text. Every piece of text remembers where it came from.

Our example

The audited statements are a scan (FS_2024_FINAL_v2_signed.pdf). OCR reads the revenue row on page 3 as “L | Tržby z prodeje výrobků a služeb MEN R ot | 408 912 371 205”: the number survived, the text around it less so. The management workbook is read cell by cell: “Výsledovka / P&L > Tržby / Revenue > … | FY 2024 | 412 300 tis. Kč | P&L mgmt!N14”.

What can go wrong here

OCR misreads a digit or drops a line, so the right number never enters the system.

Lost at this step

1 of 100 test questions in the published pipeline (DR-PP); 0 of them were answered wrong.

All models are open-weight and ran on MetaCentrum, the Czech national academic grid: pplx-embed-v1-4b (step 3), Qwen3-Reranker-4B (step 4), Qwen3.8-27B (step 5).

Steps 1–3 in detail: from a document to a searchable index

PDF (scans too)page → image →Tesseract OCRExcel (.xlsx)walk the cells, fillmerged ones, find unitsE-mail (.eml)header andmessage bodyWord (.docx)paragraphsand tablesText blockseach knows whereit came from:page + box, orsheet + cellso the site can showthe exact spotChunksblocks glued into200–800 words alongheadings and clausesa clause or a tablestays in one pieceIndexthe embedding modelturns each chunkinto a vectorsimilar meaning →nearby vectors, Czechand English alike PDF (scans too)page → image →Tesseract OCRExcel (.xlsx)walk the cells, fillmerged ones, find unitsE-mail (.eml)header andmessage bodyWord (.docx)paragraphsand tablesText blockseach knows whereit came from:page + box, orsheet + cellso the site can showthe exact spotChunksblocks glued into200–800 words alongheadings and clausesa clause or a tablestays in one pieceIndexthe embedding modelturns each chunkinto a vectorsimilar meaning →nearby vectors, Czechand English alike

Numbers are read one way whatever their format, so “1 234,5” and “1,234.5” both mean 1234.5 when the answer is matched against the known answer, in keyword search and in the numbers check. The chunk text itself stays as printed.

C · Scoring

  1. Pipeline output

    top 10 chunks and the answer

  2. Compared with the known answer

    the right answer and its location

  3. Score and diagnosis

    right, or lost at step 1–5

The metrics in plain words

recall@10
Of the sources an answer needs, the share that made it into the 10 chunks the model gets. If they are not there, the model cannot answer correctly.
Answer accuracy
The share of answers that are right: numbers with the right unit and within tolerance, dates, yes or no, and an abstention or a conflict flag where that is the right answer.
Conflicts surfaced / false conflicts
When documents disagree, did the answer say so? And did it cry conflict where the difference is explained, by rounding or a different period, say?
Abstention
20 questions have no answer in the room. The right reply is “Not in data room” and a request for the missing document, not a guess.
Dev and test
The questions are split into two halves. Everything is tuned on dev; test is kept for the final measurement.
Confidence interval and p-value
The interval is the range the score would likely land in with another draw of questions. The p-value says how often a difference this large would appear by chance alone; with 100 questions, small gains are hard to tell from chance.

What came out

Test split, 100 questions; bars show the mean and, where drawn, its 95% interval.

Test was not untouched before that run: retrieval scores and an earlier answer run on test had been seen, and one answer-layer change was motivated by reading test answers.

1 The embedder is the lever

Swapping only the embedding model moves recall@10 on test from 0.56 (bge-m3) to 0.84 (Nemotron-3-Embed-8B). Both tested steps are significant: bge-m3 → Qwen3-Embedding-8B +0.118 (p = 0.023; measured on fixed 512-word windows, where the naive pipeline scores 0.58), then → Nemotron-3-Embed-8B +0.169 (p = 0.001).

recall@10 on test, chunks cut at headings, no reranker
  • bge-m3 0.56
  • granite-embedding-311m 0.58
  • harrier-oss-v1-27b 0.66
  • Qwen3-Embedding-8B 0.67
  • Octen-Embedding-8B 0.71
  • pplx-embed-v1-4b 0.76
  • Nemotron-3-Embed-8B 0.84

Bold: the embedder of the published pipeline.

Why not Nemotron? The rule fixed before the test run took the smaller pplx-embed-v1-4b, because on dev it trailed by only 0.031 (p = 0.20); on test Nemotron leads, which is reported, not used to re-pick. And the 27 questions lost at the Rerank step had a source in the top 50 that did not make the top 10: that is the cut to 10 chunks, not a reranker throwing good results away. Over the embedder’s own order the reranker changes recall@10 on test by only +0.017 (p = 0.74), so the embedder, not the reranker, is where retrieval improved.

2 Adding keyword search (BM25) hurts here

Fusing classic keyword search (BM25) into dense retrieval is common advice. Here, for the Qwen3-Embedding-8B leg, it changed recall@10 by −0.095 on dev and −0.139 on test (p = 0.013 / 0.023); adding a reranker afterwards only recovers what BM25 lost.

recall@10 on test
  • Qwen3-Embedding-8B
  • dense only 0.67
  • + BM25 0.53
  • Nemotron-3-Embed-8B
  • dense only 0.84
  • + BM25 0.53

3 Answers improve a little; conflicts stay weak

The frozen pipeline answers 75% of test questions right, the naive one 69%: 6 points, not significant on 100 questions (p = 0.31). It surfaced only 2 of 10 planted conflicts; in 5 of the 8 misses a required source was not in the top 10, which makes it a retrieval problem more than a model problem.

answer accuracy on test
  • naive pipeline (D1) 69%
  • frozen pipeline (DR-PP) 75%
conflicts surfaced by the frozen pipeline 2 of 10

What this means for a RAG team

  • Measure every step, not only the final answer: most misses happen before the model writes a word.
  • Spend on the embedder first, and test it on your own language and documents; public leaderboards only shortlist.
  • Do not add BM25 hybrid search by default; test it against a strong dense retriever.
  • For conflicts, retrieve every source, not only the best one: an answer cannot flag what it never sees.
  • Size the test set: on 100 questions a gain of a few points cannot be told from chance.

How it was built

Show the twelve phases, from the data-room generator to the frozen test run

The phases roughly in the order they happened: the first three ran in parallel, and model selection started early but finished after the Czech case. Each one changed what the next one could measure.

  1. Data-room generator

    What we did A seeded generator writes a fact database for a fictional Czech manufacturer and renders it into documents: scanned statements, spreadsheets, contracts, e-mails, minutes. The same seed gives byte-identical files.

    What came out A first room of 60 documents, but only about 90 PDF pages.

  2. Parsers and answer locations

    What we did Readers for PDF text layers, Tesseract OCR, spreadsheets, e-mail and Word, all producing blocks that know their location, and one rule that decides whether a block holds a known answer.

    What came out On a first real Czech scan the PDF had no text layer at all and Tesseract read it at a mean word confidence of 63: OCR loss became measurable.

  3. Retrieval, metrics and the failure funnel

    What we did Keyword (BM25), dense and hybrid retrievers and rerankers; recall, MRR and nDCG with bootstrap intervals and paired tests; every miss attributed to the first step that lost it.

    What came out On the small room, retrieval was close to trivial and could not tell retrievers apart.

  4. The room scaled up

    What we did The room grew from about 90 to 481 pages with the distractors real data rooms are full of: monthly packs, budgets next to actuals, several editions of the statements, long contracts, draft sales memoranda.

    What came out Harder, as intended: a naive keyword search finds every required source for 17% of questions, down from 21%.

  5. Metric fix: required evidence groups

    What we did Recall and MRR accepted any copy of a fact while nDCG wanted its home document, so metrics with familiar names measured different things. Now every metric counts the same required groups of evidence.

    What came out Before the fix, 15 dev questions of the naive pipeline scored recall 1 but nDCG 0: the metrics disagreed on what counted as found.

  6. Audit of all 200 questions

    What we did Every question was read against the rendered documents: wording, evidence, answer and trap labels.

    What came out 31 defects on 29 questions, all fixed in the generator, with a test for each kind.

  7. A real Czech filing

    What we did A public annual report (48 scanned pages) is read with OCR, its rows anchored on the printed row codes and the reading repaired with accounting identities (assets equal liabilities, subtotals add up). The XML filed with it only checks the result.

    What came out Cells matching the XML: 173 → 532 of 550. The identities flagged all 373 misread cells, and the XML breaks one itself: its prior-year assets and liabilities differ (223 620 vs 228 364).

  8. Model selection on Czech data

    What we did Embedders and rerankers were scored on a Czech retrieval pack built like MTEB, the public benchmark for embedding models, as GPU batch jobs on MetaCentrum.

    What came out A check of our own scoring: re-run here, bge-m3 lands within 0.06 points (on a 0–100 scale) of its published scores and Qwen3-Embedding-8B within 0.44 (with the prompt MTEB used).

  9. Open retrieval runs

    What we did Every shortlisted open embedder and reranker ran over the room on MetaCentrum; with the baselines run locally, 22 retrieval pipelines in all.

    What came out The embedder is the lever: Nemotron-3-Embed-8B adds +0.169 recall@10 over Qwen3-Embedding-8B on test, while BM25 fusion lowers it.

  10. Answer layer

    What we did Qwen3.8-27B writes a cited answer, extracts its fields and checks its numbers; a grader scores numbers with units and tolerances, conflicts and abstentions.

    What came out On dev, better retrieval became better answers: +0.14 accuracy (p = 0.004), mostly from fewer needless abstentions.

  11. Dev-only iterations, pre-registered

    What we did Two fixes to the conflict flag were written down with a keep-or-revert rule before they were made, and judged on dev only.

    What came out Dev accuracy of the chosen pipeline 0.750 → 0.770; both fixes kept by the rule.

  12. Frozen, test run once

    What we did The pipeline was frozen at revision 44ea1f1, and the test questions were answered once.

    What came out Accuracy 69% for the naive pipeline, 75% for the frozen one: not significant (p = 0.31).

Read more

Explore the data: Results · Failures · Ask · Czech scan