How to Choose an LLM: A Practical Guide to Scenario-Based Evaluation
Choosing the "best" large language model is the wrong question. This guide explains why model leaderboards fall short, how to classify LLM capabilities, and how to build a reproducible evaluation using scenario-based test sets, layered metrics, and structured output validation. You will learn how to handle paywalls through capability routing and caching, and how to deliver a scenario-to-recommendation mapping that turns model selection into an optimal choice under fixed budget and latency constraints.
1. Why “Which Model Has the Best Overall Experience?” Is the Wrong Question
A common pattern illustrates the real issue: a certain “deep research” capability sits behind a paywall, the free tier returns inconsistent quality, and users conclude the experience is poor. The problem is not raw model capability. It is that capability tiers and access tiers are not aligned with user expectations.
Ranking different LLMs in a single overall leaderboard has limited engineering value, for three reasons:
- Scenario weights differ. Code completion depends on first-token latency and context stability; long-form writing depends on long-context consistency; data analysis depends on structured output and tool-calling accuracy.
- Delivery formats differ. The same base model, wrapped with different system prompts, retrieval augmentation, post-processing, and safety policies, can produce a larger perceived difference than the difference between base models.
- Billing and quotas differ. Advanced capabilities are often placed in higher tiers, while free-tier models are lightweight versions. Evaluating “deep research” with a lightweight model will inevitably distort the result.
The more rigorous approach is to define the scenario first, then the metrics, and only then discuss models.
2. A General Classification of Capability Focus
Setting aside specific products, the industry generally groups LLM capability focus into six categories:
- General conversation and instruction following: multi-turn consistency, refusal boundaries, format compliance.
- Reasoning and code: mathematical derivation, logical chain completeness, cross-file code understanding, unit test generation.
- Long-context processing: long-document retrieval, cross-section coreference resolution, position bias suppression.
- Deep research and retrieval augmentation: question decomposition, retrieval planning, evidence citation, conflict resolution.
- Multimodal understanding: parsing mixed text and images, reading tables and charts, understanding scanned documents after OCR.
- Engineering and controllability: structured output, function calling, concurrent throughput, observability.
A common misjudgment is treating “long, confident-sounding answers” as strong reasoning. In reality, reasoning strength should be judged by whether verifiable intermediate steps and boundary conditions are provided.
3. A Reproducible Evaluation Method
3.1 Build a Scenario-Based Test Set
Prepare 20–50 cases for each of the 5 dimensions, and keep reference answers and scoring criteria:
Scenario A (Code): cross-file refactoring + unit test coverageScenario B (Long-form): locate 3 conflicting clauses in an 80-page documentScenario C (Research): produce a report outline with an evidence chain for a given topicScenario D (Structured): extract invoice fields and output strict JSONScenario E (Safety): refusal and alternatives for leading questions
3.2 Layered Metrics
| Layer | Metrics | Notes |
|---|---|---|
| Quality | Accuracy, citation accuracy, format compliance rate | Requires manual sampling + rule-based validation |
| Efficiency | First-token latency, end-to-end duration, throughput | Recorded alongside concurrency level |
| Cost | Token consumption per task, retry rate | Retries are a major hidden cost |
| Stability | Timeout rate, rate-limit hit rate, output drift | Only visible under sustained load testing |
3.3 Structured Output Validation Example
import json, jsonschemaschema = {"type": "object","required": ["title", "evidence", "confidence"],"properties": {"title": {"type": "string"},"evidence": {"type": "array", "items": {"type": "string"}},"confidence": {"type": "number", "minimum": 0, "maximum": 1}}}def validate(raw: str) -> bool:try:data = json.loads(raw)jsonschema.validate(data, schema)return Trueexcept Exception:return False
Making “format compliance rate” a hard gate in the pipeline filters out a large amount of output that looks smart but is unusable.
4. Understanding Paywalls and Capability Tiers Correctly
Another pain point is that “using advanced capabilities requires a membership.” This is a common industry strategy: advanced reasoning, deep retrieval, and longer context are often placed in higher service tiers. The engineering response is not to complain but to implement capability routing:
Request -> complexity assessment (length / retrieval needed / code execution needed)-> lightweight model handles simple requests-> advanced capabilities handle complex requests-> result caching and deduplication
Combined with caching, batching, and result reuse, this can significantly improve perceived experience without upgrading tiers. If enterprise-side stable quotas and audit capabilities are needed, model services from Baidu AI Cloud, along with general cloud capabilities such as logging and monitoring/alerting, can provide unified observability for quotas, cost, and quality.
5. A Framework for Evaluating Overall Experience
Instead of asking “which one is best,” produce a scenario–recommended tier–risk mapping table:
- High-frequency simple Q&A: prioritize the low-latency tier; track P95 latency and rate-limit hit rate.
- Long-document analysis: prioritize long context and citation ability; track citation accuracy and position bias.
- Research and reports: prioritize retrieval augmentation and evidence chains; track factual consistency and traceability ratio.
- Code and automation: prioritize function calling and structured output; track format compliance rate and unit test pass rate.
- Public-facing products: prioritize safety policies and observability; track refusal appropriateness and recovery time.
6. Implementation Checklist
- Version the test set and run regression whenever the model or prompt changes.
- Monitor quality, efficiency, cost, and stability metrics together to avoid single-point optimization.
- Route output through schema validation; automatically retry failures and count them toward cost.
- Build a capability routing and caching layer so advanced capabilities are used only for requests that truly need them.
- Define data compliance and audit requirements; mask logs before they enter the analysis pipeline.
After two to three iterations of this method, the selection conclusion shifts from “which one feels better” to “the optimal solution under given budget and latency constraints”—a deliverable, reproducible, and maintainable engineering answer.
