Skip to content

The benchmark results report document parsing against a layout-model baseline, downstream included - #304

Merged
zlareb1 merged 12 commits into
mainfrom
dp-results
Nov 6, 2026
Merged

zlareb1 merged 12 commits into
mainfrom
dp-results

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Related: #289, #292, #295, #298, #300

Changelog category (leave one):

  • Not for changelog

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

The benchmark results page reports how well the reference extractor reads PDF, DOCX and PPTX documents against a layout-model baseline, and what that does for search citations and decision extraction.

Why

The document-parsing bench (#289, #300) and the PDF layout, DOCX title and OCR work (#292, #295, #298) changed what the reference extractor reads; the results page had no measurement for source formats, and the coverage page listed them as unmeasured.

Design

  • docs/benchmarks/results.md gains a "Document parsing" measurement and a protocol index row. The systems are the reference extractor reading a PDF's text layer (as before PDF pages are read as laid out: tables, headings, columns and page furniture #292 and The reference extractor reads scanned pages and pictures with OCR, in process #298), the reference extractor with its layout reader and OCR, and a layout-model baseline.
    • Held-out parse scores (27 files): text recall and precision, headings and their levels, table cells, locators, notes, silent loss, time and memory, with paired intervals, and every category where the layout and OCR reader falls short of the baseline (scanned headings and tables, PDF-export tables, locators of tables over pages, slide and PPTX text precision, PPTX time).
    • Downstream, over both splits with the held-out subset too: knowledge.search found and cited at 1 and 5 within each document, with the paired intervals (none of layout and OCR's excludes zero overall), the categories it loses significantly, why, and the ingests that failed.
    • Decision-extraction quote rates for 12 documents with gpt-6-luna.
  • Artifacts in bench/results/: the models each run used (docparse_models_downstream.json, docparse_models_decisions.json, from bench.models_used), the image sizes (docparse_images.json), each system's normalized parses (docparse_parses/, so the baseline column is re-scored from committed files), docparse_heldout.json, and docparse_downstream.json, the downstream harness's output with its decision counts (systems renamed, report recomputed with the split groups). They name the systems text_layer, layout_ocr and baseline only; each parse carries its parser's version stamp: PDF 1+pypdf6.21.2, DOCX and PPTX 2 for the text layer; PDF 3+pypdf6.21.2, DOCX and PPTX 3, each with +tesseract5.5.0 where OCR ran, for layout and OCR. Re-run with the merged extractor inside the merged OCR image, every one of the 54 layout-and-OCR parses has the same blocks, tables, coverage and losses as the committed parse; only its PDF stamp reads pypdf6.21.4, the image's pin. The merged images measure 511 MB with OCR and 467 MB without, as published.
  • bench/docparse/score.py writes an empty mean as null, so the artifact is strict JSON (tested); bench/docparse/downstream.py records each query's split and reports by split as well as by category, so the held-out downstream row is the report's split:heldout.
  • docs/benchmarks/coverage.md moves "Source formats" to partial, naming what is still unmeasured; docs/architecture/document-extraction.md points to the results.

The layout-and-OCR parses come from #298's head with OCR on, in the extractor image; this PR merges after #298, rebased, with the parses (their PDF and PPTX stamps) and the two extractor image sizes checked against the merged tree and its Dockerfile. The baseline's time for two held-out files regenerated after its run (typeset_1, scan_2) is from their earlier versions, as its re-run shared the machine; the page says so.

Scope and risk

Docs, committed result files, score.py's JSON output (an empty mean is null) and the downstream report's split groups.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none.
  • Rollback: revert.

Tests

tests/unit/test_public_copy.py, test_doc_links.py and test_agent_instructions.py and pytest bench pass; the prose checker passes on the new text; score over the committed parses reproduces the published parse table.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code. I checked each published number against the scorer's output and the run files, and traced the downstream citation losses to their cause before writing it down.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • make format-check, make lint, make typecheck and make test-unit pass; the integration suite passes if server behaviour changed.
  • Generated files are regenerated in this PR, not by hand: the SDK op tables, docs/reference/configuration.md and the docs/reference/ tables (python scripts/codegen/docs_reference.py), the reach manifest, schemas/schema.sql (make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).
  • A new migration is additive and numbered after the latest on main; no merged migration is edited.
  • A behaviour change to any file a plugin ships (hooks/, lib/, bin/, skills/, .mcp.json, the Codex plugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.
  • The frontend builds (npm --prefix frontend run build) and its tests pass, if frontend/ changed.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

zlareb1 and others added 12 commits November 6, 2026 22:54
…baseline, downstream included

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…m intervals and losses, and commit every system's parses

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ream by split, and commit the models and image sizes

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ch time counts, and test the queries' split

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…e's load time as its committed parses give it

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ed; the scanned bullet and the fake provider are named as run

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…t from the gold

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…eproduce commands are a block

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… OCR run names what it needs

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 merged commit f92e76e into main Nov 6, 2026
@zlareb1
zlareb1 deleted the dp-results branch November 6, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant