METIS: Fast Quality-Aware RAG Systems with Configuration Adaptation

Siddhant Ray, Rui Pan, Zhuohan Gu, Kuntai Du, Shaoting Feng +3 more
12/13/2024
cs.LGcs.CLcs.IR

No confident code implementation found for this paper.

Abstract

RAG (Retrieval Augmented Generation) allows LLMs (large language models) to generate better responses with external knowledge, but using more external knowledge often improves generation quality at the expense of response delay. Prior work either reduces the response delay (through better scheduling of RAG queries) or strives to maximize quality (which involves tuning the RAG workflow), but they fall short in optimizing the tradeoff between the delay and quality of RAG responses. This paper presents METIS, the first RAG system that jointly schedules queries and adapts the key RAG configurations of each query, such as the number of retrieved text chunks and synthesis methods, in order to balance quality optimization and response delay reduction. Using 4 popular RAG-QA datasets, we show that compared with the state-of-the-art RAG optimization schemes, METIS reduces the generation latency by $1.64-2.54\times$ without sacrificing generation quality.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ray2024metis,
  title  = {METIS: Fast Quality-Aware RAG Systems with Configuration Adaptation},
  author = {Siddhant Ray and Rui Pan and Zhuohan Gu and Kuntai Du and Shaoting Feng and Ganesh Ananthanarayanan and Ravi Netravali and Junchen Jiang},
  year   = {2024},
  eprint = {2412.10543},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.10543v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.10543.svg)](https://codeofpaper.com/paper/2412.10543)

Discussion