arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.23533cs.CLcs.AIcs.IRcs.LG
收藏

MDKeyChunker: 基于滚动键和键驱动重构的单次调用LLM增强方法用于高精度RAG

Upgrade the Retriever First: What an LLM Call per Chunk Buys in RAG

Independent Research(独立研究)

Bhavik Mangla

AI总结:

MDKeyChunker通过结构感知分块、单次LLM调用增强和键驱动重构提升RAG精度,实现单次调用提取七种元数据,消除多轮提取需求。

摘要:

RAG流水线通常依赖固定大小分块,忽略了文档结构,导致语义单元跨边界碎片化,并需每个分块多次调用LLM提取元数据。我们提出MDKeyChunker,针对Markdown文档的三阶段流水线:(1) 进行结构感知分块,将标题、代码块、表格和列表视为原子单元;(2) 通过单次LLM调用增强每个分块,提取标题、摘要、关键词、类型实体、假设问题和语义键,同时传播滚动键字典以维持文档级上下文;(3) 通过合并共享相同语义键的分块进行重构,利用装箱算法将相关内容聚类以提高检索效果。单次调用设计在一次LLM调用中提取所有七种元数据字段,消除了单独提取每个字段的需要。滚动键传播取代了手动调整的评分,采用LLM原生的语义匹配。在30个查询和18个文档的Markdown语料库上的实证评估显示,配置D(BM25在结构分块上)达到Recall@5=1.000和MRR=0.911,而密集检索在完整流水线(配置C)上达到Recall@5=0.867。MDKeyChunker用Python实现,包含四个依赖项,支持任何OpenAI兼容的端点。

英文摘要:

Many RAG pipelines pay one LLM call per chunk at indexing time to add titles, summaries, keywords and questions (enrichment) or document context (contextual retrieval, CR). We ask what that call buys over free structure and a better retriever. Our advice: upgrade the retriever first, chunk at headers, and enrich mainly for lexical retrieval. Under a plan made public before any index was built, 7B enrichment beats a free section-path prefix under a hybrid retriever by +5.5 recall points on Qasper; on FreshStack its gain (+2.7) does not survive Holm adjustment. It is equivalent to CR, which sends 5.8-8.7 times the input tokens, and Qasper answer F1 (7B reader) is equivalent for both contrasts. Header-led chunks beat 512-character windows; on FreshStack they lose to overlapping 256-token windows. Under qwen3-embedding and a reranker, the two strongest of eight retrievers (named as secondary before any outcome was computed), the CIs of 7B enrichment against the free prefix fall within the equivalence margins; under BM25 it gains +8.7. Exploratory analyses attribute the hybrid gain to document expansion and to repairing an untuned rank fusion; the free prefix under either strong retriever beats hybrid enrichment by +3.4 to +6.3 points, though the best 120B-indexed configuration leads the best free one by +2.5 on Qasper. Add-ons built on the call do no better than LLM-free controls, and late chunking lowers Qasper recall. We release the plan, harness and per-question results.

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

↑