Routing, Fallbacks, and Graceful Degradation › A Worked Example: A Three-Tier Support Assistant
Language AI HandbookAll chapters Three model tiers are enough to expose the difference between reaching a tier and stopping at it. Assume each choice in the following cost calculation has met the same privacy and availability requirements. The table-free calculation treats each attempt as one fixed cost, so it remains valid without estimates of prompt or answer length.
Consider a three-tier example with fixed attempt costs , , and credits. Assume every request reaches tier 1 and the fractions stopping at each tier are 70%, 25%, and 5%, respectively. Then 30% reach tier 2 and 5% reach tier 3, so the mean attempt cost is credits per request.
More generally, let be the total attempt cost for one request. Let be the probability that tier is attempted. Each tier is attempted at most once and its cost is fixed in this model. Average the per-tier costs, weighted by how often each tier runs.
If every request reaches every tier, the same cascade costs 17 credits per request, compared with 12 for a single last-tier attempt. Add verifier costs to the accounting when the verifier has its own cost. If attempt costs vary, a tier contributes its attempt probability times its mean cost conditional on being attempted.
Why Acceptance Functions Are Hard
Check eligibility first. A provider can be healthy and still be disallowed from processing a request, for example because the policy restricts where private order details can go. Check availability before submitting. A candidate from the remaining tiers must meet any required structural checks, and may also need a score above a threshold.
An acceptance score is a feature for the decision. A score of 0.8, for example, does not mean eight in ten candidate answers are correct unless calibration supports that interpretation on the population under discussion. You can build a score from a verifier, an answer's structure, or features of the request and response, then evaluate the gate on labeled outputs of every tier it will inspect. A false acceptance exposes a wrong answer. A false rejection can add cost, increase latency, or lead to an unnecessary abstention.
A structured answer can pass a type check while still asserting the wrong fact. A stronger check might look for evidence for the answer's main proposition. Each verifier creates a different tradeoff. Deterministic checks are appropriate for conditions you can write down directly, such as requiring a field. Any condition whose answer depends on an imperfect scorer needs separate evaluation. Include failures from the tier that creates the candidate, since a scorer that has seen only large-tier outputs may miss errors common at the small tier.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!