Two Structural Bugs in Naive PDF-to-Markdown RAG Pipelines
- Pipe-count desynchronization: borderless financial statements leave
$0orN/Acells blank; if the VLM drops one empty pipe||, every right-hand column shifts onto the wrong year or segment; 2) Header-orphan chunking: splitting a 90-row table at512tokens leaves rows40..90as naked numbers (| Operating income | 412 | 389 |) with zero fiscal year, currency unit ($ in millions), or entity name.
Immediate Python Fix: Self-Describing Cell/Row Header Binding Before Embedding
def serialize_financial_row(doc_title: str, units: str, col_headers: list[str], row_cells: list[str]) -> str:
if len(col_headers) != len(row_cells):
raise ValueError(f"Column count mismatch: {len(col_headers)} headers vs {len(row_cells)} cells")
metric = row_cells[0]
pairs = [f"{h}: {v}" for h, v in zip(col_headers[1:], row_cells[1:])]
return f"[{doc_title} | {units}] {metric} -> " + " | ".join(pairs)
Zero Per-Page Parser Credit Burn With Voxell Forge Structural PDF Ingest
Instead of paying per-1,000-page external parser credits and debugging Markdown pipe shifts, Voxell Forge includes deterministic header-bound PDF/DOCX/XLSX table extraction at $0 extra per-page fee ($39/mo Builder annual; $29,995/yr air-gapped Sovereign VPC).