Definition

Model Routing

Model routing selects a model for each request according to a policy. A router can account for task difficulty, expected quality, latency, price and constraints such as data handling. Measure both routing overhead and task-level quality when comparing the policy with a single-model baseline.

Include the router in the cost comparison

In a toy batch of 100 requests, the low-cost model handles 60 at $0.005 each and the higher-cost model handles 40 at $0.020 each. Routing costs $0.001 per request. The total is $1.20, compared with $2.00 for sending all 100 to the higher-cost model. Add fallback and retry costs before applying this calculation to production, and review high-impact mistakes by task type.

RouteLLM research on cost and quality trade-offs

Intelligence at Scale by Shashank Agarwal

Explained in

Chapter 13: Production AI: Deployment, Monitoring, and Evaluation

The reality of running AI agents. It's nothing like the demo.

Related terms

This is one term. The chapter is the argument.

Intelligence at Scale: 22 chapters, 65,000 words, 80-plus diagrams. Kindle, paperback and hardcover on Amazon.

Buy on Amazon.com
← All terms