arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.17526cs.CLcs.IR
收藏

LumberChunker:长篇叙事文档分割

LumberChunker: Long-Form Narrative Document Segmentation

INESC-ID;Instituto Superior Técnico(高等技术学院);NeuralShift AI;Carnegie Mellon University(卡内基梅隆大学)

André V. Duarte, João Marques, Miguel Graça, Miguel Freire, Lei Li, Arlindo L. Oliveira

AI总结:

提出LumberChunker方法,利用LLM动态分割文档以提升检索性能,并引入GutenQA基准验证其在RAG管道中优于传统分块方法和竞争基线。

摘要:

现代NLP任务越来越依赖密集检索方法来获取最新且相关的上下文信息。我们的动机基于这样一个前提:检索能从大小可变的片段中获益,从而更好地捕捉内容的语义独立性。我们提出了LumberChunker,这是一种利用LLM动态分割文档的方法,它迭代地提示LLM在一组连续段落中识别内容开始转变的位置。为了评估我们的方法,我们引入了GutenQA,这是一个包含3000个“大海捞针”类型问答对的基准,这些问答对源自Project Gutenberg上可用的100本公共领域叙事书籍。我们的实验表明,LumberChunker不仅在检索性能(DCG@20)上比最具竞争力的基线高出7.37%,而且当集成到RAG管道中时,LumberChunker被证明比其他分块方法和竞争基线(如Gemini 1.5M Pro)更有效。我们的代码和数据可在https://github.com/joaodsmarques/LumberChunker获取。

英文摘要:

Modern NLP tasks increasingly rely on dense retrieval methods to access up-to-date and relevant contextual information. We are motivated by the premise that retrieval benefits from segments that can vary in size such that a content's semantic independence is better captured. We propose LumberChunker, a method leveraging an LLM to dynamically segment documents, which iteratively prompts the LLM to identify the point within a group of sequential passages where the content begins to shift. To evaluate our method, we introduce GutenQA, a benchmark with 3000 "needle in a haystack" type of question-answer pairs derived from 100 public domain narrative books available on Project Gutenberg. Our experiments show that LumberChunker not only outperforms the most competitive baseline by 7.37% in retrieval performance (DCG@20) but also that, when integrated into a RAG pipeline, LumberChunker proves to be more effective than other chunking methods and competitive baselines, such as the Gemini 1.5M Pro. Our Code and Data are available at https://github.com/joaodsmarques/LumberChunker

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑