Salvato in:
Dettagli Bibliografici
Autori principali: Zhang, Jiarui, Liu, Xiangyu, Hu, Yong, Niu, Chaoyue, Wu, Fan, Chen, Guihai
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:https://arxiv.org/abs/2505.23052
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911215701196800
author Zhang, Jiarui
Liu, Xiangyu
Hu, Yong
Niu, Chaoyue
Wu, Fan
Chen, Guihai
author_facet Zhang, Jiarui
Liu, Xiangyu
Hu, Yong
Niu, Chaoyue
Wu, Fan
Chen, Guihai
contents Retrieval-Augmented Generation (RAG) significantly improves the performance of Large Language Models (LLMs) on knowledge-intensive tasks. However, varying response quality across LLMs under RAG necessitates intelligent routing mechanisms, which select the most suitable model for each query from multiple retrieval-augmented LLMs via a dedicated router model. We observe that external documents dynamically affect LLMs' ability to answer queries, while existing routing methods, which rely on static parametric knowledge representations, exhibit suboptimal performance in RAG scenarios. To address this, we formally define the new retrieval-augmented LLM routing problem, incorporating the influence of retrieved documents into the routing framework. We propose RAGRouter, a RAG-aware routing design, which leverages document embeddings and RAG capability embeddings with contrastive learning to capture knowledge representation shifts and enable informed routing decisions. Extensive experiments on diverse knowledge-intensive tasks and retrieval settings, covering open and closed-source LLMs, show that RAGRouter outperforms the best individual LLM and existing routing methods. With an extended score-threshold-based mechanism, it also achieves strong performance-efficiency trade-offs under low-latency constraints. The code and data are available at https://github.com/OwwO99/RAGRouter.
format Preprint
id arxiv_https___arxiv_org_abs_2505_23052
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle RAGRouter: Learning to Route Queries to Multiple Retrieval-Augmented Language Models
Zhang, Jiarui
Liu, Xiangyu
Hu, Yong
Niu, Chaoyue
Wu, Fan
Chen, Guihai
Computation and Language
Retrieval-Augmented Generation (RAG) significantly improves the performance of Large Language Models (LLMs) on knowledge-intensive tasks. However, varying response quality across LLMs under RAG necessitates intelligent routing mechanisms, which select the most suitable model for each query from multiple retrieval-augmented LLMs via a dedicated router model. We observe that external documents dynamically affect LLMs' ability to answer queries, while existing routing methods, which rely on static parametric knowledge representations, exhibit suboptimal performance in RAG scenarios. To address this, we formally define the new retrieval-augmented LLM routing problem, incorporating the influence of retrieved documents into the routing framework. We propose RAGRouter, a RAG-aware routing design, which leverages document embeddings and RAG capability embeddings with contrastive learning to capture knowledge representation shifts and enable informed routing decisions. Extensive experiments on diverse knowledge-intensive tasks and retrieval settings, covering open and closed-source LLMs, show that RAGRouter outperforms the best individual LLM and existing routing methods. With an extended score-threshold-based mechanism, it also achieves strong performance-efficiency trade-offs under low-latency constraints. The code and data are available at https://github.com/OwwO99/RAGRouter.
title RAGRouter: Learning to Route Queries to Multiple Retrieval-Augmented Language Models
topic Computation and Language
url https://arxiv.org/abs/2505.23052