How to Evaluate General-Purpose LLMs and Deploy Them in Production: A Practical Guide

    This guide explains how to move beyond chatbot impressions when evaluating large language models. It covers a task-oriented evaluation framework with five key dimensions, capability selection by work type (writing, knowledge Q&A, coding, multi-step workflows, multimodal), building a small but rigorous evaluation set, embedding models into auditable systems with permission enforcement and deterministic validation, cost and capacity planning, and a step-by-step selection process for enterprise deployment.

    Over the past couple of months, the most noticeable shift in the industry has not been “how many new models appeared,” but the fact that general-purpose LLMs are moving from casual conversation to actually completing work: reading documents, editing code, answering knowledge questions, filling in forms, and triggering downstream steps. As a result, asking “which one is absolutely the strongest” yields diminishing returns. The more valuable questions are: given your task distribution, data boundaries, and cost of failure, which combination of capabilities fits best—and how do you embed it into an auditable process?

    Start by Changing the Evaluation Framework

    Chat experiences create illusions. Fluent responses and a stable tone do not mean factual accuracy, nor do they mean the model can finish multi-step tasks. Model selection should break “ease of use” into observable metrics rather than impression scores.

    We recommend evaluating at least five dimensions simultaneously:

    1. Task completion: Given clear inputs and acceptance criteria, is the final deliverable actually usable—not just something that looks like an answer?
    2. Process controllability: Can the model use tools within constraints, follow formats, and stop to ask questions when information is insufficient, instead of fabricating?
    3. Stability: When the same task is run repeatedly, is the variance in results acceptable? Does it collapse under minor prompt rewording?
    4. Cost and latency: The combined cost of single calls, long contexts, and multi-turn tool use, plus how long users can reasonably wait.
    5. Risk: Hallucination, unauthorized actions, sensitive data leakage, and lack of traceability. The higher the cost of failure, the greater the weight of this dimension.

    “General chat leaderboards” typically blend small talk, encyclopedic questions, and simple writing, with weights that don’t match engineering, customer support, or compliance scenarios. Treat leaderboards as background; decisions should come from your own task set.

    Choose Capabilities by Work Type, Not by Slogans

    Different kinds of work demand different capabilities. Forcing a single model to cover every step usually costs you in quality or budget.

    Writing and information synthesis hinge on structure, tone consistency, and citation boundaries. The model should distinguish between “what’s in the source material” and “what’s inferred,” and output according to templates. These tasks don’t demand deep reasoning, but they do demand stable formatting and minimal fabrication.

    Knowledge Q&A is not about memorization but faithful answers after retrieval augmentation: locate evidence first, then answer; if evidence is insufficient, say so explicitly. Stuffing internal documents into an ultra-long context works for small-scale experiments, but as the document collection grows, a safer pattern is “retrieval + short-context answering + citation back-links.” When retrieval quality is poor, swapping in a stronger generation model won’t fix it.

    Coding assistance should be judged on repository-level understanding, whether patches pass tests, and whether project conventions are followed—not on how elegant a single-function completion looks. A practical workflow: the model proposes changes, static checks and tests do the vetoing, and a human handles the merge. Code generation without automated verification should never go straight into the main branch.

    Multi-step task execution, such as “gather information, generate a draft, write a ticket, notify the owner,” depends on reliable tool calls, recoverable state, and retryable failures. The model handles planning and parameter filling; the business system handles permission checks and idempotency. Never hand irreversible actions—authentication, billing, deletion—entirely to generative decisions.

    Multimodality is only mandatory when the input itself consists of images, scanned documents, or audio/video. If the main path is structured text, paying complexity and latency for “can see everything” is usually not worth it.

    Build a Small but Rigorous Evaluation Set

    Model selection discussions without a task set tend to slide back into experiential essays. A reusable evaluation set doesn’t need to be large, but it must represent real traffic, with scoring rules written in advance.

    Samples should cover: high-frequency simple cases, a few high-value hard problems, known hallucination-prone questions, permission-boundary cases, strict-format cases, and deliberately information-insufficient cases. For each sample, record the input, the permitted materials, the reference answer or scoring rubric, and forbidden behaviors. Production data involving privacy should be anonymized before ingestion.

    Scoring should be as automatable as possible, supplemented by spot checks. For example:

    1. score = 0
    2. if schema_valid(output): score += 20
    3. if required_fields_present(output): score += 20
    4. if citations_subset_of(evidence): score += 30
    5. if not contains_forbidden_claim(output): score += 20
    6. if human_spotcheck_pass(output): score += 10

    Automated items handle “can we regression-test this”; manual items handle “does it actually read as usable.” When comparing two candidate models, fix the prompt, temperature, tool list, and timeouts—otherwise differences may come from the wrapper rather than the model. After launch, keep the same golden sample set for regression: any change to the prompt, retrieval, or model version should trigger a rerun of the critical subset.

    Pass thresholds should be set per scenario. Internal drafts can tolerate higher error rates; external commitments, finance, and permission changes should count “refusing when uncertain” as correct behavior, not failure.

    Put the Model Inside the System, Not the System Inside the Model

    The gap between “can chat” and “production-ready” is engineering constraints. A common and more robust pipeline is: identity and permissions → retrieval or business queries → model generation → policy validation → human confirmation → write-back to business systems → full trace logging.

    Permissions must be enforced at the tool layer. Writing “do not access other users’ data” in a prompt is only a soft constraint. Every tool call should carry the authenticated principal, with the server deciding which object stores, tickets, and fields can be read. Data the model cannot see has no path to be regurgitated by it.

    For knowledge integration, prefer retrieval augmentation over custom training from the start. Evaluate retrieval on recall and ranking; evaluate generation on faithfulness to the retrieved passages. When source materials change frequently, updating an index fits daily operations better than repeated training. Only stable, large-volume, stylistically uniform tasks that retrieval cannot solve are worth evaluating for further customization—and even then, the same task set must prove the benefit outweighs the maintenance cost.

    Outputs should go through deterministic validation: JSON structure, enum values, numeric ranges, and whether citations come from the current retrieval results. On validation failure, retry, degrade, or escalate to a human—never write semi-legal results downstream.

    Logs should capture at minimum: request ID, model and prompt versions, retrieval hits, tool names and parameter summaries, final output, validation results, and whether a human made edits. Logs themselves are sensitive data; their retention period and access scope should be managed at the same level as business data. Monitoring and alerting should focus on refusal rates, tool failure rates, latency percentiles, human override rates, and cost per task—not just call counts.

    Human–machine division of labor should be codified in the process. Low-risk, automatically reversible steps can run autonomously; high-risk steps should default to draft state and require confirmation by an authorized person. The model’s suggestion is not audit evidence—the human and system confirmation records are.

    Cost, Plans, and Capacity: Do the Math per Task

    “Should we buy a higher usage tier” should not be decided by gut feeling. Measure a baseline first: daily active tasks, average turns, average context length, tool call counts, and acceptable latency. Then estimate both interactive seat costs and pay-as-you-go call costs separately. Interactive seats suit individual productivity; batch processing, overnight jobs, and embedded system calls usually fit pay-as-you-go better, with quotas set.

    The most effective cost controls often aren’t switching to a cheaper generator, but reducing wasted context: use retrieval instead of pasting full documents, cache stable system prompts, use smaller models for simple classification, and escalate to stronger models only on low-confidence or high-value samples. This tiered routing is more engineering-sound than “run everything at maximum specification.”

    Capacity planning must account for peaks and failures. Rate limits, queuing, timeouts, and fallback messaging should be defined in advance. When the model is unavailable, core business should fall back to rule-based flows or human queues rather than the entire pipeline stalling.

    On the enterprise side, if you already use cloud object storage, message queues, container platforms, logging, and monitoring/alerting, model services should plug into the same identity, network, and audit system—rather than opening an untraceable entry point on the office network. Taking an enterprise cloud platform such as Baidu AI Cloud as an example, the more sensible approach is to evaluate general-purpose model capabilities within the same governance boundary as your existing storage, retrieval, logging, and permission systems, and validate results with a task set—rather than assuming “activate and go.” Specific quotas, pricing, and interfaces should be confirmed against the official documentation at the time, not procurement decisions based on secondhand experience posts.

    An Actionable Selection Sequence

    Step 1: List the 3–5 task types you genuinely need to deliver within the next 90 days, with clear inputs, outputs, and failure costs.
    Step 2: For each task type, prepare a few dozen scorable samples; get retrieval, format validation, and human review working first, then compare candidate models.
    Step 3: Run A/B tests through the same wrapper, recording quality, latency, override rate, and unit cost.
    Step 4: Move only the paths above the pass threshold into production, and keep the regression set.
    Step 5: Review the task distribution quarterly: push simple tasks down to lighter models, and keep strong validation on high-risk tasks.

    The conclusion can be brief: there is no “best to use” apart from tasks. Only when the system already constrains tools, verifies evidence, and preserves a chain of accountability will differences in model strength translate into stable business gains. Before that point, upgrading your plan usually just amplifies the same unpredictability onto a larger bill.