PDF Extraction Benchmark featured
Which local PDF extractor should feed a RAG pipeline? 8 tools, 27 documents of 1 to 487 pages.
- Problem
- Tables, scanned pages and charts each break a different set of PDF extractors, and table-structure scores alone do not say which tool gives the best retrieval downstream.
- Approach
- Benchmarked 8 local extractors (PyMuPDF, PyMuPDF4LLM, pdfplumber, Tesseract, EasyOCR, Docling, Marker, MinerU) on 27 documents across 4 difficulty tiers, scoring text-layer agreement, table structure (TEDS), OCR character error rate, recovered chart facts, time per page, peak memory, and retrieval hit@5 over 233 questions through a bge-large embedder and bge-reranker cross-encoder.
- Outcome
- Docling scored best on real tables (TEDS 0.83) and Tesseract on scans, while plain PyMuPDF text beat the table-aware tools on table questions (hit@5 0.82 vs 0.60–0.66).
- Python
- PyMuPDF
- Docling
- Tesseract
- MinerU
- Marker
- bge-reranker