arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.20296cs.DBcs.AI
收藏

RAG-Stack:从向量数据库视角协同优化RAG质量与性能

RAG-Stack: Co-Optimizing RAG Quality and Performance From the Vector Database Perspective

Systems Group, ETH Zurich(苏黎世联邦理工学院系统组)

Wenqi Jiang

AI总结:

本文提出RAG-Stack,一个包含中间表示、成本模型和计划探索算法的三支柱蓝图,用于从向量数据库视角协同优化RAG系统的质量与性能。

摘要:

检索增强生成(RAG)已成为向量数据库最突出的应用之一。通过将从数据库检索到的文档整合到大语言模型(LLM)的提示中,RAG能够实现更可靠、信息更丰富的内容生成。尽管关于向量数据库已有大量研究,但在端到端RAG管道的更广泛背景下,仍有许多开放的研究问题。一个实际且具有挑战性的问题是如何在RAG中联合优化系统性能和生成质量,由于算法侧(涵盖模型和数据库)和系统侧(从软件到硬件)存在众多可调参数,这一问题远比表面看起来复杂。在本文中,我们提出RAG-Stack,一个用于RAG系统中质量-性能协同优化的三支柱蓝图。RAG-Stack包括:(1)RAG-IR,一种中间表示,作为抽象层以解耦质量与性能方面;(2)RAG-CM,一个成本模型,用于在给定RAG-IR的情况下估算系统性能;(3)RAG-PE,一个计划探索算法,用于搜索高质量、高性能的RAG配置。我们相信,这一三支柱蓝图将成为未来几年RAG质量-性能协同优化的事实标准范式。

英文摘要:

Retrieval-augmented generation (RAG) has emerged as one of the most prominent applications of vector databases. By integrating documents retrieved from a database into the prompt of a large language model (LLM), RAG enables more reliable and informative content generation. While there has been extensive research on vector databases, many open research problems remain once they are considered in the wider context of end-to-end RAG pipelines. One practical yet challenging problem is how to jointly optimize both system performance and generation quality in RAG, which is significantly more complex than it appears due to the numerous knobs on both the algorithmic side (spanning models and databases) and the systems side (from software to hardware). In this paper, we present RAG-Stack, a three-pillar blueprint for quality-performance co-optimization in RAG systems. RAG-Stack comprises: (1) RAG-IR, an intermediate representation that serves as an abstraction layer to decouple quality and performance aspects; (2) RAG-CM, a cost model for estimating system performance given an RAG-IR; and (3) RAG-PE, a plan exploration algorithm that searches for high-quality, high-performance RAG configurations. We believe this three-pillar blueprint will become the de facto paradigm for RAG quality-performance co-optimization in the years to come.

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

↑