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

REAPER:面向复杂 RAG 系统的基于推理的检索规划

REAPER: Reasoning based Retrieval Planning for Complex RAG Systems

Ashutosh Joshi, Sheikh Muhammad Sarwar, Samarth Varshney, Sreyashi Nag, Shrivats Agrawal, Juhi Naik

AI总结:

本文提出REAPER,一种基于LLM的检索规划器,通过生成检索计划解决复杂RAG系统中的多步检索问题,显著降低延迟并提升对新用例的扩展性。

摘要:

复杂的对话系统通常使用检索到的证据来促进事实性响应。此类 RAG(Retrieval Augmented Generation)系统从海量异构数据存储中进行检索,这些数据存储通常被架构为多个索引或 API,而不是单一的整体源。对于给定的查询,需要从一个或一小部分可能的检索源中检索相关证据。复杂的查询甚至可能需要多步检索。例如,零售网站上回答客户关于过去订单问题的对话代理需要先检索相应的客户订单,然后在已订购产品的上下文中检索与客户问题相关的证据。大多数 RAG Agent 通过交替进行推理和检索步骤来处理此类思维链任务。然而,每个推理步骤都会直接增加系统的延迟。对于大型模型,这种延迟成本是显著的——在几秒钟的数量级上。多智能体系统可能会将查询分类到与检索源关联的单个 Agent,尽管这意味着一个(小型)分类模型决定了大型语言模型的性能。在这项工作中,我们提出了 REAPER(基于推理的规划器)——一个基于 LLM 的规划器,用于在对话系统中生成检索计划。我们展示了相对于基于 Agent 的系统在延迟上的显著改进,并且与基于分类的规划相比,能够轻松扩展到新的和未见过的用例。尽管我们的方法可以应用于任何 RAG 系统,但我们在对话式购物助手的背景下展示了我们的结果。

英文摘要:

Complex dialog systems often use retrieved evidence to facilitate factual responses. Such RAG (Retrieval Augmented Generation) systems retrieve from massive heterogeneous data stores that are usually architected as multiple indexes or APIs instead of a single monolithic source. For a given query, relevant evidence needs to be retrieved from one or a small subset of possible retrieval sources. Complex queries can even require multi-step retrieval. For example, a conversational agent on a retail site answering customer questions about past orders will need to retrieve the appropriate customer order first and then the evidence relevant to the customer's question in the context of the ordered product. Most RAG Agents handle such Chain-of-Thought (CoT) tasks by interleaving reasoning and retrieval steps. However, each reasoning step directly adds to the latency of the system. For large models this latency cost is significant -- in the order of multiple seconds. Multi-agent systems may classify the query to a single Agent associated with a retrieval source, though this means that a (small) classification model dictates the performance of a large language model. In this work we present REAPER (REAsoning-based PlannER) - an LLM based planner to generate retrieval plans in conversational systems. We show significant gains in latency over Agent-based systems and are able to scale easily to new and unseen use cases as compared to classification-based planning. Though our method can be applied to any RAG system, we show our results in the context of a conversational shopping assistant.

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

↑