Cost per query versus cost per trusted answer
A cheaper query that fails the quality threshold more often can be the most expensive option once wasted answers are counted.
Published 2026-05-12 | Next review 2027-01-24 | Review trigger: Model price change above 15% or new route benchmark | Run auto-run-2026.11.3
Define a quality threshold with reviewers, measure the pass rate per route, then divide total cost, including review and rework, by passing answers.
Why cost per query misleads
Cost per query rewards routes that are cheap and wrong. If one route costs half as much but passes the threshold half as often, the business has paid the same for fewer usable answers, plus the cost of discovering and correcting the failures.
CPTA = (C_retrieval + C_generation + C_review + C_rework) / N_passingLevers that move the metric
- Classify intent before retrieval so exact lookups skip semantic search.
- Metadata filters before vector search shrink the candidate set.
- Dynamic top k stops retrieval when marginal evidence value falls below cost.
- Version-aware caching for stable questions.
- Smaller models for extraction and classification when they pass the threshold.
Rework is modelled as review minutes multiplied by loaded reviewer cost, applied to the failure share. Where failures reach customers, add an expected incident cost term.
Try it
Workload
15% of failures are assumed to be caught and reviewed.
Applied to 5% of failures that reach a decision.
SQL + hybrid delivers the lowest cost per trusted answer at $0.358.
Cheapest per query: SQL + hybrid at $0.024. Both metrics agree here.
| Route | Base cost / query | Base pass rate | Monthly total | Trusted answers | Cost / trusted |
|---|---|---|---|---|---|
| Vector only | % | $63.2K | 32,000 | $1.975 | |
| Hybrid + metadata | % | $25K | 43,000 | $0.582 | |
| SQL + hybrid | % | $16.3K | 45,500 | $0.358 |
Where the money goes
Claims in this note
Supported
SQL + hybrid cost USD 0.039 per query with recall@8 of 0.93.
Materiality high. Measured, single corpus
Cost per query can rank routes in the opposite order to cost per trusted answer.
Materiality high. Follows from definition; observed in run
Method
Route costs from metered token usage at list prices on the run date; pass rate from the reference set of 180 questions.
AI assistance disclosure
No generative AI was used for the analysis. AI assisted with copy editing.
Limitations
- List prices change frequently; check the run date.
- Review cost assumptions vary widely by organization.
Sources
Duoduo internal benchmark: four routes on auto-corpus v3.2
"SQL + hybrid route: recall@8 0.93 at USD 0.039 per query versus 0.62 at USD 0.094 for vector only."
- Publisher
- Duoduo Media Technology
- Independence
- duoduo-bench
- Checksum
- sha256:1b2c…9d4e
Open source reference
run://auto-run-2026.11.3Accessed 2026-11-24. Demonstration references resolve inside the curated corpus.
Change history
- v1.4 | 2026-11-24Benchmark refreshUpdated route costs after model price change; ranking unchanged.
- v1.0 | 2026-05-12Initial publicationFirst release.