Everything *[NYC] 2026: see what we announced. →
Skip to content

Query routing definition

Query routing is the step in an AI system that decides where a request should go before it is answered: which data source, index, or tool should serve it, and which model should handle it. The decision is made by a separate, usually cheaper component that runs ahead of the main answer.


A diagram explaining Query routing in terms of related concepts.

What does a query router actually decide?

How are query routers built?

How is query routing different from tool gating, load balancing, and cascading?

Why do query routers fail, and how do you catch it?

How does structured content make query routing easier?

Explore Sanity Today

Understanding query routing is just the beginning. Take the next step and discover how Sanity can enhance your content management and delivery.

Last updated: