Repository navigation
The benchmark results report document parsing against a layout-model baseline, downstream included - #304
Merged
Conversation
…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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…parses 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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #289, #292, #295, #298, #300
Changelog category (leave one):
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.mdgains 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.knowledge.searchfound 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.gpt-6-luna.bench/results/: the models each run used (docparse_models_downstream.json,docparse_models_decisions.json, frombench.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, anddocparse_downstream.json, thedownstreamharness's output with its decision counts (systems renamed, report recomputed with the split groups). They name the systemstext_layer,layout_ocrandbaselineonly; each parse carries its parser's version stamp: PDF1+pypdf6.21.2, DOCX and PPTX2for the text layer; PDF3+pypdf6.21.2, DOCX and PPTX3, each with+tesseract5.5.0where 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 readspypdf6.21.4, the image's pin. The merged images measure 511 MB with OCR and 467 MB without, as published.bench/docparse/score.pywrites an empty mean asnull, so the artifact is strict JSON (tested);bench/docparse/downstream.pyrecords each query's split and reports by split as well as by category, so the held-out downstream row is the report'ssplit:heldout.docs/benchmarks/coverage.mdmoves "Source formats" to partial, naming what is still unmeasured;docs/architecture/document-extraction.mdpoints 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 isnull) and the downstream report's split groups.Compatibility, rollout and rollback
Tests
tests/unit/test_public_copy.py,test_doc_links.pyandtest_agent_instructions.pyandpytest benchpass; the prose checker passes on the new text;scoreover 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 typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.docs/reference/configuration.mdand thedocs/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).main; no merged migration is edited.hooks/,lib/,bin/,skills/,.mcp.json, the Codexplugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code