RAG & Retrieval·Question 83 of 100Quick-fire

What is query routing across multiple indices or data sources?

Quick-fire answer from the Awesome Generative AI Guide (MIT)

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

When you have several corpora (product docs, code, tickets, a SQL database), a single index is rarely right, so a router first classifies the query and sends it to the appropriate source or set of sources, sometimes fanning out and merging results. Routing can be rules, a lightweight classifier, or an LLM deciding which tool or index to hit, which is the boundary where RAG shades into agentic retrieval. It raises precision and lets each source use the retrieval method that suits it (vector for prose, structured query for tables). The cost is added complexity and a new failure mode (misrouting), so log routing decisions and evaluate them.

Full worked answer

When you have several corpora (product docs, code, tickets, a SQL database), a single index is rarely right, so a router first classifies the query and sends it to the appropriate source or set of sources, sometimes fanning out and merging results. Routing can be rules, a lightweight classifier, or an LLM deciding which tool or index to hit, which is the boundary where RAG shades into agentic retrieval. It raises precision and lets each source use the retrieval method that suits it (vector for prose, structured query for tables). The cost is added complexity and a new failure mode (misrouting), so log routing decisions and evaluate them.

Learn more: Agentic RAG 101 guide

What a good answer covers

  • When you have several corpora (product docs, code, tickets, a SQL database), a single index is rarely…
  • Routing can be rules, a lightweight classifier, or an LLM deciding which tool or index to hit, which is…
  • It raises precision and lets each source use the retrieval method that suits it (vector for prose,…
  • The cost is added complexity and a new failure mode (misrouting), so log routing decisions and evaluate them

Key terms: Learn more

Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep