Score the request, not the vibes: confident requests take the cheap FAST path, the rest escalate to the HEAVY path.
confidence = 1 - (0.45 x ambiguity + 0.25 x length + 0.15 x domainRisk + 0.10 x hasCode)
| Feature | How it is computed |
|---|---|
| ambiguity | Template base score plus 0.05 per vague word found in the text (thing, stuff, somehow, whatever, it broke) |
| length | min(tokens / 160, 1), tokens counted from the generated text |
| domainRisk | Per domain: legal 0.70, code 0.25, support 0.10, product 0.08, account 0.05, sales 0.05, docs 0.05, general 0 |
| hasCode | 1 when the request contains a code snippet or a stack trace |
| Path | Cost per request | Latency |
|---|---|---|
| FAST (System 1) | $0.002 | 300 ms |
| HEAVY (System 2) | $0.06 | 4000 ms |