研究文本分块大小如何影响检索增强生成效果
The Effect of Text Chunk Size on Retrieval-Augmented Generation Performance

- 测试不同分块大小与召回段落数对生成质量的影响
- 小分块提升精度但可能降低连贯性,大分块信息更全但噪声多
- 为RAG系统设计提供可量化的分块策略参考
检索增强生成(RAG)系统使大语言模型在生成文本时能够检索相关文档作为依据。其中,源文档的分块粒度是一个关键但未被充分研究的环节。分块大小显著影响生成质量、上下文正确性、检索精确度和计算效率。较小的分块(如单句)可提高检索精度,但信息量少,可能影响生成连贯性;较大的分块(如整章)包含更多信息,有助于提升正确性,但会引入更多噪声并增加计算开销。同时,大分块需考虑返回的段落数量。本文通过对比不同分块大小与召回段落数的组合,系统评估其对生成质量与检索有效性的影响,旨在深入理解文档分割对RAG系统性能与效率的作用。
原文摘要 · Abstract (English)
Retrieval-Augmented Generation (RAG) systems have emerged as a powerful process for allowing large language models (LLMs) to retrieve relevant information to use as source material during text generation. A critical yet under-explored component of these systems is the granularity at which source documents are segmented into retrievable chunks. The size of these chunks has the potential to significantly influence generation quality, contextual correctness, retrieval precision, and computational efficiency. Despite its importance, chunk size is often selected without proper evaluation of its impact on generation quality. Smaller chunks, such as individual sentences, may allow for precise retrieval by narrowing the focus of each chunk. However, they contain less information, which may limit the model's ability to generate coherent responses. Larger chunks, such as entire chapters, contain lots of broad information that may improve correctness, but also introduce additional noise and increase computational cost. Because larger chunks contain more information, the number of chunks returned to the model must also be considered. This paper evaluates how chunk size, along with the number of retrieved segments, influences generation quality and retrieval effectiveness. By comparing these configurations, this study seeks to better understand how document segmentation affects the performance and efficiency of Retrieval-Augmented Generation systems. segmentation affects the performance and efficiency of Retrieval-Augmented Generation systems.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。