Venkateswara
Back to Vol. 1

VS.03 · Document AI · Full-Stack · Nov 2026

VS.03Chapter Tear-Down

Table Review

vs. The Ledger That Doesn't Add Up

Four-engine hybrid PDF extraction (native_fast ~15 ms/pg) coupled to a 2× DPR Optical Loupe, live Σ / Σ≈ / Σ! cross-footing checks, ~400 automated tests, and deterministic =SUM() Excel export with SHA-256 provenance.

Stack
Python 3.12 · FastAPI · Pydantic v2 · SQLAlchemy 2 · PostgreSQL · Docling + RapidOCR · Docker · pytest + Playwright
Throughput
native_fast ~15 ms/pg · 1–20 pages/run hybrid router
Tolerance
~400 automated tests · 2× DPR bbox provenance · Σ / Σ≈ / Σ! cross-footing
Known Limits
Born-digital vector PDFs use native_fast; degraded scans require Docling/RapidOCR or configured VLM and human inspection via the 2× loupe. Local-first; no hosted SLA.

Zero-ML native PDF extraction

~15 ms/pg

Local extraction timing returning cell geometry, bounding boxes, and table captions without model downloads

n: Born-digital financial PDF pages via native_fast vector/text extractor

Automated domain & E2E verification

~400 tests

Automated CI/local verification including frozen literal, placement, association, and geometry extraction checks

n: ~400 pytest domain, PostgreSQL integration, acceptance, Ruff, and Playwright E2E checks

Hybrid extraction routing modes

4 engines

Page-level extraction dispatch across 1–20 pages/run with multi-page stitching

n: native_fast, warm Docling + RapidOCR, opt-in OpenAI-compatible VLM, and auto router

VS.03 · Tear-Down PlateScroll Scrub · 0% Exploded
Monochrome ink illustration of a machined black optical loupe with a crimson reticle over cotton-paper financial ledger grids
Illustration · Not system output
Monochrome ink illustration of a machined black optical loupe with a crimson reticle over cotton-paper financial ledger gridsHalftone Wipe · 4:3 Uncropped

An OCR tool that silently drops a minus sign or swallows a zero hands you a clean spreadsheet built on a −$10,000 lie. I built Table Review so no extracted cell stands alone: every number carries its exact PDF bounding box, every subtotal checks itself live, and every exported workbook ships with live =SUM() formulas and a SHA-256 manifest.

Panel 01 · The Dread (What Silently Breaks)

Black-box PDF-to-Excel converters strip source coordinates, fracture multi-page financial statements, mishandle accounting parentheses or multi-currency formats, and export static numbers with zero subtotal verification.

Impact · The Catch2026-11-15

~15 ms/pg

Zero-ML native_fast extraction for born-digital filings, backed by 4 hybrid routing modes, ~400 automated domain/E2E tests, and automatic Σ / Σ≈ / Σ! cross-footing.

Scope: Applies to born-digital vector PDFs; scanned or degraded filings route to warm Docling + RapidOCR or opt-in VLM.

Panel 02 · Engineering Contribution

Architected a local-first workbench pairing four extraction engines (native_fast ~15 ms/pg, warm persistent Docling + RapidOCR worker, opt-in grounded VLM, auto router) with a split-pane web review desk, 2× DPR Optical Source Loupe, Night Paper PDF filter, automatic Σ / Σ≈ / Σ! vertical and horizontal cross-footing, hardened read-only offline Docker worker, and deterministic ZIP/SHA-256 Excel export.

Panel 03 · System Architecture

  1. 01Zero-ML PDF outline browser, full-text search with bbox highlights, and 500-page candidate table scanner.
  2. 024-engine hybrid router dispatches born-digital vector pages to native_fast (~15 ms/pg) and scanned pages to a warm Docling + RapidOCR worker or opt-in OpenAI-compatible VLM.
  3. 03Multi-page stitching and financial parser ($, €, £, ₹, ¥, accounting negatives, Indian/EU formats) drive automatic Σ / Σ≈ / Σ! cross-footing checks.
  4. 04Hardened local security (Argon2id auth, advisory-locked loopback onboarding, network-isolated read-only Docker worker) verified by ~400 pytest + Playwright tests and deterministic =SUM() ZIP/SHA-256 workbook exports.

LIVE CROSS-FOOTING VERIFIER · EDIT ANY Q4 CELL OR INJECT AN OCR SLIP

Every cell ties back to its PDF bbox and live =SUM() check.

Swipe table →Q4 (EDIT) & =SUM()
LINE ITEMQ1Q2Q3Q4 (EDIT)=SUM() FYCHECK
Operating Revenue$420,000$445,000$460,000$1,810,000Σ OK
Cost of Revenue−$168,000−$176,000−$182,000−$716,000Σ OK
R&D Engineering−$84,000−$86,000−$89,000−$351,000Σ OK
SG&A & Compliance−$62,000−$64,000−$65,000−$259,000Σ OK
Net Operating Income (Σ)$106,000$119,000$124,000$135,000$484,000Σ OK
PROVENANCE: p. 14 · bbox [412, 618, 498, 634]All horizontal & vertical cross-foots reconcile · =SUM() export ready
PDF SOURCE SPECIMEN
10-K_EXTRACT_P14.PDF2× DPR CROP
SG&A & Compliance
PDF BBOX
Printed Q4:−$68,000
Extracted Q4:−$68,000
p. 14 · bbox [412, 618, 498, 634]
Extractor
native_fast ~15 ms/pg · 4 engines
Suite
~400 tests · ZIP / SHA-256

Next Chapter · VS.04

P&ID Intelligence

vs. The Drawing No Machine Could Read

Monochrome ink illustration of a knurled matte-black rotary pressure valve and cylindrical manifold conduits over schematic rings with a crimson routing line