How to Evaluate LLMs for Office and Development Work: A Scenario-Based Methodology and Practical Guide

    This guide explains why scenario-based evaluation gives more reliable model selection than general benchmark scores. It covers three common task categories, how to build a reproducible evaluation set with automated scoring, a framework that weighs quality, cost, and latency together, and common pitfalls to avoid.

    1. Why Evaluate by Scenario Instead of Benchmark Scores

    As more major model platforms open access to third-party models, developers and office users have far more options. Many people first check benchmark leaderboards. In practice, however, a model with a high benchmark score does not always perform best on your own tasks.

    The main reason is that general benchmarks measure a model’s average capability, while office and development work depends on how well a specific task gets done. Structural rigor in a technical design document, the share of generated code that runs, and the recall accuracy of long-document retrieval are often absent from general leaderboards or carry little weight there. For model selection, scenario-based evaluation grounded in real workflows is the most reliable basis.

    2. Classify Your Tasks First: Three Common Scenarios

    Before designing an evaluation, classify your tasks. The industry commonly divides model work into three categories. Their capability requirements differ significantly:

    1. Creative and generative tasks. These include front-end page generation, interactive visualizations, demo prototyping, and in-depth research report writing. They demand strong imagination, context organization, and multimodal understanding. Evaluation criteria are subjective, so human review is required.

    2. Engineering tasks. These include back-end API development, code completion in real projects, bug fixing, and unit test generation. They have objective verification methods: whether the code compiles and whether it passes test cases. This makes them the best fit for automated evaluation.

    3. Everyday office tasks. These include information retrieval, document summarization, meeting minute organization, and email and copywriting. They are high-frequency and relatively simple, but cost-sensitive. Cost-effectiveness and response speed often matter more than peak capability.

    A common mistake in model selection is trying to cover every scenario with one “all-purpose model.” A more practical approach is to select the best model for each category and then route requests through a unified scheduling layer at the platform level.

    3. Build a Reproducible Evaluation Set

    The evaluation set is the core asset of any evaluation effort. Follow these principles when building it:

    First, sample from real workflows. Desensitized real tasks discriminate between models far better than public test questions, because public questions have likely appeared in the models’ training data.

    Second, control the difficulty gradient. Prepare at least 20 cases each for easy, medium, and hard levels. If difficulty is concentrated in one band, all models will score similarly, and the evaluation loses its ability to separate them.

    Third, define a clear scoring standard for each case. For code generation tasks, you can use an automated validation process like the following:

    1. def evaluate_code_task(model_output, test_cases):
    2. # 1. Syntax and compilation check
    3. if not compile_check(model_output):
    4. return 0.0
    5. # 2. Unit test pass rate
    6. passed = run_tests(model_output, test_cases)
    7. functional_score = passed / len(test_cases)
    8. # 3. Static quality check (cyclomatic complexity, duplication rate, etc.)
    9. quality_score = static_analysis(model_output)
    10. return 0.7 * functional_score + 0.3 * quality_score

    For writing tasks, use blind review by two people with a consistency check. This reduces the subjective bias of any single reviewer.

    4. Evaluation Metrics: Quality, Cost, and Latency

    Output quality alone is not enough. A production deployment must consider three dimensions together:

    Quality: task completion rate, factual accuracy, and format compliance. Quality should carry a weight of at least 60%.

    Cost: total cost calculated from input and output tokens per thousand calls. For high-frequency everyday tasks, small per-call differences grow several times over at high call volumes, so cost often becomes the deciding factor.

    Latency: time to first token and overall generation speed. Interactive scenarios such as code completion are sensitive to time to first token. Batch processing scenarios care more about throughput.

    In practice, you can plot a quality-versus-cost scatter chart. Models on the Pareto frontier are candidates. Eliminate the rest.

    5. Common Pitfalls and Practical Recommendations

    Pitfall 1: Treating one evaluation as permanent. Model versions change quickly. Script the evaluation process and rerun it every quarter or whenever a major version is released.

    Pitfall 2: Ignoring the effect of prompt engineering. The same model can perform very differently under different prompts, with gaps of more than 30%. Fix the prompt template during evaluation, or tune the prompts for each model to a comparable degree.

    Pitfall 3: Overlooking stability. Call the model repeatedly on the same task and observe the variance in outputs. A model with high variance is a risk in automated pipelines.

    At the implementation level, teams should build a lightweight evaluation pipeline. Three components are essential: versioned management of the evaluation set, automated scoring scripts, and a results dashboard. For evaluation workloads that need cloud compute, a general-purpose container platform and object storage service can host the pipeline and its data. This keeps the process reproducible and the results traceable.

    6. Conclusion

    No single model is best for every task. The best choice is the one that fits your scenario. Building a sound scenario-based evaluation system, and using data instead of impressions to make decisions, is a foundational capability for any technical team working with large language models.