By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
A claims triage system is 6 points short on its accuracy target. A support assistant is 900 milliseconds over its p95 latency target. Both teams proposed the same change: move to the largest model tier.
For the claims team the change may work, but it pays for accuracy with latency and cost. For the support team it makes the binding problem worse, and the release meant to fix latency ships a regression.
Both teams changed a lever before they found where the constraint was spent.
A binding constraint is the axis you cannot trade away. A p95 figure is a total, not a cause. An accuracy gap is a count, not a cause.
| What the data shows | What it usually means | Cheapest test | What that test charges |
|---|---|---|---|
| The answer misses a passage that exists | Retrieval recall is too low | Raise retrieval depth, then rerank | Latency and tokens on every call |
| The right passage is present but used badly | Reasoning or prompt, not retrieval | Raise the model tier for that step only | Latency on the reasoning step |
| p50 is inside budget, p95 is not | A tail: one slow tool, a retry, a growing prompt | Remove the retry, add a timeout, cache the prefix | Occasional visible failures from the timeout |
| Every call is slow by the same amount | Context size or model tier, not one component | Cache the stable prefix and trim retrieved context | Engineering time, and a cache to invalidate |
Read the table as a filter, not a menu. A miss that never retrieved the passage cannot be fixed by reasoning, and a passage returned twice cannot be fixed by depth.
Every lever improves one axis and charges another. Name the charge before the change ships.
Caching is the only lever that usually improves both axes. An 8,000-token stable prefix is paid for on every request, which is a design defect before it is a performance problem.
A change is only an improvement if the binding axis gets better and the other axis stays inside its budget. Score both on every release, or the team will argue from impressions.
def score(change, before, after):
"""Judge a change on both axes, so a gain on one is never free."""
return {
"change": change,
"accuracy_delta": round(after["accuracy"] - before["accuracy"], 3),
"p95_delta_ms": after["p95_ms"] - before["p95_ms"],
"verdict": "keep" if (
after["accuracy"] >= before["accuracy"]
and after["p95_ms"] <= before["p95_ms"]
) else "review",
}
print(score("cache the stable system prompt",
{"accuracy": 0.81, "p95_ms": 4200},
{"accuracy": 0.81, "p95_ms": 2900}))Change one lever per experiment. Two changes in one release cannot be attributed, and the cost of the pair lands on the axis you were protecting. This is the least-cost rule from Section 1, applied to a performance budget.
An internal policy assistant reports four facts. Accuracy is 74% against an 80% target. p95 is 2.1 seconds against a 2.5-second budget. Sixty per cent of misses never retrieved the passage that holds the answer. The stable system prefix is 8,000 tokens.
The defensible answer raises depth and reranks, because the misses are recall misses and 400 milliseconds of budget remain. It caches the prefix first, because that spend is waste. It rolls back if p95 crosses 2.5 seconds.
Key takeaways
Name the binding constraint, then find where it is spent before changing any lever.
Retrieval depth, model tier, caching and call pattern each charge a different axis.
Caching the stable prefix usually improves latency and cost with no accuracy change, so check it first.
Score every change on both axes and change one lever per experiment.
A change that fixes the binding axis but breaks the other is a regression, not a win.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.