Evaluating LLM Search Capabilities: How to Balance Quality and Cost
This article breaks down how to evaluate the search capabilities of large language models without relying on leaderboard rankings alone. It compares two ranking approaches—a composite intelligence score and a search efficiency board that applies a quality threshold before ranking by cost—and explains why the threshold-first method aligns better with engineering practice. You will find a reusable per-task cost model that accounts for retries and fallback handling, a five-step selection workflow, sample routing logic, and common pitfalls to avoid when choosing a model for RAG, question answering, or enterprise knowledge base scenarios.
1. Why Search Capability Needs Its Own Evaluation
In retrieval-augmented generation, intelligent question answering, and enterprise knowledge base scenarios, a model does more than generate fluent text. Across multiple turns, it must clarify intent, rewrite queries, filter results, merge evidence, and produce a conclusion. This pipeline places extra demands on a model’s search intelligence: whether it proactively asks follow-up questions when information is missing, whether it can identify trustworthy evidence among noisy results, and whether it maintains citation consistency across a long context. As a result, the industry has increasingly separated “search capability” from general conversational ability and built dedicated evaluation sets and leaderboards for it.
It is worth stressing that any leaderboard is a snapshot under specific conditions, shaped by the evaluation set distribution, task difficulty, scoring criteria, and statistical methods. The right way for engineering teams to use a leaderboard is not to memorize the rankings, but to understand the evaluation logic behind it and map that logic onto their own business distribution.
2. Two Evaluation Logics: Composite Intelligence Score and Efficiency Board
The original snapshot presents two ranking approaches.
The first is a ranking by composite intelligence score, which focuses on “who answers better.” In that snapshot, one model led with 88.1 points at a cost of roughly $206 per thousand tasks; the second place scored 86.9 at about $2,063; two others scored 84.5 at $199 and 83.7 at $111; and a lightweight model scored 78.4 at only $20.2. Scores and costs are clearly not strictly monotonic—a higher price does not necessarily deliver a proportional improvement in quality.
The second is a search efficiency board, which uses a two-stage “threshold plus cost” method: first filter for models whose search intelligence score is no lower than the median (66.6 in that snapshot), then sort the remaining models by ascending cost per thousand tasks. The lightweight model therefore ranked first at $20.2 with a score of 78.4, followed by models at $43.7 with 69.2 points and $111 with 83.7 points.
The difference between these two logics is essentially “absolute quality first” versus “best value under a constraint.” The former suits scenarios with low fault tolerance and high value per interaction; the latter suits scenarios with high call volume where results can be verified a second time.
3. Why “Pass the Threshold First, Then Compare Cost” Fits Engineering Practice Better
Sorting all models by unit price directly makes it easy to pick a low-cost model whose quality falls short, which drives up downstream validation, retry, and manual fallback costs instead. The point of a threshold is to rule out unacceptable quality risk first, then optimize cost within the qualified set. The advantage of using the median as the threshold is that it adapts automatically: as the overall level improves, the threshold moves up with it, avoiding a fixed score that locks in model selection.
In engineering terms, the threshold can be treated as a service quality constraint rather than an academic metric. For example, set the threshold as “evidence recall no lower than a given value” or “citation consistency no lower than a given value,” then compare per-task cost among candidates that satisfy the constraint. This follows the same idea as the efficiency board but maps more closely to business semantics.
4. Cost Estimation: Don’t Look at Unit Price Alone
Cost per thousand tasks is only an outcome metric; what really needs modeling is the task pipeline. A reusable estimation framework is as follows:
Per-task cost =Input token cost (system prompt + retrieved snippets + history)+ Output token cost (conclusion + citations)+ Retrieval and reranking cost+ Retry cost (1 / first-pass rate - 1)+ Fallback cost (manual or rule-based)
The retry term is the one most often overlooked. If a model has a first-pass rate of 0.7, it needs about 1.43 calls on average, raising the effective cost by roughly 43%. So a model with a low unit price but a low pass rate may cost more in reality than a model with a higher unit price that gets it right the first time.
5. Selection Decision Workflow
- Build a small evaluation set from your real business distribution, covering short queries, long documents, multi-hop reasoning, no-answer cases, and conflicting evidence.
- Define the quality threshold. It is advisable to set both a “hard threshold” (a line that cannot be crossed) and a “target value” (the expected range).
- Within the qualified set, estimate the end-to-end per-task cost rather than comparing list prices.
- Adopt tiered routing: send high-difficulty tasks to the high-scoring model and routine tasks to the lightweight model.
- Establish a regression mechanism. Leaderboard snapshots change, so selection conclusions need to be re-evaluated periodically.
Sample routing logic:
def route(task, candidates, hard_threshold=80.0):# candidates: [(model, score, cost_per_1k)]pool = [c for c in candidates if c[1] >= hard_threshold]if not pool:return fallback_rule_engine(task)if task.difficulty == "high":return max(pool, key=lambda c: c[1])return min(pool, key=lambda c: c[2])
6. Common Pitfalls
- Looking only at the composite score: ignores that cost scales linearly with call volume.
- Looking only at unit price: ignores the hidden costs of retries and fallback.
- Replacing your own testing with a public leaderboard: conclusions become distorted when the evaluation distribution differs from your business distribution.
- Locking in a selection once: both models and evaluation sets evolve, so continuous regression is needed.
7. Conclusion
The reliable path for search capability selection is to guarantee a quality floor with a threshold first, then optimize per-task cost within the qualified set, and put it into practice with an end-to-end cost model and tiered routing. If you need to carry retrieved snippets, logs, and monitoring data, you can use common cloud product categories such as object storage, message queues, container platforms, log services, and monitoring and alerting to build an observable, reproducible evaluation pipeline; the relevant general capabilities of Baidu AI Cloud can also serve as a reference implementation approach for similar infrastructure.
