Evaluating Large Language Models: From Model Selection to Usage Management
This article explains how to evaluate the practical value of large language models in a repeatable way. It covers defining task goals, building evaluation sets, scoring outputs on fixed criteria, and tracking acceptance rate, cost per accepted result, and latency. It also outlines common evaluation mistakes and how to handle credits that are about to expire.
1. The Starting Point: Spending Credits Without a Purpose
Many users have faced a similar situation. A membership is about to expire, and some points remain in the account. So they hand routine tasks to a model, reasoning that using the points is better than wasting them. The model ends up treated as a consumable. The tasks have no clear goal, and the outputs are rarely checked carefully.
The problem with this approach is that it ties the evaluation motive to sunk cost. Once the credits run out, the user is left with only a vague impression. They cannot say which tasks the model handles well or where it tends to make mistakes. An evaluation should be driven by real needs. Whether credits are close to expiring should not decide whether a model is good or bad.
2. Define the Evaluation Goals First
Before running any tests, answer three questions.
- What the model will be used for: text rewriting, summary extraction, code generation, information extraction, multi-turn Q&A, or complex reasoning. Different tasks place very different demands on model capability.
- What counts as acceptable: whether the output can be used directly, or whether it needs only minor edits before delivery. Write down the acceptance criteria in advance.
- What it costs: including monetary cost, waiting time, manual editing time, and rework when errors occur.
The answers to these three questions determine the design of every test that follows. If the goals are unclear, the test results cannot be interpreted.
A simple task definition can record the goal for each task type:
from dataclasses import dataclass@dataclassclass TaskSpec:name: str # Task name, e.g. "Meeting minutes summarization"goal: str # Definition of an acceptable outputmax_wait_sec: int # Maximum acceptable end-to-end wait time (seconds)max_edit_ratio: float # Maximum acceptable share of manual edits, between 0 and 1
3. Build an Evaluation Sample Set
Evaluation samples should come from real work, not from made-up questions. For each task type, prepare 20 to 50 samples that cover three difficulty levels.
- Easy samples: clean inputs with clear answers. These confirm that the model is basically usable.
- Medium samples: inputs with some noise, such as inconsistent formats or scattered information. These test stability in everyday work.
- Hard samples: content with ambiguity, edge cases, or multi-step reasoning. These reveal the model’s upper limits and its failure patterns.
Two points need attention when preparing samples. First, the prompt template for a given task must stay fixed. Otherwise, differences in prompts can hide the real gap between models. Second, if samples contain sensitive information, sanitize them first.
from dataclasses import dataclass@dataclassclass EvalCase:case_id: strtask_type: str # Task typedifficulty: str # easy / medium / hardprompt: str # Input rendered from the fixed prompt templatereference: str # Human-verified reference answer or scoring points
4. Design a Quantifiable Scoring System
Subjective impressions are easily shaped by mood and expectations. Split the scoring into several dimensions that can each be judged independently. Common dimensions include the following.
- Accuracy: whether facts, numbers, and logic are correct.
- Completeness: whether all key points required by the task are covered.
- Usability: whether the output can be used directly or needs only light edits.
- Format compliance: whether the output follows the agreed structure, such as fields, length, or markup language.
Score each dimension from 1 to 5, then combine the scores using weights. The weights below are examples. Adjust them to the nature of the task. For instance, code generation usually calls for a higher weight on accuracy, while marketing copy can give more weight to usability and style.
WEIGHTS = {"accuracy": 0.40,"completeness": 0.20,"usability": 0.25,"format": 0.15,}def weighted_score(scores: dict[str, float]) -> float:"""Scores range from 1 to 5. Returns the weighted composite score."""missing = set(WEIGHTS) - set(scores)if missing:raise ValueError(f"Missing scoring dimensions: {missing}")return sum(WEIGHTS[k] * scores[k] for k in WEIGHTS)
Scoring should be blind, meaning reviewers do not know which model produced each output. This reduces preconceived judgments.
5. Factor in Cost and Waiting Time
Looking only at output quality overlooks two key factors in real use: unit cost and waiting time. However high a model’s quality, long queues and frequent rate limiting will prevent it from supporting daily work.
Two metrics are worth tracking continuously.
Acceptance rate: the number of outputs that pass manual review divided by the total number of calls. It shows the share of useful outputs the model produces.
Cost per accepted result: total spending divided by the number of outputs that pass review. It reflects the real cost better than the price of a single call.
def acceptance_rate(accepted: int, total_calls: int) -> float:if total_calls == 0:return 0.0return accepted / total_callsdef cost_per_accepted(total_cost: float, accepted: int) -> float:if accepted == 0:return float("inf")return total_cost / accepteddef effective_latency(queue_sec: float, generation_sec: float) -> float:"""End-to-end latency equals queue wait plus actual generation time."""return queue_sec + generation_sec
Waiting time varies with the time of day and system load. Run tests across several time periods, and record the median and percentiles instead of a single result.
6. Common Evaluation Mistakes
1. Replacing systematic testing with a single impression. A model that performs well in one conversation is not necessarily stable across batch tasks. Randomness and small differences in prompts can both affect results.
2. Treating “it runs” as “it is usable.” Correct formatting and fluent sentences do not guarantee factual accuracy. Content involving numbers, citations, and code logic must be checked item by item.
3. Using the model to consume credits. This pulls the purpose of testing away from evaluation itself, and the conclusions are often unreliable.
4. Looking only at the best output. Track both average and worst-case performance. In real business use, occasional serious errors can matter more than the average result.
5. Ignoring the trade-off between cost and latency. A model with slightly higher quality but long waits may be less suitable for daily use than a slightly weaker model that responds quickly.
7. What to Do When Credits Are About to Expire
If an account has credits close to expiring, follow these steps instead of spending them at random.
- Take inventory: record the remaining amount, the expiration date, and any usage restrictions.
- List real needs: identify tasks from recent work that genuinely need assistance, and rank them by priority.
- Run small comparisons: for each task type, draw 10 to 20 samples and test them with the scoring system above.
- Keep the results: after testing, record scores, costs, and waiting times for future model selection.
- Accept unused credits: if no real task matches the remaining credits, there is no need to force their use. A reasonable loss is better than a low-quality decision made to avoid “waste.”
8. Practical Recommendations for Enterprise Teams
Teams that evaluate models internally can turn this process into a long-term mechanism.
- Store sample sets and historical outputs in object storage so that versions can be traced.
- Use a log service to record each call’s input size, latency, and status for later analysis.
- Use monitoring and alerts to track acceptance rate and waiting time, and notify the relevant people when these metrics drop noticeably.
- Re-test regularly, because model versions, service policies, and business data all change over time.
The purpose of evaluation is to choose the right tool for a specific task, not to prove that a tool is “the best.” As long as the method is sound and the records are complete, the result is a useful basis for decisions. The conclusion might be to keep using a model, switch to another, or set the question aside for now.
Conclusion
Evaluating a large language model comes down to turning “does it feel useful” into reproducible data. Define the task goal, build realistic samples, use a fixed set of scoring dimensions, and account for both cost and waiting time. Whether credits are about to expire should not drive the evaluation. This approach gives readers reliable model selection conclusions and helps them direct limited resources toward work that matters.
