Search Intelligence Evaluation: A Practical Framework for Quality and Cost-Based Selection
Selecting models for search and retrieval-augmented generation requires more than comparing benchmark scores or token prices. This article explains how to evaluate retrieval, synthesis, grounding, and abstention; use a median-based quality threshold before comparing costs; and validate candidates through repeated testing, workload slices, and production-length inputs. It also covers retrieval optimization, deployment criteria, and ongoing regression testing.
When enterprises integrate large language models into search, question answering, and retrieval-augmented generation (RAG), a common mistake is to assume that a higher score automatically makes a system the better deployment choice.
Search intelligence is not simply conversational ability. It involves query understanding, evidence retrieval, citation constraints, multi-hop synthesis, and abstention when the evidence is insufficient. Without a consistent evaluation methodology, quality, latency, and cost cannot be compared meaningfully.
The following framework outlines how to define metrics, qualify candidates, compare costs, and keep evaluations aligned with production performance.
Define Search Intelligence, Not Just Fluency
Search outputs should be verifiable against external evidence. A practical definition of search intelligence is this: given a query and a searchable corpus, can the system retrieve sufficiently relevant material and produce an actionable conclusion without fabricating sources?
This definition separates three areas of evaluation.
Retrieval Quality
Evaluate whether retrieval covers the key facts and whether ranking places highly relevant documents near the top. Common metrics include recall, precision, and normalized discounted cumulative gain (NDCG).
These metrics measure whether the system finds the right information—not how polished its prose sounds.
Synthesis Quality
The model must answer within the supplied context, and its conclusions should be traceable to retrieved passages.
Use a task set with reference answers or explicit grading rubrics, combining automated scoring with human spot checks. Automated rules can assess required-point coverage, the presence of citations, and whether the answer addresses the question. Human reviewers should handle ambiguity and judgments requiring domain expertise.
Behavioral Boundaries
When evidence is insufficient, the system should abstain or explicitly communicate uncertainty rather than fill the gaps with fluent text. Giving high scores to polished but fabricated answers leads to poor selection decisions.
A composite score can normalize multiple metrics to a common scale and combine them using weights fixed before evaluation:
def search_score(retrieval, synthesis, grounding, abstain):# Each component ranges from 0 to 100; weights sum to 1.return (0.35 * retrieval+ 0.30 * synthesis+ 0.25 * grounding+ 0.10 * abstain)
The weights reflect business priorities. Compliance-sensitive applications should place more weight on grounding and abstention. Internal knowledge-base navigation may place more weight on recall.
Whatever the priorities, every candidate in an evaluation round must use the same weights, task set, and prompt template. Do not adjust weights after seeing the results.
Keep the Task Set More Stable Than the Models
Changes in rankings often come from changes in the evaluation set rather than sudden improvements in model capability. Build a stable task set covering four categories:
- Fact lookup: Short answers with clear evidence, used to evaluate retrieval and citations.
- Multi-hop synthesis: Questions requiring information from multiple sources, used to evaluate planning and context utilization.
- Ambiguous or easily confused queries: Synonyms, negation, time ranges, and entities with identical names, used to evaluate query understanding.
- Insufficient evidence: Questions whose answers are absent from the corpus, used to evaluate abstention and discourage consistently complete-looking but unsupported responses.
The sample set should cover the main business domains. Keep a frozen holdout set that is not used for tuning. Prompts and retrieval parameters can be iterated, but the holdout should be opened only after candidate configurations have been finalized, reducing the risk of overfitting to exposed test questions.
Version the task descriptions, corpus, chunking strategy, and evaluation scripts together. Otherwise, scores collected two months later may not be comparable with today’s results.
Apply a Median-Based Quality Threshold Before Comparing Costs
Sorting every candidate from cheapest to most expensive puts low-quality options near the top. A more reliable approach has two stages.
First, calculate the median search intelligence score across all candidates in the current evaluation round. Use it as the qualification threshold.
Candidates at or above the median proceed to cost comparison. Candidates below it should normally be excluded from the value-for-money ranking. If the business explicitly accepts lower quality, record that exception and its risks separately.
A median-based threshold adapts to changes in the score distribution as task difficulty changes, rather than relying solely on a fixed pass mark.
After qualification, rank candidates by their total cost per 1,000 tasks. Total cost should include at least:
- Model calls
- Retrieval and vector indexing
- Reranking
- Network egress
- Failed requests and retries
Do not compare output-token prices alone. An illustrative cost expression is:
cost_per_1k = 1000 * (calls_per_task * (input_price * in_tokens + output_price * out_tokens)+ retrieval_cost+ retry_rate * retry_cost) / (1 - failure_rate)
The failure rate appears in the denominator because failed requests often still incur charges and may trigger retries. A system with a lower listed price can therefore cost more under real traffic.
Score changes also need to be interpreted against their starting points. A large improvement from a low baseline shows that weaknesses have been addressed, but it does not automatically mean the candidate now outperforms an already stronger alternative.
Compare three things together:
- Absolute score: Determines whether the system is usable.
- Relative improvement: Indicates whether an iteration was effective.
- Qualification status and cost: Establish whether it belongs in the cost comparison and whether it can scale sustainably.
Do Not Treat a Single Snapshot as a Procurement Decision
A one-off evaluation can be affected by prompts, temperature, the number of retrieved passages, and reviewer bias. At minimum, perform three additional checks.
Repeated Runs
Run each task multiple times and report the mean and variance. A candidate with a high average but large variance may be unsuitable for unattended operation.
Performance by Workload Slice
Report scores separately by query length, domain, need for current information, and multi-hop requirements. The overall leader may still underperform on a business-critical slice.
Cost Sensitivity
Increase input length to a production-relevant percentile—for example, the 90th-percentile context length—and recalculate cost per 1,000 tasks. Some candidates are inexpensive with short prompts but become substantially more expensive with long contexts.
Deployment criteria should be a set of joint conditions, not a single rank:
- The frozen-set score meets or exceeds the qualification threshold.
- Critical workload slices meet business minimums.
- Cost per 1,000 tasks stays within budget.
- Timeout and abstention rates remain within acceptable ranges.
If any condition fails, revisit retrieval parameters, context truncation, or task decomposition. Do not replace that analysis with a claim that the system tops a leaderboard.
Improving Retrieval Often Delivers More Value Than Switching Models
Search bottlenecks frequently lie in indexing and query handling rather than the final generation stage. A practical optimization sequence is:
- Clean and govern the corpus. Remove duplicates and template noise, and retain time and access-permission fields. Without these fields, filtering and citations become unreliable.
- Improve chunking and use hybrid retrieval. Split content by headings and paragraphs. Combine keyword and vector retrieval, then apply lightweight reranking to narrow the results to a volume the model can actually process.
- Rewrite queries selectively. Expand queries with low recall rather than adding another model call to every request.
- Constrain generation. Require conclusions to reference passage identifiers. If a conclusion cannot be linked to supporting passages, require abstention. This reduces unsupported content more directly than simply raising temperature or requesting longer answers.
These changes have observable costs and can be rolled back. Comparing generation models by score and cost per 1,000 tasks becomes more meaningful once retrieval-side improvements reach a plateau.
Monitor Production and Run Regression Tests
Selection is not a one-time document. Establish logs and metrics across the search pipeline, including:
- Query volume
- Retrieval hit rate
- Citation coverage
- Abstention rate
- User downvotes
- End-to-end latency
- Cost allocated per task
Store these metrics in object storage or a logging service, and use monitoring alerts to detect sudden changes. Examples include an unexpected rise in abstention for a query category or long-context costs exceeding budget.
Run regression tests on the frozen set whenever prompts, chunking strategies, or model routing change. If the regression fails, roll back the configuration rather than using occasional positive production feedback to dismiss the evaluation result.
Routing can follow simple rules: send high-risk or low-recall queries through a higher-quality path, and send frequent, simple queries through a lower-cost path that has already passed the qualification threshold. Validate the routing rules using the same scoring and cost methodology.
If an enterprise already uses a unified cloud development and operations environment—for example, organizing logs, object storage, and monitoring alerts on Baidu AI Cloud—evaluation scripts and production metrics should share the same task identifiers. This keeps offline scores aligned with online costs. The approach depends only on general storage, logging, and alerting capabilities, not on unverified proprietary interfaces.
Conclusion
A practical approach to search intelligence selection has three foundations:
- Use verifiable tasks to evaluate retrieval, synthesis, grounding, and abstention.
- Apply a median-based quality threshold before comparing value for money.
- Rank qualified candidates by total cost per 1,000 tasks, accounting for failures and retries, and validate the results across workload slices, repeated runs, and long-context inputs.
Score improvements matter only when the absolute quality level meets the qualification threshold. Cost advantages must remain valid at production-relevant input lengths.
Iterating on retrieval and routing within this framework is more likely to produce a deployable, regression-tested, explainable search system than chasing the leader in a single benchmark snapshot.
