Repository navigation
Add LandingAI ADE v2 extract pipeline and results (dpt-3-pro-20261111 + extract-20261111) - #172
Open
andreakropp wants to merge 8 commits into
Open
andreakropp wants to merge 8 commits into
andreakropp wants to merge 8 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Jobs) The existing landingai_extract provider calls the Gen1 parse/extract endpoints, which cannot reach DPT-3 parse models or v2 extract models. - New provider landingai_ade_v2_extract: v2 Parse Job then v2 Extract Job, schema passed unchanged, polled against the shared execution budget. - Cost from metadata.billing.total_credits per stage at $0.01/credit; partial billing kept when a later stage fails. - New extract_landingai_v2_field_citations: maps extraction ranges to the parse structure's atomic_grounding (word-level on dpt-3-pro-20261111), falling back to the smallest overlapping block. - Registered pipeline landingai_ade_v2_extract pinned to dpt-3-pro-20261111 and extract-20261111, grounding on, standard tier. - Docs, .env.example, and tests with mocked SDK responses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he range Word-level atomic grounding (dpt-3-pro-20261111) turned each cited range into one box per word, and ranges often include the field's printed label and neighbouring lines. ExtractBench needs a single box that overlaps the answer-key box (IoU >= 0.5), so multi-word values and labelled ranges missed. With the parse Markdown, citations now keep only the words that match the extracted value (digits for numbers, checkbox marks in the reported state for booleans, word fragments next to matching words), merge each run into one box, and locate values that Extract returned without ranges. The parse Markdown is kept in the raw output so citations can be rebuilt from saved results without API calls. On the first trial document grounded F1 goes from 71.2 to 80.0 (page F1 94.9 to 96.7); value F1 is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-side A failed extract job with error code 'timeout' was classified as transient, so the runner retried it up to five times. Each retry re-ran the parse and hit the same server limit (observed on long/real_ishares_iboxx_bond_etfs: 6 attempts, 2 h 13 min, six paid parses). The document now fails at once; parse credits already spent stay in the cost accounting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When an extraction comes back without Markdown ranges (seen with a budget_exhausted warning on long/real_credit_strategies_full), numbers were not searched for, so they got no boxes. They are now located as printed, allowing thousands separators and trailing decimal zeros; numbers with fewer than three digits are skipped as too ambiguous. Offline re-score: credit grounded F1 39.3 -> 56.9; the 6-document test set is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nents (a + b) * rate can round below a * rate + b * rate, which the harness rejects as invalid billing and fails the document (seen once in 370 docs). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Full ExtractBench run (370 documents) with landingai_ade_v2_extract: value F1 94.11, word grounding F1 66.14, page grounding F1 83.48, $0.0474 per page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Hi @andreakropp! Thanks for the submission, I will review this soon. We noticed your blog post at https://landing.ai/blog/extractbench-results-landingai-dpt-3-pro and this is totally fair criticism at the moment since I still haven't gotten around to releasing the v1.2 annotations. When we do release them, we will use landing-ai/agentic-document-extraction-benchmarks#1 to update your results |
Author
|
Thanks for the quick reply @xujustinj |
This branch has not been deployed
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.
Adds
landingai_ade_v2_extract, a pipeline for LandingAI's current Agentic Document Extraction APIs, and its results on the full ExtractBench set as a newleaderboard.csvrow, LandingAI Agentic Document Extraction (DPT-3 Pro) (Specialized APIs), with the README tables regenerated. The existinglandingai_extractpipeline uses the v1 endpoints anddpt-2-latest; the current models are only served by the v2 APIs.landingai_extractis unchanged.Results (all 370 documents, ExtractBench's own evaluator)
long/real_ishares_iboxx_bond_etfs: the service's extract job hit its own time limit; failed without retry, as described below)Run 2026-11-20 15:48–20:19 PT on the public production API, standard tier, with this branch's connector as of "locate numbers returned without ranges" (run from an earlier base,
36e9d20; the connector code is identical). Commands, into one output folder:--group long --max_concurrent 4, then--group medium --max_concurrent 8, then--group short --max_concurrent 12, then--skip_inference. One short document (sched_i__after_violence_project_ty2024) failed on a float-rounding bug in this connector's cost total (the attempt total was 1e-17 below the sum of the stage charges, which the harness rejects). The commit "sum stage charges so the attempt cost matches the components" fixes it with a test; that one document was re-run with the fix (other documents skipped), and all 370 were re-scored. The scores above are from this branch's evaluator (upstreamab573f7, including #168–#170); they match the scores from36e9d20exactly. Theleaderboard.csvrow and regenerated README (scripts/update_readme.py) are included; we can share the evaluation reports and raw outputs on request.What the pipeline does
dpt-3-pro-20261111), then extracts with v2 Extract Jobs (extract-20261111) from the parse Markdown. The benchmark schema is passed unchanged.error.code = "timeout") fails the document without a retry: a retry would pay for a new parse and hit the same limit. Other job failures keep the harness's usual transient/permanent handling.metadata.billing.total_creditson parse and extract), at the $0.01/credit list price. Failed-attempt credits are recorded throughrecord_response_cost.atomic_groundingboxes. Only the words that match the extracted value are kept (digits for numbers, checkbox marks for booleans), and each run of words is merged into one box. Values returned without a range are located in the Markdown (text by its words; numbers as printed, with thousands separators). A value found in several places gets a box for each. Null values get no box. No extra API calls, soGrounding_Added_Cost_Per_Pageis 0.Public access: self-serve sign-up at https://ade.landing.ai; key via
LANDING_AI_API_KEY(orVISION_AGENT_API_KEY). Requireslandingai-ade>=1.13.0(bumped inpyproject.tomlanduv.lock).Tests:
tests/extract_bench/inference/providers/extract/test_landingai_v2.py(18 tests: job flow, pinned models, unchanged schema, cost from both stages, error classification incl. no retry after an extract timeout, config validation, citation building). Full suite passes; ruff clean.🤖 Generated with Claude Code