LLM Selection for Search: Meet the Quality Threshold Before Comparing Costs

    Selecting an LLM for search requires more than comparing overall scores or token prices. This article explains how to evaluate evidence-based answer quality, establish eligibility thresholds, and rank qualified models by fully loaded task cost. It also covers workload-specific priorities, evaluation controls, staged deployment, and fallback policies.

    Enterprises integrating large language models into search, question answering, and research report generation quickly encounter the same trade-off: more capable models often cost more and respond more slowly, while cheaper models may struggle with multi-hop retrieval, citation faithfulness, and up-to-date information.

    An overall leaderboard can overstate the business value of top-scoring models. Ranking by price alone can put models that fail basic usability requirements into production. A more reliable approach uses two complementary rankings:

    • Search quality ranking: Which models use retrieved evidence most effectively?
    • Search efficiency ranking: Among models that meet the quality requirements, which cost the least?

    1. Define Search Quality as Measurable Capabilities

    Search quality is not conversational fluency or parameter count. It describes a model’s performance on tasks that require external evidence.

    Typical tasks include answering policy questions from internal knowledge bases, comparing information across documents, checking numbers and dates, providing traceable citations, and explicitly declining to answer when evidence is insufficient.

    An actionable evaluation should cover at least the following dimensions, with scoring criteria that people or rules can verify:

    1. Retrieval utilization: Does the model select the right evidence from candidate passages rather than ignore retrieval results and invent an answer?
    2. Answer correctness: Are key facts, numbers, entities, and conclusions consistent with the evidence?
    3. Citation faithfulness: Do citations point to real passages that support the associated claims? Is evidence attributed to the correct source?
    4. Multi-hop reasoning and synthesis: When an answer requires combining two or more sources, is the reasoning complete, without missing conditions?
    5. Freshness and conflict handling: When older and newer documents disagree, does the model follow business rules for choosing the more recent or authoritative source?
    6. Abstention and uncertainty: Does the model stop making assertions when evidence is insufficient, rather than fill gaps with fluent language?
    7. Instruction following: Are output format, length, language, and required fields consistent enough for downstream systems to parse?

    These dimensions can be combined into a weighted score, but the weights must reflect business needs rather than leaderboard defaults. Customer support places greater emphasis on abstention and citations. Research reports depend more on multi-hop synthesis and numerical verification. Code and operations knowledge bases require precise terminology and actionable steps.

    A first-place overall score without an explanation of its weights is not a purchasing recommendation.

    2. Read Quality Rankings Beyond the Headline Position

    A quality ranking compares capabilities; it does not establish a single universal winner. Read it alongside three questions:

    • Does the evaluation sample represent actual traffic?
    • Are score differences larger than evaluation noise?
    • Which dimensions account for the high scores?

    Use Representative, Stratified Samples

    Build evaluation samples from real support tickets, search logs, and failure cases. Stratify them by intent, such as factual lookup, comparison, process guidance, troubleshooting, and open-ended research.

    Public general-knowledge questions alone can systematically overrate conversational models and underrate models that handle internal documents well. Each category needs enough questions to prevent one or two difficult cases from reversing the ranking.

    Compare Score Gaps Against Annotation Uncertainty

    Interpret score differences in light of agreement between annotators. If disagreement on the same answers creates several percentage points of variation, a two- or three-point leaderboard gap may have little decision value.

    In that situation, examine dimension-level performance rather than decimal places. A model with a slightly lower overall score but substantially better citation faithfulness and abstention may be more suitable for a compliance-sensitive workload.

    Document the Retrieval Conditions

    The same model can score very differently under two setups:

    • Relevant “gold” passages are already included in its context.
    • The model receives only the top results naturally returned by the retrieval system.

    The first primarily measures reading and synthesis. The second is closer to production search.

    Published evaluations should state whether query rewriting is enabled, how many results are returned, how reranking works, and whether the model can initiate additional retrieval. Without those details, a search quality ranking may be little more than a context-reading benchmark.

    3. Set an Eligibility Threshold Before Ranking Efficiency

    An efficiency ranking should not sort every candidate by price. The correct sequence is:

    1. Set a quality threshold.
    2. Retain only models that meet or exceed it.
    3. Rank eligible models by cost per task, from lowest to highest.

    The threshold can be the median score across all candidates or an absolute score defined by the business. These are different standards and should not be treated as interchangeable.

    Use the Median for Initial Screening

    A median threshold is useful when there are many candidates but no established absolute acceptance standard. It means that a model should perform at least as well as the typical candidate in that evaluation pool.

    The median is resistant to unusually high or low scores. However, if the candidate pool is weak, its median will also be low. Passing the median does not establish production readiness.

    After median-based screening, check absolute requirements. For example, critical factual error rates, unsupported assertion rates, and citation error rates must remain below business-defined limits.

    Use Absolute Thresholds When a Baseline Exists

    An absolute threshold suits teams with an established historical baseline. A requirement might specify that, under a fixed retrieval configuration, accuracy on the core evaluation set must be no lower than the current production model, while recall for cases requiring abstention must meet an agreed target.

    Models that fail these requirements should not enter the efficiency ranking, however low their prices. Otherwise, “cheap but unusable” options distort the comparison.

    Compare Fully Loaded Cost per 1,000 Tasks

    Efficiency should be measured using fully loaded cost per 1,000 tasks, not output-token pricing alone. Include at least:

    • Input and output token charges
    • Retrieval and reranking calls
    • Tool calls
    • Failed attempts and retries
    • Manual sampling, review, and rework
    • Queueing caused by timeouts

    Latency does not have to be converted into the same monetary metric, but it must be displayed alongside cost. Otherwise, a low-price, high-latency model may be selected for a real-time workload it cannot serve adequately.

    4. Cost Structure Often Matters More Than List Price

    Many teams compare generation prices and discover after deployment that context length and retries drive total spending.

    Search inputs usually include system instructions, a query, multiple evidence passages, and conversation history. As evidence grows longer, a cheaper model is not necessarily cheaper overall. It may require more retrieval rounds, longer reasoning, or more retries because of failures.

    Break task cost into additive components and replay the same traffic across candidates:

    • Fixed prompt and query-rewriting overhead
    • Evidence assembly overhead, estimated from the average number and length of returned passages
    • Answer generation
    • Retries triggered by formatting errors, missing citations, or failed factual checks
    • The proportion of answers rejected during manual review and the labor required to correct them

    An illustrative accounting approach is:

    1. cost_per_task = retrieval + rewrite + generation + retry + review
    2. cost_per_1k = 1000 * mean(cost_per_task)
    3. eligible = models where quality >= threshold
    4. rank = sort eligible by cost_per_1k, then by latency

    Here, threshold can be a median score or an absolute acceptance threshold.

    Define consistent tie-breakers as well. When costs are close, prefer more reliable performance on critical dimensions, lower latency, and more easily parsed output rather than chasing marginal price differences.

    5. Select by Workload, Not by Overall Ranking

    Different tasks have very different tolerances for error. Model selection should reflect those differences.

    Internal Knowledge Question Answering

    Prioritize citation faithfulness and appropriate abstention. Shorter answers may be acceptable; incorrect policy statements are not.

    Use absolute error-rate requirements, then compare costs only among models that satisfy them.

    Research and Comparative Summaries

    Prioritize multi-hop coverage and conflict handling. A higher cost per 1,000 tasks may be justified because manually rewriting an incorrect report costs more.

    Give these capabilities greater weight in the quality score, and treat efficiency primarily as a budget constraint.

    High-Concurrency Tasks with Fixed Answer Patterns

    Examples include classification, field extraction, and simple factual field completion.

    Once quality clears the usability threshold, marginal improvements may not justify several times the cost. The efficiency ranking should become the main decision tool, supported by continuous monitoring on a small traffic sample to detect quality falling below the required limits.

    Long-Tail, High-Risk Queries

    Do not use an average score to represent these queries. Create a separate difficult-subset ranking for cases with scarce evidence, ambiguous questions, or contradictory sources.

    A model that leads on average but fails badly on difficult cases is unsuitable for unattended operation.

    6. A Minimum Evaluation and Deployment Process

    1. Fix the retrieval baseline. Keep query rewriting, indexes, retrieval counts, and reranking consistent when comparing models. Otherwise, score differences may reflect retrieval-system changes rather than model capabilities.

    2. Use stratified samples and retain failure cases. For each model change, rerun the same core set plus a new batch of failures. This helps prevent selection based only on performance on familiar questions.

    3. Use two reviewers for high-disagreement cases. Measure agreement and attach an uncertainty band to the overall score. Do not change the default production model based on differences within that band.

    4. Publish both quality and efficiency rankings. State the threshold method, cost accounting scope, and latency in external reports rather than publishing positions alone.

    5. Roll out gradually rather than switching all at once. Split comparable user traffic between configurations and compare task success rates, human escalation rates, and unit costs over at least one complete business cycle.

    6. Configure a fallback. If quality monitoring crosses a failure threshold, automatically return to the previous stable configuration instead of continuing with the cheaper model.

    7. Reevaluate regularly. Document collections, prices, and prompts change. A ranking is a snapshot, not a long-term commitment. Update thresholds and weights as part of business reviews.

    7. Common Misinterpretations

    Treating the highest overall score as a mandatory purchase ignores the possibility that users notice little benefit from additional quality once requirements are met.

    Treating the lowest unit price as the best option can send models into production despite failing the median screening threshold or absolute quality limits.

    Comparing generation list prices alone misses retries and manual rework. Replacing internal retrieval evaluations with public conversational benchmarks can favor models that sound convincing but do not verify evidence. Trusting the median of a weak candidate pool mistakes “relatively competitive” for “absolutely usable.”

    A more reliable decision rule is:

    Among models that meet the agreed quality threshold on the core set and stay within acceptable limits on the difficult subset, choose the one with the lowest fully loaded cost per 1,000 tasks, acceptable latency, and verifiable output.

    Keep other models as fallbacks or specialized routes rather than treating them as interchangeable replacements. The quality ranking excludes options that are not good enough. The efficiency ranking optimizes spending within the qualified set. Used together, they support decisions that account for both correctness and cost.