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

图RAG-工具融合

Graph RAG-Tool Fusion

PricewaterhouseCoopers(普华永道)

Elias Lumer, Pradeep Honaganahalli Basavaraju, Myles Mason, James A. Burke, Vamse Kumar Subbiah

AI总结:

针对传统基于RAG的工具检索无法捕捉工具间结构化依赖的问题,提出图RAG-工具融合方法,结合向量检索与图遍历捕捉工具知识图中相关工具及嵌套依赖,在新基准ToolLinkOS等上显著优于朴素RAG。

摘要:

最近,从工具知识库中选择相关工具的检索增强生成(RAG)技术的发展,使LLM智能体能够将其复杂的工具调用能力扩展到数百或数千个外部工具、API或作为工具的智能体。然而,传统的基于RAG的工具检索无法捕捉工具之间的结构化依赖关系,限制了检索到的工具依赖项的检索准确性。例如,在工具向量数据库中,“获取股票价格”API需要来自“获取股票代码”API的“股票代码”参数,且两者都依赖于操作系统级别的互联网连接工具。在本文中,我们通过引入图RAG-工具融合(Graph RAG-Tool Fusion)来解决这一局限性,这是一种新颖的即插即用方法,结合了基于向量的检索优势和高效的图遍历,以捕捉预定义工具知识图中的所有相关工具(节点)及其嵌套依赖关系(边)。我们还提出了ToolLinkOS,这是一个包含573个虚构工具的新工具选择基准,涵盖15个以上行业,每个工具平均有6.3个工具依赖项。我们证明,在ToolLinkOS和ToolSandbox基准上,图RAG-工具融合分别比朴素RAG实现了71.7%和22.1%的绝对改进(mAP@10)。ToolLinkOS数据集可在https://github.com/EliasLumer/Graph-RAG-Tool-Fusion-ToolLinkOS获取。

英文摘要:

Recent developments in retrieval-augmented generation (RAG) for selecting relevant tools from a tool knowledge base enable LLM agents to scale their complex tool calling capabilities to hundreds or thousands of external tools, APIs, or agents-as-tools. However, traditional RAG-based tool retrieval fails to capture structured dependencies between tools, limiting the retrieval accuracy of a retrieved tool's dependencies. For example, among a vector database of tools, a "get stock price" API requires a "stock ticker" parameter from a "get stock ticker" API, and both depend on OS-level internet connectivity tools. In this paper, we address this limitation by introducing Graph RAG-Tool Fusion, a novel plug-and-play approach that combines the strengths of vector-based retrieval with efficient graph traversal to capture all relevant tools (nodes) along with any nested dependencies (edges) within the predefined tool knowledge graph. We also present ToolLinkOS, a new tool selection benchmark of 573 fictional tools, spanning over 15 industries, each with an average of 6.3 tool dependencies. We demonstrate that Graph RAG-Tool Fusion achieves absolute improvements of 71.7% and 22.1% over naïve RAG on ToolLinkOS and ToolSandbox benchmarks, respectively (mAP@10). ToolLinkOS dataset is available at https://github.com/EliasLumer/Graph-RAG-Tool-Fusion-ToolLinkOS

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

↑