How to Choose an LLM: Five Scenarios and a Pre-Launch Checklist

    Choosing an LLM requires scenario-based validation, not just leaderboard scores. This article explains how to test long-document QA, voice interaction, real-time web search, API cost, and fine-tuning compliance, and provides an engineering checklist and decision tree for shortlisting models.

    LLM selection should not rely only on benchmark scores. A model that performs well in long-document QA may have high latency in voice conversations, and a low unit price can still push costs beyond budget at scale. Before choosing a model, define the business scenario first, then compare candidate models using the same test dataset.

    How to Test Long-Document Scenarios

    The context window determines how much material a model can read at once. Legal files, financial research reports, literature reviews, and large codebases all depend on this capability. Its value is that the model can read the document as a whole and reduce information loss caused by retrieval chunking.

    Traditional RAG is still useful, especially when the knowledge base is large and materials need frequent updates. If chunking granularity is unsuitable, or recall and reranking are insufficient, RAG may break semantic relationships in the context. Therefore, choose between the two approaches based on data scale and update frequency.

    When testing long context, run a “needle in a haystack” experiment:

    1. Use a gradient of text lengths, such as 8K, 64K, 256K, and 1M tokens.
    2. Insert key information at the beginning, middle, and end, and sample equally at each position.
    3. Cover fact location, numeric extraction, and cross-paragraph reasoning in the question types.
    4. Repeat each group at least 10 times, record accuracy, and note the text length at which accuracy first drops noticeably.
    5. Set the accuracy threshold according to the business. For example, require above 95% before allowing production use.

    A million-token context roughly corresponds to hundreds of thousands to one million Chinese characters, depending on the tokenizer and language. For formal estimates, use the target model’s tokenizer for actual measurement.

    How to Validate Voice Interaction

    Voice interaction experience depends on latency and interruption handling. Text-only evaluation cannot cover these metrics, so they need separate testing.

    Focus on three metrics: first-token response time, end-to-end latency from speech recognition to speech synthesis, and handling when the user interrupts. The interruption test should simulate the user speaking while the model is broadcasting, and check whether the model can stop playback, retain what has already been said, and re-understand the question.

    Multi-turn dialogue also requires checking memory stability in long sessions. For example, is a budget or person name set in round 3 still followed in round 15? If the model frequently forgets constraints, consider periodically compressing history during the session and pinning key information in the context.

    A native model’s pretraining data has a cutoff date, so questions about news, stock prices, and weather require real-time retrieval. Web capability is usually implemented through built-in search or Function Calling to an external search API. After the model identifies a time-sensitive question, it retrieves webpages, cleans the content, reranks it, and then passes it to the model for summarization.

    Before launch, confirm three things. First, whether answers cite sources and publication times. Second, whether cache TTL matches information freshness; for example, stock price information should be cached in seconds or minutes. Third, whether summary citations comply with copyright requirements, since full reproduction usually requires authorization.

    How to Calculate API Cost

    A low unit price does not mean low total cost. Cost depends on the input-to-output token ratio, call volume, and cache hit rate. Use the following formula to estimate the cost per call:

    Cost per call = input tokens × input unit price + output tokens × output unit price

    Assume a model’s input price is CNY 2 per million tokens and output price is CNY 8 per million tokens. For a call with 2,000 input tokens and 500 output tokens, the cost per call is: 2,000 × 2 ÷ 1,000,000 + 500 × 8 ÷ 1,000,000 = 0.004 + 0.004 = CNY 0.008. At 100,000 calls per day, the daily cost is about CNY 800. This price is only for illustrative calculation; actual selection should use the latest prices published by the platform.

    Also check concurrency limits, P95 latency, service level agreements (SLAs), and rate-limiting policies. When calls fail, use exponential backoff retries to avoid repeatedly hitting the API in a short period.

    What Compliance Checks Are Needed Before Fine-Tuning

    Lightweight fine-tuning, such as LoRA, allows enterprises to customize models with private data. But before data leaves the local environment, a compliance review must be completed. Some platforms offer limited-time or limited-quota free fine-tuning allowances; before use, check billing rules, data upload methods, and privacy terms.

    Recommended checks:

    • Whether data has been de-identified, and whether fields such as ID numbers, phone numbers, and customer names have been removed.
    • Whether the data source is authorized, and whether contracts or user agreements allow use for training.
    • Whether data retention periods and deletion mechanisms are clearly defined.
    • Whether cross-border transfer is involved, and whether the transfer path meets regulatory requirements.
    • Whether data storage location and access permissions are controlled during cloud training.

    If the data involves core trade secrets, evaluate private deployment options first.

    Pre-Launch Engineering Checklist

    • Network: service endpoints, egress addresses, dedicated lines, or VPC configurations are confirmed.
    • Keys: API keys are stored in environment variables or a secret management service, not written into code or logs.
    • Permissions: callers are assigned least privilege, and development, testing, and production environments are isolated.
    • Storage: access control is enabled for the storage bucket containing knowledge base documents, with versioning or backups enabled.
    • Monitoring: call volume, token consumption, error codes, and P95 latency are recorded, with alert thresholds set.
    • Logs: user input is de-identified to prevent sensitive information from entering the logging system.

    Selection Decision Tree

    Use the business scenario to quickly decide which capabilities to test first:

    • If the business needs to read long documents or large codebases at once, prioritize long-context needle-in-a-haystack accuracy.
    • For consumer voice products, prioritize first-token latency and interruption handling.
    • If the business needs to answer questions about information from today or this week, prioritize source citation and freshness in web retrieval.
    • For budget-sensitive teams with proprietary knowledge, calculate cost per call first, then test fine-tuning effectiveness and data compliance.