arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.10644cs.IR
收藏

RoutIR: 为检索增强生成系统提供快速服务的检索流水线

RoutIR: Fast Serving of Retrieval Pipelines for Retrieval-Augmented Generation

Johns Hopkins University(约翰斯·霍普金斯大学)

Eugene Yang, Andrew Yates, Dawn Lawrie, James Mayfield, Trevor Adriaanse

AI总结:

RoutIR 提供了一种高效的 HTTP API,支持动态构建和查询检索流水线,适用于需要在线服务的 RAG 系统。

摘要:

检索模型是检索增强生成(RAG)系统的关键组成部分,这些系统生成搜索查询、处理返回的文档并生成响应。RAG系统通常是动态的,可能涉及多轮检索。尽管许多最先进的检索方法可通过学术信息检索平台获得,但这些平台通常针对 Cranfield 模式设计,其中所有查询在前期已知并可以离线批量处理。这种简化加速了研究,但使最先进的检索模型无法支持需要在线服务的应用,例如需要循环、反馈甚至自组织代理的任意动态 RAG 流水线。在本工作中,我们引入了 RoutIR,一个 Python 包,提供了一个简单高效的 HTTP API,封装任意检索方法,包括第一阶段检索、重排序、查询扩展和结果融合。通过提供一个最小的 JSON 配置文件指定要服务的检索模型,RoutIR 可以通过任何可用模型的排列组合即时构建和查询检索流水线(例如,先融合几种第一阶段检索方法的结果,再进行重排序)。API 默认自动执行异步查询分组并缓存结果。尽管许多最先进的检索方法已由该包支持,但通过实现 Engine 抽象类,RoutIR 也易于扩展。该包已开源并在 GitHub 上公开:http://github.com/hltcoe/routir。

英文摘要:

Retrieval models are key components of Retrieval-Augmented Generation (RAG) systems, which generate search queries, process the documents returned, and generate a response. RAG systems are often dynamic and may involve multiple rounds of retrieval. While many state-of-the-art retrieval methods are available through academic IR platforms, these platforms are typically designed for the Cranfield paradigm in which all queries are known up front and can be batch processed offline. This simplification accelerates research but leaves state-of-the-art retrieval models unable to support downstream applications that require online services, such as arbitrary dynamic RAG pipelines that involve looping, feedback, or even self-organizing agents. In this work, we introduce RoutIR, a Python package that provides a simple and efficient HTTP API that wraps arbitrary retrieval methods, including first stage retrieval, reranking, query expansion, and result fusion. By providing a minimal JSON configuration file specifying the retrieval models to serve, RoutIR can be used to construct and query retrieval pipelines on-the-fly using any permutation of available models (e.g., fusing the results of several first-stage retrieval methods followed by reranking). The API automatically performs asynchronous query batching and caches results by default. While many state-of-the-art retrieval methods are already supported by the package, RoutIR is also easily expandable by implementing the Engine abstract class. The package is open-sourced and publicly available on GitHub: http://github.com/hltcoe/routir.

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

↑