20 open-source OCR & PDF extraction tools for RAG pipelines, sorted into 5 categories
MaryamMiradi · x · 2026-10-07
A curated map of 20 open-source OCR + PDF extraction tools for building RAG systems and AI agents over real documents—tables, formulas, scanned pages, multi-column layouts, charts, headers, footnotes—sorted into five categories:
- Native PDF extraction: PyMuPDF4LLM, pdfplumber, pypdf—best when the PDF already has clean digital text
- OCR engines: Tesseract, PaddleOCR, Surya, EasyOCR, docTR
- Document parsers: Docling, MinerU, Marker, Unstructured
- VLM-based parsing: olmOCR, OCRFlux, MonkeyOCR, dots.mocr, Zerox—the category the author finds most interesting, where models interpret document structure, not just characters
- Specialist tools: GROBID (scientific papers), Camelot (tables), Nougat (academic equations)
Key takeaway: the best OCR model is not necessarily the best document pipeline. For production agents the goal is preserving enough structure and meaning for the model to reason correctly. Typical pipeline: PDF → native text/layout → OCR/VLM → tables+formulas → reading order → Markdown/JSON → verification → RAG/agent context. A Docling vs MinerU vs Marker vs olmOCR vs PaddleOCR vs OCRFlux benchmark may follow.
More from coding & agent
- Dev ships throwaway Postgres for agents: pg19 via pglite on Cloudflare DO over raw TCP — ritakozlov · 2026-11-29
- Product idea: cloud Android VMs and home WiFi proxies to make agents look human — Darpinian · 2026-11-29
- 38 free agent skills distilled from shipping three live AI products — PawelHuryn · 2026-11-29
- Step 5: run evals on synthetic data pre-launch, watch real traces after — PawelHuryn · 2026-11-29
- Break your agent before attackers do: 6 tests mapped to OWASP LLM Top 10 — PawelHuryn · 2026-11-29
- PM shares playbook for shipping 4 customer-facing Claude agents into production — PawelHuryn · 2026-11-29