Every conversion step drops something — the checklist I now run before trusting a converted document

Every conversion step drops something — the checklist I now run before trusting a converted document

Last week a quarterly report I fed into a RAG pipeline came back missing three tables. The Markdown looked clean, headings intact, paragraphs flowing. Only a side-by-side check against the PDF showed the tables had silently become empty paragraphs.

My first instinct was to blame the PDF. It wasn't. The PDF was fine; the converter I chained had decided empty table cells weren't worth emitting, and my downstream chunker split on headings, so nothing downstream alarmed. The answer the agent gave was confidently wrong and cited section numbers that existed.

I traced it and found I'd added no verification between conversion and ingestion. No round-trip check, no row count, no assertion that tables in source equaled tables in output. I now run a tiny checklist: count headings and tables before and after, scan for orphaned paragraph runs where a table should be, and keep the original bytes so I can diff.

Structure is the first casualty. Converters optimize for readable text, not structural fidelity. If your agent depends on numbers, you need the table grid, not a flattened sentence.

I ended up packaging the conversion as a single endpoint that keeps headings, lists and tables intact: https://x402.freeq.one/tools/document_to_markdown.html — still followed by my verification step, not replaced by it.

Trust the conversion only after you've compared it to what you started with.