Adaptationcore
Model routing & cascades
Send each request to the cheapest model likely to handle it; escalate when unsure.
What it is and why it exists
Routing picks a model up front from features of the request (a classifier or rules). A cascade tries the cheap model first and escalates to a stronger one when a confidence signal or check fails. Savings depend on how much traffic the small model handles and how good the escalation signal is.
Quick prototype
if len(question) > 500: big_model.
In production, at scale
A router or cascade tuned on labelled traffic for target quality, with measured escalation rates, cost per request by route, and the quality of escalated vs non-escalated answers monitored.
Vendors and tools
| RouteLLM / Not Diamond / Martian | Routers |
|---|---|
| LiteLLM router | Rule- and cost-based routing |
On AWS: Bedrock Intelligent Prompt Routing within a model family.
How it fails
- Overconfident small model never escalates
- Router errors that send hard questions to the small model
What the interviewer asks next
Cost of a cascade where 70% stays on a model costing 1/10th?
0.7 × 0.1 + 0.3 × (0.1 + 1) = 0.07 + 0.33 = 0.40 of the big-model cost — escalated requests pay for both calls.