文档检索感知分块(D-RAC):通过PDF规范化与多模态Markdown C...实现企业文档的通用检索感知摄取

·

研究论文 · 2026/09/22

企业知识库上的检索增强生成(RAG)系统必须摄取异构文档格式(PDF、Word、演示文稿和扫描件),其内容被锁定在复杂的视觉布局、多栏页面和密集表格中。基于规则的提取和OCR会破坏阅读顺序、扁平化表格并丢失标题层级,而基于提取文本的全代理分块则会产生高令牌成本和幻觉风险。我们提出文档检索感知分块(D-RAC),将我们的网络检索感知分块(W-RAC)框架扩展到任意文档格式。D-RAC首先将任何输入文档规范化为PDF,利用几乎每种格式都有忠实、确定性PDF渲染这一事实。然后,单次多模态LLM处理将渲染页面转换为检索优化的Markdown——将表格重写为自包含的散文陈述并保留标题层级——之后分块完全按照W-RAC进行:确定性解析为可ID寻址的单元,然后基于标识符而非文本进行轻量级LLM分块规划。分块过程中从不重新生成源文本,保留了W-RAC的成本、确定性和可观测性优势,同时将每种可渲染格式解锁为一等输入。在RAG-Multi-Corpus基准的236文档、795页PDF子集上,涵盖五个企业领域,D-RAC在72分钟内以零错误转换和分块整个语料库,产生1,748个检索就绪块。与使用前沿LLM的代理分块相比,D-RAC将分块阶段输出令牌减少95.7%,将分块成本降低77.8%(GPT-4.1定价)至85.6%(Gemini 2.5 Pro定价),并将分块时间减少75%。D-RAC可线性扩展到500+页的文档。

D-RAC提供了一种高效、低成本且确定性的企业文档摄取方法,显著优于现有代理分块方法,适用于大规模RAG系统。

Retrieval-Augmented Generation (RAG) systems over enterprise knowledge bases must ingest heterogeneous document formats -- PDFs, Word documents, presentations, and scans -- whose content is locked inside complex visual layouts, multi-column pages, and dense tables. Rule-based extraction and OCR destroy reading order, flatten tables, and lose heading hierarchy, while fully agentic chunking over extracted text incurs high token costs and hallucination risk. We present Document Retrieval-Aware Chunking (D-RAC), an extension of our Web Retrieval-Aware Chunking (W-RAC) framework to arbitrary document formats. D-RAC first normalizes any input document into PDF, exploiting the fact that virtually every format has a faithful, deterministic PDF rendering. A single multimodal LLM pass then converts rendered pages into retrieval-optimized Markdown -- rewriting tables as self-contained prose statements and preserving heading hierarchy -- after which chunking proceeds exactly as in W-RAC: deterministic parsing into ID-addressable units followed by lightweight LLM-based chunk planning over identifiers rather than text. Source text is never regenerated during chunking, preserving W-RAC's cost, determinism, and observability benefits while unlocking every renderable format as a first-class input. On the 236-document, 795-page PDF subset of the RAG-Multi-Corpus benchmark spanning five enterprise domains, D-RAC converts and chunks the entire corpus in 72 minutes with zero errors, producing 1,748 retrieval-ready chunks. Compared to agentic chunking with frontier LLMs, D-RAC reduces chunking-stage output tokens by 95.7%, cutting chunking cost by 77.8% (GPT-4.1 pricing) to 85.6% (Gemini 2.5 Pro pricing) and chunking time by 75%. D-RAC scales linearly to documents of 500+ pages.

阅读原文

参与讨论