Invoice Line-Item Extractor (Reference Implementation) by Changfei DingInvoice Line-Item Extractor (Reference Implementation) by Changfei Ding

Invoice Line-Item Extractor (Reference Implementation)

Portfolio project
Changfei Ding
Grounded Extraction & Benchmark
Grounded Extraction & Benchmark
Reference implementation · synthetic data
Lead Python & Data Automation Engineer — Deterministic, audit-ready PDF invoice line-item extraction paired with exact integer-cent reconciliation and token-level bounding-box provenance.
In an in-distribution benchmark across 120 synthetic PDFs spanning 6 generator layouts (standard grids, 2-line wrapped headers with multi-line descriptions, multi-page tables, negative credits/discounts, interleaved group subtotals, and +/-2.5pt OCR coordinate jitter; no held-out external vendor layouts included), the geometry-first parser achieves 1.0000 overall field F1, 120/120 exact grand-total checksum pass rate, and 100.00% valid bounding-box provenance at 17.457 ms p50 and 37.485 ms p95 latency per PDF.
A strict-gated fallback interface activates only on checksum failures while rejecting proposals that violate schema, per-line arithmetic, same-row horizontal token co-location, or unique token consumption across PDF tokens.
Built with AI-assisted tooling; architecture, review, and tests by me.

0 likes · 3 views · Nov 20, 2026

Reference implementation (synthetic data): deterministic PDF invoice line-item extractor with exact-cent checksums and bbox provenance (120/120 pass, 17.5ms p50).

Tags