Selecting a General-Purpose LLM Assistant: A Requirements-Driven Evaluation Approach

    This article explains how to evaluate general-purpose LLM assistants based on actual use cases rather than generic rankings. It breaks requirements into task, experience, and assurance layers; outlines key checks for reasoning, latency, style adaptation, factual reliability, safety, and privacy; and provides a reproducible evaluation workflow with a code example. It also covers data quality, multimodal testing, cost and engineering considerations, common selection pitfalls, and a recommended selection process.

    1. The Core Issue: Selection Criteria Depend on Use Cases

    “Which model works better?” is a common question, but it assumes there is one optimal answer for everyone. In reality, LLM assistants have multidimensional capabilities, and different users have very different requirements. Students working through mathematical derivations care about rigorous step-by-step reasoning. Professionals writing documents care about structured output and editing efficiency. In casual conversation and emotional support scenarios, users care about response speed and natural tone.

    Therefore, before comparing models, it is necessary to answer three questions: what task will be used to measure performance, who will do the measuring, and what criteria will determine the judgment. Only after these three questions are settled do comparison results become meaningful.

    2. Deriving Evaluation Dimensions from Requirements

    A practical approach is to break user requirements into three layers:

    1. Task layer: specific tasks such as question answering, writing, code generation, translation, logical reasoning, and creative generation.
    2. Experience layer: time to first token, overall generation speed, whether answer length is appropriate, and whether the tone fits the scenario.
    3. Assurance layer: factual accuracy, knowledge freshness, content safety, and user privacy protection.

    Each layer can be translated into measurable indicators. The task layer can be measured by accuracy. The experience layer can be measured by time to first token and generation throughput. The assurance layer can be measured by factual error rate, reasonable refusal rate, and sensitive information leakage.

    3. Key Evaluation Points for Core Capabilities

    3.1 Reasoning and Complex Tasks

    Multi-step reasoning, mathematical calculation, and code debugging are the best ways to expose a model’s true capability. During evaluation, the model should be asked to output intermediate steps, and both the final answer and the derivation process should be checked separately. Looking only at the final answer can easily lead to misjudgment: the model may guess the result correctly, or it may reason correctly but make a calculation error in the final step.

    3.2 Response Speed and Interaction Experience

    Time to first token directly affects the user’s perceived speed. Streaming output can reduce waiting anxiety; even when total latency is the same, the user experience may differ significantly. For high-frequency short question-answering scenarios, response speed often has a greater impact on retention than small differences in reasoning depth.

    3.3 Expression Style and Scenario Adaptation

    Answers should have a natural tone, clear structure, and controllable length. A useful test method is to set different roles or scenario prompts for the same question and observe whether the model can adjust its expression while maintaining factual accuracy. Models with strong style transfer capability are better suited to customer service, education, and companion scenarios.

    3.4 Factual Reliability

    Models may generate content that appears plausible but is actually incorrect; such issues are called hallucinations. When evaluating, prepare a question set with standard answers and distinguish between two behaviors: admitting uncertainty when the model does not know, versus fabricating a seemingly complete answer. The former is acceptable; the latter carries high risk in knowledge-oriented scenarios.

    3.5 Safety and Privacy

    Safety evaluation needs to check two directions at the same time. First, whether the model can refuse clearly harmful requests. Second, whether the model over-refuses normal requests, for example, treating common medical knowledge questions as sensitive content. In addition, check whether the model improperly repeats or stores personal information provided by users.

    4. Building a Reproducible Evaluation Process

    A complete evaluation process can be divided into four steps.

    1. Build a test set: prepare 20 to 50 samples for each task category, covering both easy and difficult levels. Questions should come from real usage scenarios and be desensitized.
    2. Standardize test conditions: use the same prompt templates, keep adjustable parameters consistent, and sample multiple times at different periods to reduce bias caused by randomness.
    3. Blind scoring: raters do not know which model produced an answer, reducing interference from subjective preferences.
    4. Aggregate and weight: assign weights according to the business importance of each task and calculate composite scores for each dimension.

    The example code below shows the basic structure of an evaluation framework. Here, model_fn is a call function wrapped by the user, so the framework is decoupled from the specific API implementation. Keyword hit rate is only an illustrative scoring method; in real projects, it should be replaced with human scoring or stricter rule-based validation.

    1. import time
    2. from dataclasses import dataclass
    3. from statistics import mean
    4. from typing import Callable
    5. @dataclass
    6. class TestCase:
    7. task_type: str # Task category, e.g. "reasoning" or "writing"
    8. prompt: str # Question sent to the model
    9. reference: str # Reference points, separated by commas
    10. def keyword_score(answer: str, reference: str) -> float:
    11. """Calculate the proportion of reference points hit in the answer (illustrative implementation)."""
    12. keywords = [k.strip() for k in reference.split(",") if k.strip()]
    13. if not keywords:
    14. return 0.0
    15. hits = sum(1 for k in keywords if k in answer)
    16. return hits / len(keywords)
    17. def evaluate(model_fn: Callable[[str], str], cases: list[TestCase]) -> dict:
    18. """Aggregate scores and average response latency by task category."""
    19. scores: dict[str, list[float]] = {}
    20. latencies: dict[str, list[float]] = {}
    21. for case in cases:
    22. start = time.perf_counter()
    23. answer = model_fn(case.prompt)
    24. elapsed = time.perf_counter() - start
    25. scores.setdefault(case.task_type, []).append(keyword_score(answer, case.reference))
    26. latencies.setdefault(case.task_type, []).append(elapsed)
    27. return {
    28. task: {
    29. "score": round(mean(scores[task]), 3),
    30. "avg_latency_s": round(mean(latencies[task]), 3),
    31. }
    32. for task in scores
    33. }

    Evaluation results should retain both the original answers and scoring records for later review. After a model version update, the same test set should be run again to observe trends.

    5. General Considerations for Data Quality and Multimodal Capabilities

    Model performance depends heavily on the quality, coverage, and alignment methods of training data. Under compliance requirements, user interaction feedback can be used for iterative optimization, but data minimization principles should be followed: retain only necessary fields and desensitize personal information.

    Multimodal capabilities (text, image, speech, and video) need to be tested separately. Strong performance in one modality does not imply that other modalities are equally reliable. For example, a model that understands images accurately may perform only moderately in speech transcription or video temporal analysis. During selection, validate each modality based on actual usage.

    6. Cost and Engineering Deployment

    Model selection should consider not only effectiveness but also engineering cost.

    • Invocation cost: most services charge based on the number of input and output tokens. Long context and long answers can significantly increase costs, so average token consumption should be measured during testing.
    • Caching strategy: cache results for high-frequency questions with stable answers. For questions involving time-sensitive information, set a shorter cache validity period.
    • Timeout and degradation: set timeouts for calls and prepare fallback answers or a lighter model to ensure service availability during peak periods.
    • Logging and monitoring: record response latency, error rate, and refusal ratio, and connect to logging services and monitoring alerts. User input in logs should be desensitized before storage.

    7. Common Selection Pitfalls

    1. Looking only at leaderboard rankings: public leaderboard test sets often differ from actual business scenarios, and rankings should only be used as an initial screening reference.
    2. Drawing conclusions from a single sample: model outputs are stochastic, and a single test result is not enough to represent overall performance.
    3. Ignoring scenario differences: the model that performs best in one scenario may not be optimal in another.
    4. Treating subjective preference as an objective metric: personal impressions are valuable, but they should be recorded separately from quantifiable indicators and judged together.
    1. Clarify the primary use scenarios and list the three to five most important task categories.
    2. Build a test set for each task category, covering both regular and edge-case samples.
    3. Conduct blind testing under standardized conditions and record scores, latency, and cost.
    4. Run a small-scale trial and collect feedback from real users.
    5. Make a decision based on the composite results and set a periodic re-evaluation cycle, because model capabilities and service terms change over time.