LLM Selection for Applications: From Task Breakdown to Quantitative Evaluation
This article presents a practical method for selecting large language models for business applications. It explains why trial-and-error selection is insufficient, how to break requirements into verifiable task types, and six evaluation dimensions: task fit, context window and long-document handling, real-time information and external knowledge access, multi-turn dialogue stability, integration cost and concurrency, and data compliance and deployment. It also introduces reusable evaluation sets as a core asset in model selection.
1. Why Model Selection Needs a Method
Large language models vary widely in capability. The same model may perform very differently on code generation, long-document reading, and Chinese writing. Many teams stop at a few trials and choose by feel, only to discover after launch that responses are slow, long documents lose information, or costs exceed budget.
Effective selection needs to answer three questions: what the business needs the model to do, which metrics show whether it does it well, and which option is the best fit under cost, latency, and compliance constraints. The sections below follow these three questions.
2. Break Down Tasks Before Discussing Models
The first step in selection is to break business requirements into verifiable task types. Common types include:
- Knowledge Q&A: answer questions based on provided material, with a focus on factual accuracy.
- Code assistance: generate, explain, or modify code, with a focus on runnability and edge-case handling.
- Text generation: writing, rewriting, and summarization, with a focus on language quality and format adherence.
- Long-document processing: read reports, contracts, papers, and other long materials, with a focus on information coverage and locating ability.
- Real-time information queries: obtain news, prices, weather, and other time-sensitive content, with a focus on information source and timeliness.
Different tasks place very different demands on models. A model that performs well in general conversation may not be reliable for long-document information extraction. Selection should therefore group by task first, then design evaluation criteria for each group.
3. Six Key Evaluation Dimensions
3.1 Task Fit
Task fit refers to the model’s actual output quality on target tasks. It should be measured with business samples, not public leaderboards. Public leaderboard questions differ from real business work; their scores are only a reference.
3.2 Context Window and Long-Document Handling
The context window determines how much input the model can receive at once. A larger window allows more material to be placed in a single pass, but window size is not the same as comprehension. The longer the input, the more likely the model is to miss information in middle passages; this phenomenon is often called “lost in the middle” in the relevant research.
The token conversion ratio for Chinese text depends on the tokenizer, so a fixed character-to-token ratio should not be used. During evaluation, count tokens based on actual tokenization results and combine that with information recall on long documents.
In practice, a planted-fact test can be used: insert a verifiable fact at the beginning, middle, and end of a long document, then check whether the model can answer accurately. This directly reflects the model’s memory stability at different positions.
3.3 Real-Time Information and External Knowledge Access
Model training data has a cutoff and cannot directly answer the latest information. Two common approaches are:
- Web retrieval: the model calls search capability to obtain the latest web content, then generates an answer based on the results.
- Retrieval-augmented generation (RAG): enterprise documents are split and indexed in a vector index; at query time, relevant passages are retrieved and passed to the model.
Which approach to choose depends on the information source. Public real-time information suits web retrieval, while internal knowledge bases suit RAG. Either way, the model should be required to provide citations and the timeliness of sources should be verified.
3.4 Multi-Turn Dialogue and Interaction Stability
Multi-turn dialogue tests the model’s ability to maintain context consistency in long sessions. Design a series of follow-up questions to check whether the model forgets earlier constraints, repeats answers, or drifts off topic. Interaction experience also includes time to first token, smoothness of streaming output, and clarity of error messages; these directly affect user perception.
3.5 Integration, Cost, and Concurrency
Cost is determined by input tokens, output tokens, and number of calls. Monthly cost can be estimated as follows:
Cost per call = input tokens × input unit price + output tokens × output unit priceMonthly cost = cost per call × average daily calls × 30
Assume a scenario averages 2,000 input tokens and 500 output tokens per call, with 10,000 calls per day. Substitute the supplier’s actual unit prices into the formula to get the monthly budget. Peak concurrency limits, timeouts, and retries also increase actual usage and should be verified together in load testing.
3.6 Data Compliance and Deployment
Data compliance is a hard threshold for enterprise selection. Questions to confirm include: whether request data is used for model training, how long logs are retained, whether anonymization is supported, and whether private or dedicated network deployment is available. When personal information or sensitive business data is involved, legal and security teams should confirm before integration.
4. Build a Reusable Evaluation Set
An evaluation set is the core asset in model selection. A practical evaluation set…
