LLM Selection in Practice: A Scenario-Driven Technical Evaluation Method

    This guide explains how to choose a large language model based on business scenarios, data sensitivity, and operational constraints, rather than leaderboard rankings. It covers six evaluation dimensions, a reproducible testing process with weighted scoring, and practices for gradual rollout, fallback paths, and ongoing monitoring.

    1. Why “Which Model Is the Best?” Is the Wrong Question

    When teams discuss large language model selection, they often ask which model is the strongest. That question lacks context. Model capabilities are multidimensional. Different models have different strengths in code generation, long-document understanding, multimodal input, inference speed, and price. A model that performs well on one type of task may not suit another.

    A better question is: which model best meets our needs given our business scenario, data conditions, and budget? Selection should start from the scenario, not from a leaderboard.

    Leaderboard results usually come from general-purpose benchmarks, and their test sets can differ significantly from real business workloads. Your team’s own business data, input formats, and quality requirements are the final basis for judgment.

    2. Three Prerequisites Before Selection

    Before comparing models, answer three questions.

    2.1 What Is the Business Scenario?

    The scenario determines which capabilities matter most. Common scenarios include:

    • Software development assistance: code generation, code review, architecture discussion, and unit test writing.
    • Knowledge processing: summarizing long reports, answering questions across documents, and analyzing meeting notes.
    • AI agent tasks: calling multiple tools, running multi-step workflows, and handling exception branches.
    • Content production: product copy, marketing materials, and drafting operations plans.
    • Batch automation: processing large numbers of short tasks in parallel, such as classification, extraction, and tag generation.

    One team may cover several scenarios at once. In that case, rank them by priority rather than looking for a single model that covers everything.

    2.2 What Is the Nature of the Data?

    Data sensitivity directly affects the deployment approach. Public materials, internal business data, customer personal information, and classified material carry very different compliance requirements. Early in selection, decide whether data may leave your region, whether third-party API calls are allowed, and whether the system must run on an internal network.

    2.3 What Are the Constraints?

    Constraints include budget ceilings, latency requirements, peak concurrency, the team’s operations capability, and compliance and audit requirements. Constraints can rule out some candidates outright. For example, if data must stay on an internal network, only models that can be deployed privately are candidates.

    3. Breaking Down the Evaluation Dimensions

    Model evaluation can be broken into six dimensions. Each dimension needs a clear test method. Marketing descriptions alone are not enough.

    3.1 Coding and Engineering Tasks

    For coding ability, focus on three task types:

    1. Generating runnable code from natural language requirements.
    2. Understanding the context of an existing project and making local changes without breaking other modules.
    3. Reviewing code to find logic defects, security risks, and maintainability problems.

    To verify results, prepare a set of realistic task samples and judge the output with unit tests or human review. Do not judge generated code by whether it looks professional. Judge it by whether it passes the tests.

    3.2 Agent and Tool-Calling Ability

    For agent scenarios, the key concern is stability across multi-step execution. The model must understand tool parameter formats, decide when to call a tool, handle errors returned by tools, and keep its goal consistent across long workflows.

    Common failure modes include incorrect parameter formats, repeated calls to the same tool, losing the task goal in intermediate steps, and giving up immediately when an exception occurs. During evaluation, record the completion rate and failure type for each task, not only whether the final result succeeded.

    3.3 Long-Context Processing

    Context window length is only one parameter. A large window does not guarantee that the model can reliably locate and reason over information within it. To evaluate long-context ability, consider these tests:

    • Insert one key fact into a long document and check whether the model retrieves it accurately.
    • Ask the model to compare causes or figures across multiple sections.
    • Check whether answer quality drops noticeably as input approaches the window limit.

    In practice, many teams combine document chunking with retrieval-augmented generation to handle very long materials. The effectiveness of this approach also needs to be tested. Do not decide based on window length alone.

    3.4 Multimodal Input

    Multimodal capabilities include image understanding, document layout parsing, and video content analysis. If your business involves many screenshots, scanned documents, or design drafts, multimodal capability can significantly affect development cost.

    If a model natively supports multimodal input, you can skip separate text recognition and format conversion steps. If it does not, you need to build an additional preprocessing pipeline. Include this engineering cost in the total cost when comparing options.

    3.5 Inference Speed, Concurrency, and Cost

    Speed is usually measured in tokens generated per second, and time to first token also matters. Both values depend on the actual workload, input length, hardware, and queuing on the server side. Published figures are only a reference.

    Concurrency determines how the system performs during peak periods. Batch workloads prioritize throughput, while interactive workloads prioritize latency. Cost should be calculated per unit task: the total expense of completing one typical task, including retries, human review, and the overhead of failed tasks.

    3.6 Deployment Methods and Data Compliance

    Deployment falls into three broad categories: calling a model through a cloud service API, deploying in a dedicated cloud or private environment, and running on local servers. Each option involves trade-offs in data isolation, operations cost, and elastic scaling.

    For scenarios involving sensitive data, first confirm that the model’s license allows private deployment. Then review the data processing log retention policy and the access control mechanisms.

    4. Building a Reproducible Evaluation Process

    Reliable selection depends on a reproducible evaluation process. Here is a general set of steps.

    4.1 Build an Evaluation Set

    Draw samples from real business workloads, covering common cases and edge cases. Each sample should include an input and either an expected output or a scoring rule. The evaluation set does not need to be large, but it must be representative. As a guideline, include at least several dozen samples for each core scenario.

    4.2 Standardize Test Conditions

    When comparing models, keep the following conditions identical:

    • The same system prompt and output format requirements.
    • The same temperature or sampling settings.
    • The same input samples and the same scorers.
    • The same timeout and retry policy.

    If conditions differ, the comparison results are not meaningful.

    4.3 Weighted Scoring Example

    Scores for each dimension can be combined using business-specific weights to produce an overall score. The following example only illustrates the calculation. The weights and scores are hypothetical.

    ```python

    Weight for each dimension; weights sum to 1

    WEIGHTS = {
    “coding”: 0.25,
    “agent”: 0.20,
    “long_context”: 0.15,
    “multimodal”: 0.10,
    “latency_cost”: 0.20,
    “deployment”: 0.10,
    }

    def weighted_score(scores: dict) -> float:
    “””Scores range from 0 to 100. Missing dimensions count as 0.”””
    total = 0.0
    for dim, weight in WEIGHTS.items():
    total += weight * scores.get(dim, 0.0)
    return round(total, 2)

    candidates = {
    “Candidate A”: {“coding”: 85, “agent”: 78, “long_context”: 70,
    “multimodal”: 60, “latency_cost”: 75, “deployment”: 90},
    “Candidate B”: {“coding”: 72, “agent”: 80, “long_context”: 88,
    “multimodal”: 85, “latency_cost”: 65, “deployment”: 60},
    }

    for name, s in sorted(candidates.items(),