[Paper Review] Revolutionizing Retrieval-Augmented Generation with Enhanced PDF Structure Recognition
The paper shows that a deep-learning–based PDF parser (ChatDOC) improves RAG performance over a rule-based baseline (PyPDF), especially for complex tables and reading order, across 188 real-world documents.
With the rapid development of Large Language Models (LLMs), Retrieval-Augmented Generation (RAG) has become a predominant method in the field of professional knowledge-based question answering. Presently, major foundation model companies have opened up Embedding and Chat API interfaces, and frameworks like LangChain have already integrated the RAG process. It appears that the key models and steps in RAG have been resolved, leading to the question: are professional knowledge QA systems now approaching perfection? This article discovers that current primary methods depend on the premise of accessing high-quality text corpora. However, since professional documents are mainly stored in PDFs, the low accuracy of PDF parsing significantly impacts the effectiveness of professional knowledge-based QA. We conducted an empirical RAG experiment across hundreds of questions from the corresponding real-world professional documents. The results show that, ChatDOC, a RAG system equipped with a panoptic and pinpoint PDF parser, retrieves more accurate and complete segments, and thus better answers. Empirical experiments show that ChatDOC is superior to baseline on nearly 47% of questions, ties for 38% of cases, and falls short on only 15% of cases. It shows that we may revolutionize RAG with enhanced PDF structure recognition.
Motivation & Objective
- Demonstrate how PDF parsing quality affects RAG for professional documents.
- Compare rule-based vs. deep learning–based PDF parsing in RAG pipelines.
- Show that structure-aware parsing yields more accurate and complete retrievals.
- Evaluate practical impact on real-world documents and case studies.
Proposed method
- Two RAG systems compared: ChatDOC with ChatDOC PDF Parser vs. Baseline with PyPDF and RecursiveCharacterTextSplitter.
- ChatDOC uses DL-based parsing with OCR, document object detection, cross-column/page trimming, reading order, and table/structure recognition.
- Chunks are formed from content blocks up to ~300 tokens, preserving structure (tables, headings) in retrieval units.
- Embeddings use text-embedding-ada-002; retrieval limited to ≤3000 tokens; QA with GPT-3.5-Turbo.
- Dataset comprises 188 documents (100 academic papers, 28 financial reports, 60 others) with 302 questions for evaluation.
Experimental results
Research questions
- RQ1Does PDF parsing and chunking quality affect RAG answer quality in professional documents?
- RQ2Do deep-learning–based parsers outperform rule-based parsers for RAG on PDFs?
- RQ3How do parsing errors impact extractive vs. comprehensive analysis questions?
- RQ4What are practical failure modes and limitations of the DL-based parser in RAG contexts?
Key findings
- ChatDOC outperforms Baseline on 47% of extractive questions and ties on 42%, with Baseline winning 9% (86 questions total).
- For comprehensive questions, ChatDOC outperforms Baseline on 47% and ties on 37%, with Baseline at 17% (216 questions).
- Overall, ChatDOC succeeds more often (143 wins) than Baseline (44 wins) across 302 questions, with 115 ties.
- Case studies demonstrate improved table handling, correct reading order, and retrieval of full tables, boosting LLM comprehension.
- Limitations include ranking/token-window issues and occasional missegmentation of titles, suggesting room for improved embedding ranking and segmentation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.