arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.41172cs.IRcs.AIcs.CL
收藏

作为基础设施的上下文:基于工具的智能体系统检索的知识编译

Context as Infrastructure: Knowledge Compilation for Retrieval in Agentic Systems with Harnesses

InfiniFlow Inc.(无限慧流公司);East China Normal University(华东师范大学)
Zhichang Yu, Baining Cao, Sbaaoui Idriss, Qi Wang, Gangqiang Xu, Ling Qin, Xiaoling Jin, An Liu, Shaohao Cai, Xiaoyang Bao, Shengle Chen, Changchang Ding, Pengf… 展开作者

Zhichang Yu, Baining Cao, Sbaaoui Idriss, Qi Wang, Gangqiang Xu, Ling Qin, Xiaoling Jin, An Liu, Shaohao Cai, Xiaoyang Bao, Shengle Chen, Changchang Ding, Pengfei Zhu, Jingxiang Xu, Yifeng Mao, Lu Liu, Hai Jin, Yingfeng Zhang

AI总结:

该研究针对智能体系统检索的上下文冗余问题,提出知识编译作为供应层,构建RAGFlow的管道与工具,通过导航树等构件减少查询令牌与延迟,形成智能体原生数据库。

摘要:

检索增强生成正朝着智能体方向发展。搜索工具会编写查询、读取结果、重新表述查询并决定何时停止。在我们的运行中,仅使用BM25/grep和MiniMax M3的工具就能在BrowseComp-Plus上回答85%的问题,在多跳FRAMES上回答91%的问题,且无需编译或向量索引。这暴露出一个上下文问题:无约束的循环会重复查询、重新读取文档,并在窗口中填充未使用的段落。缺失的层级是知识编译:一种可配置的摄取管道,其中大型语言模型(LLM)会用任何单个文本块都不包含的上下文来丰富文档——包括带有主张-证据叶子的导航层级、实体图、时间线、思维导图、本体、维基和记忆。编译并非更好的检索器:在合格的工具下,结构构件在FRAMES上未带来可检测的准确率提升,而PageIndex式的大纲在规模扩大时性能下降,它是一个供应层。我们测量的机制是叶子为主张-证据对的导航树,当证据充足时,它能将查询令牌减少91%,当证据不足时则增加1.9%,平均减少38%;这意味着盈亏平衡的充足率为2%,而测量到的充足率接近43%。决策门将延迟从140秒降至30秒,不过令牌节省的替代是以增加检索轮次为代价,并带来自身的延迟成本。其他构件——本体、图、维基、时间线、思维导图、记忆——在部署中(治理、集成、入职、时间方向、连续性)发挥作用,而准确率基准无法体现这些作用。我们描述了RAGFlow的管道和工具(开源,链接见此处),它将循环转变为五个有约束的站点,并保持进入模型的上下文为最小充分集合;它们共同构成了一个智能体原生数据库:一个为智能体提供已编译、受治理的上下文,而非段落排名列表的存储系统。

英文摘要:

Retrieval-augmented generation is becoming agentic. A search harness writes queries, reads results, reformulates, and decides when to stop. This largely solves accuracy: a harness with only BM25/grep and MiniMax M3 answers 85% of BrowseComp-Plus and 91% on multi-hop FRAMES in our runs, without compiled or vector indexes. It exposes a context problem: an undisciplined loop repeats queries, rereads documents, and fills the window with unused passages. The missing layer is knowledge compilation: a configurable ingestion pipeline where LLMs enrich documents with context no chunk contains alone--navigation hierarchies with claim-evidence leaves, entity graphs, timelines, mind maps, ontologies, wikis, and memory. Compilation is not a better retriever: under a competent harness, structural artifacts gave no detectable accuracy gain on FRAMES, and a PageIndex-style outline degraded at scale. It is a supply layer. A navigation tree whose leaves are claim-evidence pairs--the mechanism we measure--cuts query tokens by 91% when evidence suffices and adds 1.9% when it does not, a 38% average reduction; this implies a 2% break-even sufficiency rate and a measured rate near 43%. A decision gate cuts latency from 140 s to 30 s, though substitution's token saving is bought with retrieval rounds and carries its own latency cost. Other artifacts--ontology, graph, wiki, timeline, mind map, memory--pay off in deployment (governance, integration, onboarding, temporal orientation, continuity) where accuracy benchmarks cannot see them. We describe RAGFlow's pipeline and harness (open source at https://github.com/infiniflow/ragflow), which turns the loop into five disciplined stations and keeps the context entering the model the smallest sufficient set; together they form an agent-native database: a store that hands the agent compiled, governed context instead of a ranked list of passages.

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

↑