From PDF report to RAG-ready Markdown
A practical normalization flow to turn noisy PDF reports into cleaner chunks for retrieval and QA.
Everyone loves to say they have a RAG pipeline. Then the real source data shows up: enormous PDFs with headers on every page, legal footers nobody reads, and formatting that changes its mind halfway through. Retrieval gets worse, and the embeddings take the blame even though the chunks were messy before they were ever embedded.
When your source is PDF, converting to Markdown first gives you text you can read and fix before it reaches an index. It is not a guaranteed fix for weak retrieval, and I have not measured retrieval quality.
What goes wrong when you skip normalization
- Chunks include repeated noise from every page.
- Section boundaries are unclear.
- Search returns less relevant passages.
Messy chunks can hurt retrieval, though I have not measured how much on real documents. What I did measure is what the cleanup step can and cannot catch.
Practical PDF to Markdown workflow for RAG
- Convert the PDF to Markdown locally.
- Strip the repeated headers and footers.
- Keep page headings if your team cites source pages a lot.
- Chunk by section heading, not by a fixed token count alone.
Header cleanup only removes a line that repeats exactly on most pages. A footer with the page number on the same line stays, and on a two-column PDF the columns can come out mixed together, so read a page or two before indexing. The measurements are here.
Where PDFShore fits
PDFShore is the no-upload first step. Extract the Markdown in your browser, give it a quick read, and only then hand the clean text to your indexing stack.
It earns its place most when the reports hold internal or customer-sensitive material and you want a local stage before anything touches a hosted vector pipeline.
One realistic expectation
To be straight about it: the converter works best on digital PDFs with selectable text. Scanned pages can use its built-in OCR mode, but OCR errors carry straight into your chunks, and I have not measured how accurate it is.