Model Fallbacks
In this article
- Decide from the kind of failure whether to retry the same model or stop and look for a replacement.
- Write a capability contract for a route and test a candidate replacement against every item of it.
- Choose between a full switch, an announced degraded mode and failing closed, and say what the user sees in each.
- Explain why a replacement that answers every request can still be the wrong one for a route that takes an action.
- Terms defined here: model fallback, degraded mode, fail closed.
Overview
The model your product runs on stops answering: an outage, a limit, a retired version. The easy reaction is "send it to some other model", and it causes the worst incidents, because the other model answers while doing a different job.
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. It handles three kinds of request, each with its own model setup, called a route. Two routes run on one model, orbit-flash-3, and that model has stopped answering. You will decide when to retry, when to switch, when to run a reduced service on purpose, and when to stop and hand the work to a person.
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
- When the model is out of reach
- Retry or switch
- The capability contract
- Two candidates
- Four failures, four answers
- Fallback lists in real tools
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions