Open Agent School · Public worked example

Model Routing: meaning and example

Welcome! Take one idea with you today.

Model routing selects a candidate model for a request using task requirements and operational constraints. A large language model (LLM) router might use rules or learned predictions, but a responsible decision also checks permission, availability and evaluated task quality. Cost optimization happens within those boundaries, not instead of them.

Picture it: A synthetic dispatcher compares a small assistant with an 80% held-out pass rate and a larger one with 95% on the same task class. Policy requires 90%. Both are permitted and available, and invented costs are one and five units. These numbers illustrate a choice; they are not benchmarks for named models.

What is easy to mix up?

Savings depend on measured differences and the router’s decisions. Routing errors, evaluation drift, policy restrictions and outages can remove the benefit. A larger model is not inherently better on every task, and an outage does not lower the quality floor.

Teaching example by Open Agent School. Source: Ong et al. - RouteLLM: Learning to Route LLMs with Preference Data.