Model Routing
In this article
- Write a routing policy that sends each kind of request to the cheapest configuration that meets its quality and risk bar.
- Escalate a cheap answer to a stronger configuration or a person when a check the application runs fails.
- Score a whole routing policy against one configuration on the same tasks, slice by slice, including its routing errors and its latency.
- Explain why a model saying it is unsure is a weaker escalation signal than a check against evidence.
- Terms defined here: model routing.
Overview
Most questions a support chat gets are easy, and a few are hard or risky. Send everything to the strongest setup and you pay top price for the easy ones; send everything to the cheapest and the hard ones fail. So you pick a setup per request, and the question becomes how to do that without quality slipping where nobody looks.
In an invented example, Brightline, a home-internet provider, runs a support assistant on its website that answers customers and can look up an order, issue a refund of at most $50 and hand a conversation to a person on the support team. Its traffic mixes order lookups, policy questions and refund exceptions. By the end you can write a routing policy for it, decide when a cheap answer must go up a level, and check whether the whole policy beats one setup for everyone.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- One configuration for everything
- A router and its policy
- Escalate on a check you can run
- Scoring the policy
- The escalation share is a latency budget
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions