RAGCompass improves retrieval choice for better answers across databases

RAGCompass: Generalizable Retriever Routing via Reranking

Computation and LanguageInformation Retrieval

Summary

Different search tools work better for different questions, but it’s hard to know which one to trust for each query. The authors introduce RAGCompass, a system that looks directly at the sets of documents retrieved from various search tools to decide which set will give the best answer. By learning to rank these document sets based on how well they support correct answers, RAGCompass chooses better results, even on new databases or search tools it hasn’t seen before. It significantly boosts answer quality compared to using any single search tool or previous routing methods.

What this means in practice

  • For search system developers: Enhance retrieval pipelines by dynamically selecting the best document sets per query from multiple search tools to improve answer accuracy.
  • For customer support teams: Provide faster and more accurate retrieval of relevant knowledge base content by routing queries through optimal retrieval sources.

Authors

Valentin Six, Mufei Li, Dongqi Fu, Yinglong Xia, Hong Li, Pan Li

Abstract

Different retrievers exist for retrieval-augmented generation, yet none performs best for all queries. Therefore, the key question is: given a query and retrieved passages from different retrievers, which one is most suited for that query? Existing routers usually make predictions from query-specific features and a fixed pool of retrievers; such routers have no output for an unseen retriever and are incapable by design on a new corpus. To fill these gaps, RAGCompass reads the retrieved passage sets themselves: passages from an unfamiliar retriever or corpus stay directly comparable to other passages, so routing stays well designed where a query-only map would fail. We contrastively fine-tune a reranker against the answer each evidence set produces, which accounts for most of the gain; a small comparison head adds a moderate improvement, and neither component has retriever-specific parameters. RAGCompass improves answer F1 by 28% relative to the best fixed retriever, and outperforms fusion baselines, three query-only routers, and a prompted 8B language model. Generalization experiments show that RAGCompass keeps most of its gain under an unseen corpus, retriever, or reader, while query-only baselines fall to the best fixed retriever or below.