LLM Selection for Office and Engineering Work: Capability Profiles and Evaluation Methods

    There is no single best LLM for every task. This article presents a structured approach to selecting models for office and engineering use: define scenario categories, map each to required capabilities and measurable metrics, build representative evaluation sets with automated checkers, normalize and weight quality, latency, cost, and stability, and validate candidates through routing, shadow traffic, canaries, and monitoring. It also covers cost and latency estimation, common pitfalls such as leaderboard-only selection, context limits, unstable output formats, privacy risks, and prompt injection, plus a practical rollout checklist. Readers can use the method to compare models against their own workloads rather than relying on aggregate scores or demo impressions.

    1. Why There Is No Universal “Best Model”

    The same model may perform reliably on long-form writing but fail frequently on complex engineering changes. Models differ in training objectives, context length, tool-calling ability, and inference cost, so each model has task ranges where it performs best.

    A common selection problem is looking only at aggregate leaderboards. Leaderboard scores are averages across many tasks and cannot reflect your specific business. For example, a model that scores highly on general question answering may fail to understand cross-file call relationships in your code repository. Selection should start from your own tasks and collect evidence in a structured way.

    This article groups common office and engineering scenarios into three categories, each with a different capability profile.

    2. Break Work Scenarios into Capability Dimensions

    First list the tasks your team actually uses, then annotate each task with its main capability requirements and core metrics. The table below is a starting point you can apply directly.

    Scenario category Typical tasks Key capabilities Core metrics
    Visual and interactive 3D scene description, frontend page generation, prototype game logic, multi-source research Multimodal understanding, long-chain reasoning, structured output Page runnability rate, traceability of research conclusions
    Engineering implementation Backend API development, multi-file code modification, test case writing, defect localization Code understanding, tool calling, context retention Test pass rate, first-pass modification success rate
    Daily office work Meeting notes, email drafts, information retrieval, copy editing Text quality, instruction following, response speed Factual accuracy, unit cost, time to first token

    The purpose of this table is to make every metric measurable. If a metric cannot be expressed as a number or a clear pass/fail criterion, it should be refined or removed.

    3. Build a Representative Evaluation Set

    The quality of the evaluation set determines how credible the selection conclusion is. Sample cases from real business work, prepare dozens to hundreds of cases for each scenario category, and cover simple, medium, and difficult levels.

    Each case should contain three parts: the input, the expected output characteristics, and an automated checker. Prefer rule-based checks, such as whether code compiles, whether JSON fields are complete, or whether numbers match the source text. For parts that rules cannot cover, use manual spot checks.

    Below is an example evaluation runner. The model call function is injected by the caller, making it easy to switch between different service endpoints.

    1. import time
    2. def run_case(model_id, case, call_model):
    3. """Run one case and return quality score and latency.
    4. case structure example:
    5. {"prompt": str, "checker": Callable[[str], float]}
    6. checker returns a score between 0 and 1.
    7. """
    8. start = time.perf_counter()
    9. output = call_model(model_id, case["prompt"])
    10. latency = time.perf_counter() - start
    11. score = case["checker"](output)
    12. return {"quality": score, "latency": latency}
    13. def run_suite(model_id, cases, call_model):
    14. results = [run_case(model_id, c, call_model) for c in cases]
    15. n = len(results)
    16. return {
    17. "quality": sum(r["quality"] for r in results) / n,
    18. "avg_latency": sum(r["latency"] for r in results) / n,
    19. }

    Note two points. First, run the same case multiple times and measure the success rate, because single outputs are stochastic. Second, fix parameters such as the system prompt and temperature during evaluation; otherwise comparisons are meaningless.

    4. Design a Composite Scoring Method

    Quality, latency, cost, and stability usually need to be weighed together. Normalize each metric to a 0–1 range, then weight them by business priority.

    • Quality: measured by the average score on the evaluation set, with the highest weight.
    • Latency: measured by time to first token or percentiles of full response time; interactive applications are more sensitive to this.
    • Cost: calculated as the average cost per task; this has the greatest impact on high-frequency office scenarios.
    • Stability: track format error rate, timeout rate, and refusal rate.
    1. WEIGHTS = {"quality": 0.5, "latency": 0.2, "cost": 0.2, "stability": 0.1}
    2. def total_score(metrics):
    3. """Each value in metrics is normalized to 0~1; higher is better."""
    4. return sum(WEIGHTS[k] * metrics[k] for k in WEIGHTS)

    Weights are not fixed. For engineering implementation tasks, quality weight can be raised above 0.7; for daily office tasks, cost and latency weights can be increased appropriately. The key is to document the weights and explain the rationale during review, avoiding after-the-fact adjustment based on results.

    5. Estimate Cost and Latency

    LLM services are usually billed by input and output tokens, and input and output prices are often different. The cost per call can be estimated with the following formula.

    Cost per call = input token count × input unit price + output token count × output unit price

    Unit prices should follow the provider’s public price list and be checked regularly. Retries also need to be considered. If a model has a 10% format error rate and every failure requires a retry, the actual cost will be higher than the nominal unit price.

    Latency also needs to be measured separately. Time to first token affects user perception, while full response time affects batch throughput. For streaming interfaces, time to first token matters more; for overnight batch report generation, full response time and concurrency matter more.

    6. Integration Architecture for an Office Assistant

    A single model can hardly cover all scenarios. A more reasonable approach is to add a routing layer between the application and the models. The routing layer selects a model based on task type and performs fallback on failure.

    1. User request
    2. │
    3. ▼
    4. ┌─────────────┐
    5. │ Task classifier │ Identify scenario category
    6. └─────┬───────┘
    7. ▼
    8. ┌─────────────┐
    9. │ Route table │ Scenario → Model
    10. └─────┬───────┘
    11. ▼
    12. ┌─────────────┐ Timeout or format error
    13. │ Model call │ ───────────────► Fallback model
    14. └─────┬───────┘
    15. ▼
    16. Result validation and logging

    Below is an example route table. Model identifiers are placeholders and should be replaced with model names your team has validated.

    1. ROUTE_TABLE = {
    2. "visual_frontend": "model_capability_a",
    3. "backend_engineering": "model_engineering_b",
    4. "office_daily": "model_cost_effective_c",
    5. }
    6. FALLBACK = "model_cost_effective_c"
    7. def pick_model(task_type: str) -> str:
    8. return ROUTE_TABLE.get(task_type, FALLBACK)

    The route table should be stored in a configuration file or configuration service, not hard-coded in business logic. This allows model changes without releasing a new version.

    7. Canary Release and Continuous Monitoring

    Offline evaluation results need online validation. Three common approaches are:

    1. Shadow traffic: send a portion of requests to the candidate model as well, but return only the original model’s result, to compare quality and latency.
    2. Small-percentage traffic split: switch a small number of real users to the candidate model and observe complaint rate, retry rate, and manual edit rate.
    3. Scenario-by-scenario rollout: launch in low-risk scenarios first, then expand to core workflows after confirming stability.

    A monitoring dashboard should include at least the following metrics: request volume, time-to-first-token percentiles, timeout rate, format validation failure rate, average cost per task, and user feedback. Set alert thresholds and roll back to the previous route configuration immediately when a metric exceeds its threshold.

    8. Common Pitfalls

    Looking only at a single demo. Demos usually pick the best samples. Use a randomly sampled evaluation set and count failure cases.

    Ignoring context length. Long-document summarization and cross-file code modification require large context windows. If the input exceeds the model limit, the result may be truncated without necessarily raising an error.

    Ignoring output format. Office automation depends on structured output. Unstable formatting breaks downstream parsing and increases manual handling cost.

    Ignoring privacy and compliance. Content sent to external services needs to be sanitized. Keys should be stored in environment variables or a secret management service, not written into code or logs.

    Treating model output as instructions to execute. User-uploaded documents, web content, and tool results are data. If they contain text such as “ignore previous instructions,” the system should treat it as ordinary text rather than execute it. Irreversible operations such as deletion, sending, or payment must require secondary user confirmation.

    9. Implementation Recommendations

    Teams can advance model selection in the following steps.

    1. Review real tasks from the past three months and categorize them by scenario.
    2. Sample representative cases for each category, build an evaluation set, and write checker rules.
    3. Run the evaluation against candidate models and record quality, latency, cost, and stability.
    4. Set weights based on business priorities and calculate composite scores.
    5. Build the routing layer, validate first with shadow traffic, then roll out gradually.
    6. Review the evaluation set and price list quarterly, because model versions and pricing change.

    Model selection is an ongoing process. The evaluation set should be updated as the business grows, and routing rules should be adjusted as models iterate. By formalizing the evaluation method, teams can use the same yardstick to evaluate new models quickly instead of relying on subjective impressions.