Just add an LLM as a fallback? The bill went up 12x.

A retail customer-service Agent project, three months in. Ops looked at the dashboard: 1,102 user messages, intent-classification accuracy 59.44%, unknown rate 40%. The business side asked something that sounded perfectly reasonable: "for that 40% unknown, can we just add an LLM as a fallback?" The vendor did. A week later the monthly bill landed — intent classification cost was 12x what it had been. Accuracy moved up by about 8 percentage points. The exec stared at the bill for half an hour without saying anything. Just add an LLM as a fallback. Did it actually help?
I have seen this exact arc three times in the past year, with three flavors of the same mistake. Path A is pure rules. The intent taxonomy grows from 15 to 30. Rules start eating each other. Three months later nobody wants to maintain rules.py, and the engineering team revolts. Path B is pure LLM. "LLMs are cheap now, just hit the API." High-concurrency scenario, 600K calls a day, six-figure monthly cost, and latency that makes streaming Server-Sent Events (SSE) unviable. Path C is a 3-tier fallback of rules, embeddings, and an LLM. Sending all traffic through a pure LLM is expensive and slow. Hybrid routing itself is a known pattern; the customer-service Agents I have seen ship have gone this way too. I start the coverage mix at rules 60%, embedding 30%, LLM 10%, and then tune it on real traffic. Run from that mix, and cost has been about 1/10 of the pure-LLM path, with accuracy actually higher — that is what I have seen, not a number I have checked against an external benchmark. But what is hard about 3-tier fallback is not the architecture. It is the thresholds: what confidence to return on, what ambiguity gap triggers a clarify, what unknown rate is normal for the LLM, how to cache, how to rate-limit. The next time someone says "just add an LLM as a fallback," you can put a table on the desk.
This post also delivers a second thing: once the 3-tier fallback is humming, what is the next move? When v1 hits its ceiling — taxonomy past 40 intents, policy boundaries shifting weekly, anchor-tuning marginal returns below +2pp — the natural evolution is v2 LLM Router, where the LLM combines context, multi-turn history, and the current query, and routes directly to ACTION, POLICY, and CLARIFY paths. Multi-turn clarification comes naturally. The two architectures are not substitutes. They are an evolution.
Why both extremes fail
Pure rules, pure LLM, and 3-tier fallback are three architectures. The first two die in production. The judgment first; the table is for people who need to land it.
| Approach | Cost | Latency | Accuracy ceiling (self-reported comparison) | Maintenance | How it dies |
|---|---|---|---|---|---|
| Pure rules | ~0 | sub-ms | 70-75% | Very high | Past 30 intents rules eat each other; engineering revolts in 6 months |
| Pure LLM | 10x | 200-500ms | 85% | Low | Six-figure monthly bills + can't carry high concurrency + unstable outputs |
| 3-tier fallback | Reasonable | Mixed | 90%+ | Medium | Ships |
The ceiling figures in the table are my comparison of the three approaches, which is already what the column header says.
Pure-rule's two death modes: at 10 intents or fewer it flies, accuracy mediocre but acceptable; at 30 or more, rules collide. "Return shoes" matches product_inquiry or return_request? The same utterance hits two rules, and the implicit ordering is undocumented. Six months in, total rules pass 100, and the next engineer who opens rules.py files a transfer request.
Pure-LLM's three death modes. Cost: high-concurrency, 600K calls a day at qwen-turbo's ¥0.002/1k token comes to six figures monthly. Latency: intent classification runs on every user turn as the first step; the LLM starts at 200-500ms, and with RAG retrieval, workflow execution, and generation stacked on top, first-token latency climbs past 2 seconds. On the user's SSE stream it just looks stuck. Stability: when temperature is not 0, the same utterance returns a different intent each time; when temperature is 0, corner cases still hallucinate, inventing a new intent label outside the taxonomy.
3-tier fallback is the engineering path I have seen still work: let cheap rules and embeddings catch most of the traffic, and only then fall through to an LLM, instead of sending everything through a pure LLM. I start with the cheapest layer at about 60%, the mid-priced layer at about 30%, the most expensive layer covering the last 10%, and the rest going to a human. Putting the expensive LLM on all traffic inverts that order, and the bill and the latency break first.
60, 30, and 10 are a starting hypothesis
The table below is the starting point for every threshold you will tune. Rules 60%, embedding 30%, LLM 10% is the coverage mix I mentioned above. Read the live distribution, then tune.
| Tier | Per-call cost | Per-call latency | Accuracy lift | Starting coverage (hypothesis) | Failure mode |
|---|---|---|---|---|---|
| Level 1 Rule | ≈ $0 | sub-ms | baseline 70% | 60-70% | Rules eat each other / regex too broad |
| Level 2 Embedding | ~$0.00002 | 20-50ms | +10-15pp | 20-30% | Low threshold misfires / high threshold drops recall |
| Level 3 LLM | ~$0.0002 | 200-500ms | +5-10pp | 5-10% | Force-picking / hallucinated intent labels / timeouts |
| Unknown → human | n/a | n/a | n/a | 3-5% | Below 2% = forced guessing; above 10% = taxonomy gap |
The numbers themselves are not magic, and they are not a target the industry has already agreed on. They are the hypothesis I start from. When your live distribution drifts far from this starting mix, I treat it as a signal to go inspect. Rule coverage below 50%: the taxonomy grew and the rules did not, so maybe pull a few high-frequency intents out and add rules. Rule coverage above 80%: rules may be swallowing specifics, "return shoes" hitting a generic "shoes" rule, so audit. Embedding coverage below 15%: the threshold is too high, or high-frequency user phrasing sits too far from the anchor sentences. Above 40%: the threshold is too low, and accuracy will collapse. LLM coverage above 15%: embedding is underfilled, and work the embedding layer should have handled is being dumped on the LLM. Below 3%: the LLM threshold may be too strict, or the embedding threshold too loose, swallowing the long tail the LLM should take. Unknown above 10%: there is a gap in the taxonomy, or user phrasing is far more diverse than your labeled set.
These monitoring signals are the steering wheel for tuning. Run two weeks live, read the distribution, and tune against the table.
Rules are not low-tech. They are the only layer that can stop "12315"
The rules layer takes the most heat in reviews: "we're in 2026 and still writing regex?" But the rules layer is the only one in the whole 3-tier fallback that can put a hard floor under compliance-critical intents.
Concrete example. A user says "I'm calling 12315," "I'm going to consumer-protection," or "I'm posting this on TikTok" — these are PR-risk signals that absolutely cannot be routed through embedding or LLM. Three reasons. Embedding recall is unstable: "12315" lives nowhere near "consumer-protection," "regulatory authority," or "market supervision" in vector space. The LLM occasionally misunderstands — I have seen an LLM interpret "calling 12315" as "spending 12,315 yuan." Real bug. And these need millisecond-level response: give the customer 200ms of reaction time, and the post may already be out.
So the first job of the rules layer is not covering 60% of high-frequency intents. It is matching 8-16 safety filters first.
INTENT_RULES = [
# Group 1: safety filters (highest priority, always match first, within 0.5ms)
("escalate_complaint", [
r"12315", r"consumer protection", r"BBB",
r"regulatory", r"complaint.*twitter", r"complaint.*tiktok", r"FTC",
]),
("human_transfer", [
r"^human$", r"^agent$", r"real person", r"speak to a person",
]),
("legal_threat", [
r"sue", r"lawsuit", r"attorney", r"lawyer",
]),
# Group 2: high-frequency business intents (starting hypothesis: cover 60-70% of daily traffic)
("return_request", [
r"return", r"send back", r"no-questions-asked",
r"i want to return", r"how do I return",
]),
("refund_status", [
r"refund", r"refund.*when", r"refund.*progress",
]),
# ... 8-12 more high-frequency business intents
]
Rule design has three iron laws, each paid for in production.
First, first match wins, so order decides everything. Safety filters must sit at the front, even if 99% of conversations never hit them. High-frequency intents should be ranked specific-before-broad: put "return shoes" in return_request, then add a separate product_inquiry as a fallback for "shoes." Reverse that, and "shoes" will swallow "return shoes."
Second, regex cannot be too broad or too narrow. Too broad: r"return" will hit "return to office," "return a call," "the return of a promotion." Too narrow: r"I would like to request a return" only matches the full sentence. The right granularity is 3-5 high-frequency phrasings plus 1-2 variants, such as r"return", r"send back", r"i want to return", r"how do I return".
Third, short utterances need anchors. r"^hi$" matches a bare greeting; r"hi" will hit "hi I want to return this" and misroute it to greeting. The anchors ^ and $ are the soul of this layer.
Get the rules layer to this point — everyday-intent coverage around 60 to 70 percent, on my starting hypothesis, plus 100% of high-risk PR cases — and it is the foundation of the whole 3-tier architecture.
On the embedding layer, you are tuning two thresholds, not one
Utterances the rules miss fall through to embedding. The core of this layer is not the confidence threshold. It is the ambiguity gap.
What is an ambiguity gap? The same utterance has a vector similarity of 0.78 with the top-1 intent, and 0.72 with the top-2 intent. The gap is 0.06. You should not return top-1. You should go to clarification.
The two thresholds have to be tuned separately:
def embedding_classify(query):
candidates = vector_search(query, k=3) # returns top-3
top1, top2 = candidates[0], candidates[1]
# Threshold 1: absolute confidence
if top1.score < 0.70:
return None # falls through to LLM
# Threshold 2: ambiguity gap
if top1.score - top2.score < 0.20:
return IntentResult(
intent="needs_clarification",
candidates=[top1, top2],
ask_user=True,
)
return top1.intent
Threshold 1 is top-1 confidence, starting value 0.75; the 0.70 in the sample code is the value you lower it to when recall is leaking. Below 0.75 is mostly a false recall, push it to the LLM; 0.75 to 0.85 is the sweet spot for this layer; 0.85 and up is almost certainly right, return it. Tuning direction: if live embedding-direct accuracy is below 90%, raise the threshold to 0.80; if too many utterances are being pushed to the LLM, LLM coverage above 15%, drop it to 0.70.
Threshold 2 is the ambiguity gap, starting value 0.20. Gap below 0.20, ask the user, run a multi-candidate clarification flow; gap at or above 0.20, return top-1. 0.75 and 0.20 are also numbers I start with, and they have to be tuned on real traffic.
A lot of teams skip the ambiguity gap. That is the biggest hidden bug on the embedding layer. A real case:
User: "the shoes have a problem"
top-1: complaint_quality, score=0.78
top-2: sizing, score=0.74 ← gap is only 0.04
top-3: return_request, score=0.71
Skip the gap check, force-return complaint_quality, the workflow routes to quality complaints, the user actually meant the size was wrong, the route is wrong, and the user escalates angry. Do the gap check, trigger clarification, ask "are you reporting product quality, a sizing issue, or requesting a return?" The user picks "sizing issue," and the route is right.
Clarification is not a UX loss. Clarification is swapping "misrouted, then yelled at" for "asked one question, then finished smoothly." A live clarify-rate of 5-10% is a healthy range: below 2% you are probably swallowing ambiguity; above 15% the taxonomy boundaries themselves are fuzzy.
The other thing on the embedding layer: anchor-sentence quality decides the vector space. Prepare 5-10 standard phrasings per intent — not SOP documents, real things users have said — embed them and average-pool them as the intent anchor. Weak anchors, and the whole embedding layer cannot get accuracy up. That 1,102-sample project at 59.44% accuracy was in this exact place: the anchors were picked from policy documents, not pulled from the dialogue corpus.
The one critical thing on the LLM layer is teaching it to say unknown
Rules miss, embedding is also unsure, and it falls through to the LLM. The most important thing on this layer is not how pretty the prompt is. It is getting the LLM to return unknown when it is unsure, instead of force-picking.
The LLM intent-classification prompts I usually see are written like this:
You are an intent classifier. Options: A, B, C, D.
User message: {message}
Return JSON: {"intent": "X"}
That prompt has a fatal default: it gives the LLM no exit that says "I'm not sure." When the LLM gets an utterance it cannot judge — something like "can I like, that thing I bought last week" — it will force-pick the closest one and return it. That force-pick is invisible in monitoring. The log just shows {"intent": "return_request", "confidence": 0.6}. In reality the LLM is guessing.
A correct prompt has to include three things:
You are an intent classifier. Given a user message, output the intent.
Options:
- return_request: requesting a return or exchange
- refund_status: checking refund progress
- shipping_inquiry: checking shipping
- product_inquiry: asking about products
- complaint_quality: complaining about product quality
- unknown: cannot determine / not in this list
Rules:
1. Output only JSON: {"intent": "xxx", "confidence": 0.0-1.0}
2. When uncertain, confidence < 0.7
3. **Completely uncertain OR not in the list → {"intent": "unknown", "confidence": below 0.5}**
4. Do NOT invent new intent labels.
User message: {message}
Three design points. unknown is a first-class intent — tell the LLM explicitly that this is a legal answer when it is unsure. The enum must be strict: use Pydantic, function calling, or a JSON schema to force the LLM to return only an intent on the list, and retry if parsing fails. Confidence must be tiered: treat anything the LLM returns below 0.7 as unknown, and do not trust a force-pick.
Live LLM-layer unknown rate should sit at 20-30%. Below 10% means the LLM is force-picking, and the accuracy you are looking at is fake; above 50% means the prompt is weak, or the taxonomy itself has gaps.
Two more things this layer must do. Temperature equals 0: intent classification is a deterministic task, it does not need creativity. At temperature 0.5 the same utterance returns a different intent each time, and your monitoring loses statistical meaning. Timeout must fail-closed: if the LLM does not respond within 300ms, kick to clarification or a human handoff. Do not default-allow. Same principle as Why a 70% Critic Beats a 95% Critic — timeouts usually mean the service is degraded, which is exactly when quality is not guaranteed, and forcing an intent is much more dangerous than going to clarification.
One starting-threshold table for the next review
The sections above collapse into one table. First launch, next review, internal read-through — walk this once. Eleven parameters. That is the full set of tuning points before a 3-tier fallback ships.
| Tier | Parameter | Starting value | Tuning direction |
|---|---|---|---|
| L1 Rule | Safety filter count | 8-16 | Missing PR/handoff → add rules; past 30 → audit |
| L1 Rule | High-freq intent rules | 8-12 intents, 3-5 patterns each | Coverage below 60% → see which high-freq intent has no rule; above 80% → audit for swallowed specifics |
| L2 Embedding | top-1 confidence | ≥ 0.75 returns | Accuracy drops → 0.80; recall drops → 0.70 |
| L2 Embedding | Ambiguity gap | < 0.20 → clarify | Clarify-rate below 2% = swallowing ambiguity; above 15% = taxonomy fuzzy |
| L2 Embedding | Anchors per intent | 5-10 real user phrasings | From dialogue corpus, not policy docs |
| L3 LLM | Confidence threshold | ≥ 0.7 accepted | Below 0.7 → treat as unknown |
| L3 LLM | Temperature | 0 | No creativity needed |
| L3 LLM | Timeout | 300ms | Timeout → fail-closed to clarification |
| L3 LLM | Unknown rate target | 20-30% | Below 10% = force-picking; above 50% = prompt or taxonomy issue |
| System | LLM coverage target | 5-10% | Above 15% = embedding underfilled |
| System | Overall unknown rate | 3-5% | Below 2% = forced guessing; above 10% = taxonomy gap |
When 3-tier fallback hits its ceiling, the next move is LLM Router, not more tuning
3-tier fallback is the starting architecture. Once it is stable, three signals tell you that you have hit the v1 ceiling. The taxonomy has grown past 40, policy intents are the majority — "when do I get a refund," "how long does a refund take," "what is the refund process" — and the boundaries are being rewritten every week. Embedding anchor tuning has been around the loop again and again, and the accuracy lift has fallen below +2pp and will not move. Multi-turn clarification demand is rising: the utterance is incomplete, you need to ask "which order do you mean," and the v1 frame has no natural place to ask.
Any one of these three, on its own, can still be tuned. All three at once, and v1 tuning has topped out. The problem is the intent model itself, not the thresholds.
I worked one project through this exact arc. v1 was textbook 3-tier fallback: 48 mutually exclusive intents (31 policy + 17 action), plus a safety filter. 1,102-sample accuracy 59.44%. Anchor tuning across four rounds moved from 56.5% to 58.66% to 59.44%, then would not move. The underlying problem: "when do you refund" and "how long will the refund take" are the same kind of question in the user's language. Forcing them into two mutually exclusive intents is an engineering convenience, not the user's view.
v2 became an LLM Router. The LLM routes the message onto 6 main paths:
ACTION → one of 17 workflow intents (refund / change-order / lookup / ...)
POLICY → goes straight to RAG (no intent-label KB filter)
SYS → system intents (anyone there / human-transfer copy / reset)
CLARIFY → LLM asks back (incomplete utterance)
UNKNOWN → fallback (none of the above)
ESCALATE → human handoff (PR risk / compliance / legal)
On the ACTION path the LLM then picks one of 17 workflows. The POLICY path does no intent classification at all — it throws the message straight to RAG to retrieve the KB, which is a one-stroke cancellation of 31 artificial policy-intent boundaries. That step is the key. Policy questions are fuzzy by nature, and the inaccuracy that forced classification introduces far outweighs the engineering convenience it buys.
The 3-tier fallback is not discarded. The layers are reassigned.
| Layer | What it did in v1 | What it does in v2 |
|---|---|---|
| Rule | ~150 rules covering both policy and action | Shrinks to ~16 rules, only fast-path safety filters for high-frequency / high-impact actions |
| Embedding | top-1 ≥0.75 returns an intent | Exits policy classification; optional intra-workflow disambiguation under ACTION |
| LLM | 5-10% fallback coverage | Primary — all non-fast-path goes through LLM Router |
A side-by-side of the two architectures:
| v1 HybridClassifier (3-tier fallback) | v2 LLM Router | |
|---|---|---|
| Intent model | 48 mutually exclusive intents | 6 main paths + 17 workflows under ACTION |
| Policy handling | 31 policy intents + KB sub_topic filter | POLICY path → RAG directly, no intent label |
| Ambiguity | Force-pick top-1 → wrong route | CLARIFY path → LLM asks back |
| Rule layer | ~150 rules | ~16 safety filters |
| LLM role | Fallback (5-10% coverage) | Primary (all non-fast-path) |
| Multi-turn clarification | Not natively supported | Natively supported |
| p95 latency | 200-300ms | +200ms vs v1 (one more LLM call on the critical path) |
| Per-turn LLM cost | ~$0.0001 | ~$0.0005 (5x) |
| Right stage | Intents ≤ 30, corpus still moving | Intents 40+, corpus stable, multi-turn clarification needed |
v2's cost: one more LLM call per turn. A qwen-turbo-class lightweight model adds about 200ms. First-token latency climbs from about 600ms to about 800ms, still inside the one-second user-perception threshold. Per-turn LLM cost lands at about $0.0007 — at 1,000 turns a day, that's about $2/day, negligible.
v2's wins. Policy intent boundaries vanish: 31 artificial boundaries deleted in one stroke, and RAG retrieves naturally. Ambiguity can be clarified by the LLM asking back, no more force-picking, and the UX feels more like talking to a person. The rule-maintenance surface shrinks from about 150 rules to about 16, and the engineering load drops sharply. Multi-turn context, user history, and the current query can be judged together, instead of hard-classifying a single utterance.
The most important engineering discipline: do not cut over to v2 directly. The new router must run in shadow, in parallel with the old classifier. The shadow router writes to its own independent Langfuse trace, joined to the main trace by session_id, without affecting product output.
Why an independent trace, not metadata on the main trace? In handler.py's finally block, after trace.end(), the OTel exporter rejects writes. Slow shadow LLM calls (200-2000ms) using fire-and-forget tasks will miss their writes, and the misses bias toward covering up the fast path. That bias is statistically fatal. It will lead you to the wrong conclusion that v2 is about the same as v1. An independent trace manages its own end() and flush(), and the timing is decoupled.
Run shadow for a week, and decide the canary on three UX signals. S1: the share of conversations where v1 force-picked top-1 but v2 went to CLARIFY — how many of v1's wrong routes v2 caught. S2: the share where v1 routed the wrong workflow, with a high later handoff rate, but v2 routed correctly. S3a: an out-of-family LLM judge (Kimi / DouBao / etc.) preference rate on v1 versus v2 outputs, with a 30-sample calibration set brought to at least 70% agreement.
If your team's customer-service Agent is still on v1, get this post's 3-tier fallback tuning solid first. At 30 intents or fewer, v1 is enough; jumping to v2 too early is money wasted. Taxonomy past 40, anchor-tuning returns below +2pp, and strong demand for multi-turn clarification — all three signals at once — then consider v2.
Cache is not an optimization. It is what makes high concurrency survivable
If your customer-service Agent sees more than 5,000 conversations a day, cache is not an optimization. It is a launch requirement.
Intent classification is naturally cache-friendly. Many users' openers and short questions are highly repetitive. "Anyone there," "hi," "I want to return this," "where's my shipment" — a customer-service Agent may see these hundreds of times a day. Hitting the LLM every time is just burning money.
import hashlib
from redis import Redis
def cache_key(message):
# Simple normalize: lower + strip + remove punctuation
normalized = message.lower().strip().replace("?", "").replace("!", "")
return f"intent:{hashlib.md5(normalized.encode()).hexdigest()}"
def classify_with_cache(message):
key = cache_key(message)
cached = redis.get(key)
if cached:
return IntentResult.from_json(cached)
result = three_tier_classify(message) # 3-tier fallback
if result.intent != "unknown": # only cache confident results
redis.setex(key, ttl=86400, value=result.to_json())
return result
When cache hit rate reaches 30-50%, overall cost drops by half, and p95 latency drops by two-thirds. Three things to watch. Only cache confident results: do not cache unknown or clarification, or the user will be asked back every time. TTL cannot be too long: the taxonomy evolves (v1 36 to v2 48 intents), and cache should not pollute across versions. A 1-day TTL, plus an explicit flush when the taxonomy changes, is the stable setup. Do not cache write-operation context: cache is safe for "what is the intent," not for "which tool to call with which arguments."
One measured number: a project at 10,000 conversations a day had monthly LLM cost of ¥8000 before cache, and ¥3500 after, at a 45% hit rate.
Five claims that should stop a review
The next time a vendor walks through an intent-classification design, these five claims are worth stopping the meeting for.
First: "we just use an LLM to classify, simple and reliable." Ask about high-concurrency monthly cost, whether there are safety filters, and whether there is shadow validation. If they can answer all three, they may be doing a v2 LLM Router, which is reasonable. If they only say "just call an LLM and you're done," you are likely looking at a billing incident within a month of launch, plus PR-risk leaks on the fast path. Those three things are what separate an LLM Router from a bare LLM classifier.
Second: "we use 100% rules, fully controllable." Ask how many intents they have now, and how many rules. Intents past 30 and rules past 80 means they are already in maintenance hell, and the next team to inherit it will tear it down and start over.
Third: "we set the embedding threshold at 0.5 and return." 0.5 in vector space is almost noise — most similarities are above 0.5, which means there is effectively no threshold. That design is less accurate than pure rules.
Fourth: "LLM unknown rate is 0." That means the LLM is force-picking. Ask how the LLM handles a sentence it does not recognize. "It returns the closest one" is exactly the problem.
Fifth: "we didn't build a cache." Any scenario above 5,000 conversations a day has to have one. Without it, cost is the reciprocal of the hit rate, many times over.
One of the five, and the design needs major rework. Two or three, and it will not last long after launch. Four or more, reject it and send the vendor back to rewrite.
Eleven things to do this week
To turn "just add an LLM as a fallback" into a set of thresholds that can actually ship, start with these this week.
- Draw the Agent's current intent-classification logic. Is it 3-tier fallback? Which layer is missing?
- Run a baseline: coverage by tier on 1,000 real conversations, compared to 60 / 30 / 10.
- Add 8-16 safety filters (12315 / human / consumer-protection / legal-threat / public-exposure goes through rules).
- Add an ambiguity-gap clarify branch on the embedding layer (top-1 versus top-2 gap below 0.2 triggers a question).
- Add an
unknownexit to the LLM prompt, plus enum strict, with Pydantic or a function-calling schema. - Set LLM temperature to 0 and timeout to 300ms. On timeout, go to clarification; do not force-pick.
- Cache classification results for high-frequency user phrasings, and return them directly on a match.
- Log the source of every classification — rule, embedding, llm, cache — and read the distribution daily.
- Add per-intent accuracy monitoring, judged by an out-of-family LLM-as-Judge.
- Prepare a fallback: if the LLM times out, errors, or comes back low-confidence, escalate to a human or ask back. Do not force-guess.
- Evaluate v1 to v2: how many intents now, what is the marginal return of anchor tuning, how often policy boundaries change, and how strong the demand for multi-turn clarification is. If all four hit the v2 upgrade bar, start a shadow-deployment evaluation. Otherwise keep v1 tuning solid.
Six questions for vendor reviews, when they claim "90% intent accuracy"
The next time someone reports "90% intent accuracy," do not take the number first. Ask these six back.
Question 1: what is the split across the three tiers? The mix I start from is around 60 / 30 / 10, to be tuned on real traffic — that is not itself a pass line. "LLM only" or "rules only" is a problem; "we don't layer" is a bigger one.
Question 2: what is the embedding threshold, and how do you handle the ambiguity gap? If they cannot answer, or it is below 0.7, or they do not do a gap, accuracy will not clear. My starting assumption is that top-1 at or above 0.75 returns, and a gap below 0.20 asks back — also to be tuned on real traffic.
Question 3: what is the LLM unknown rate? "0" means the LLM is force-picking; "20-30%" is normal. This is the simplest and most damaging question — most vendor decks do not even have the metric.
Question 4: what is the intent-cache hit rate? "We didn't build one" means monthly cost will blow up. A passing answer is a 30-50% hit rate, plus a 1-day TTL.
Question 5: how was the 90% accuracy computed — how many were sampled, what judge was used, and does it include unknown? This question comes from Containment Rate vs Resolution Rate: The Only Customer-Service AI Metric That Matters (How "98% CSAT" Gets Faked) and Pytest-Green Doesn't Mean Ship-Ready: How to Actually Test an AI Agent (Dual-Track). An unexplainable 90% is not a 90%. A passing answer: 200-500 sampled each week, plus an out-of-family LLM judge, a calibration set, and unknown recalled on its own.
Question 6, advanced: is this a v1 or v2 architecture, and how does shadow run? Ask whether they are on HybridClassifier or LLM Router, whether shadow writes to main-trace metadata or an independent trace, how long shadow has been running, and which UX signals decide the canary. "We didn't shadow, we just cut over" is high risk; "shadow is written into the main trace's metadata" is a fatal statistical bias, and the conclusion is not reliable. A passing answer: an independent trace, more than a week of shadow, at least two UX signals, plus an out-of-family judge for calibration.
Intent classification is the foundation. If it breaks, the building falls
I have seen too many customer-service Agent projects this year that used the most expensive model, wrote the longest prompt, and stacked three layers of rerank on RAG — and then got the first step, intent classification, wrong. Everything after that was wasted.
Misclassify the intent, and the workflow route is wrong, the Critic reviews an action on the wrong path, the write hits the wrong tool, and the dashboards all look green. On the user's end, every turn is still routed wrong.
The engineering value of intent classification is not the algorithm. It is the tradeoff: let rules and embeddings catch most of the traffic, and use the LLM for the long tail, instead of sending everything through a pure LLM. The mix I start from is 60% on high-frequency rules to save cost, 30% on embedding to catch ambiguity, and 10% on the LLM for the long tail, then tune it on real traffic. Three starting numbers, eleven tuning points, and three paths you should not take.
If the team's design is any one of "just use an LLM," "100% rules," "embedding returns at 0.5," "LLM unknown is 0%," or "we didn't build a cache," put this post on the table and have them rewrite.
If you want the tools in this post in the next review, or for your team's intent-classification tuning, I put together a PDF kit. Send me the keyword "INTENT TRIANGLE" and I'll send the pack:
- The 3-tier fallback tuning table, eleven parameters, with starting values and tuning direction
- The five claims that should stop a review, plus the six review questions, including the v1 / v2 architecture evaluation
- An 8-16 safety-filter starter pack
- An embedding ambiguity-gap clarification-flow template, including the ask-back copy
- An LLM intent-classification prompt template, including unknown, enum strict, and fail-closed timeout
- A v1 HybridClassifier to v2 LLM Router upgrade checklist: four upgrade signals, plus the shadow-deployment checklist and UX-signal definitions
A tuning manual converged from a year of projects, for anyone who read this far. Channels are in the footer. X or email both work.
Related writing
How to layer enterprise APIs is in Don't Let AI Agents Call APIs Directly. How to actually test an agent is in Pytest-Green Doesn't Mean Ship-Ready: How to Actually Test an AI Agent (Dual-Track). How an intent taxonomy itself evolves is in Corpus Drives Codebook — Why Your Intent Taxonomy Is Stuck at 60% and How It Evolves from 36 to 48. Contained is not the same as resolved, in Containment Rate vs Resolution Rate: The Only Customer-Service AI Metric That Matters (How "98% CSAT" Gets Faked).
Building an agent right now?
Send me your worst conversation. Free failure teardown.
Subscribe
Get the next essay in your inbox.



Comments