QChunker: Learning Question-Aware Text Chunking for Domain RAG via Multi-Agent Debate
AI 摘要
QChunker通过多智能体辩论学习问题感知的文本分块,优化领域RAG。
主要贡献
- 提出QChunker,将RAG范式重构为理解-检索-增强。
- 设计多智能体辩论框架,提升文本分块的逻辑连贯性和信息完整性。
- 引入ChunkScore,直接评估文本分块质量,提高评估效率。
方法论
采用多智能体辩论框架,包括问题大纲生成器、文本分割器、完整性审查器和知识补全器,并使用ChunkScore评估和优化分块结果。
原文摘要
The effectiveness upper bound of retrieval-augmented generation (RAG) is fundamentally constrained by the semantic integrity and information granularity of text chunks in its knowledge base. To address these challenges, this paper proposes QChunker, which restructures the RAG paradigm from retrieval-augmentation to understanding-retrieval-augmentation. Firstly, QChunker models the text chunking as a composite task of text segmentation and knowledge completion to ensure the logical coherence and integrity of text chunks. Drawing inspiration from Hal Gregersen's "Questions Are the Answer" theory, we design a multi-agent debate framework comprising four specialized components: a question outline generator, text segmenter, integrity reviewer, and knowledge completer. This framework operates on the principle that questions serve as catalysts for profound insights. Through this pipeline, we successfully construct a high-quality dataset of 45K entries and transfer this capability to small language models. Additionally, to handle long evaluation chains and low efficiency in existing chunking evaluation methods, which overly rely on downstream QA tasks, we introduce a novel direct evaluation metric, ChunkScore. Both theoretical and experimental validations demonstrate that ChunkScore can directly and efficiently discriminate the quality of text chunks. Furthermore, during the text segmentation phase, we utilize document outlines for multi-path sampling to generate multiple candidate chunks and select the optimal solution employing ChunkScore. Extensive experimental results across four heterogeneous domains exhibit that QChunker effectively resolves aforementioned issues by providing RAG with more logically coherent and information-rich text chunks.