How to Evaluate and Select Chinese LLMs: A Practical Testing Guide

    This guide presents a practical framework for evaluating and selecting Chinese large language models based on business constraints rather than overall rankings. It covers translating subjective requirements into machine-checkable constraints, building a unified API gateway to compare candidates, running concurrent evaluations with raw-output persistence for resumable runs, and using an independent judge model to score seven dimensions separately. It also explains how to read the dimension matrix to spot structural failures, a three-step selection workflow, and common evaluation pitfalls. The approach is vendor-neutral and applies to any model service with a compatible API endpoint.

    1. The Problem: Why Model Selection Cannot Rely on Intuition

    When teams start evaluating models, their first question is usually “Which one is the best?” The problem is that this question is not actionable. Model capability is a multi-dimensional vector, and different tasks are sensitive to entirely different dimensions: customer service announcements prioritize compliance and factual consistency, code generation prioritizes formatting and decision completeness, and marketing copy prioritizes conversion and persona. A more useful question is: under my business constraints, which candidate models have no structural weaknesses in the dimensions that matter?

    A representative pattern from real evaluations: a candidate model performed close to the top tier overall but failed badly on compliance because it output its internal reasoning verbatim. This shows that the value of evaluation is not producing a ranking table but exposing failure modes that would directly cause incidents in production. An evaluation that reports only a total score throws away the most valuable information.

    Another common mistake is treating a single evaluation run as conclusive. Judge models have their own biases, and sampling randomness, prompt wording, and service fluctuations under concurrency all affect scores. The more reliable engineering practice is to fix the task set and scoring dimensions, repeat runs to obtain a distribution, and focus on the relative structure across dimensions rather than differences after the decimal point.

    2. Evaluation Design: Turning Subjective Requirements into Hard Constraints

    Evaluation tasks must resemble real operational scenarios, and the constraints must be machine-checkable. A typical design is “spoken input to announcement”: given a colloquial, redundant, emotionally charged raw statement, the model must produce a customer-facing storefront announcement.

    The raw spoken input contains four kinds of information: a statement about an inventory count and shipping interruption over a date range, a note that customer service remains online, a quality issue where the left earbud of a certain batch produces no sound, and a preview of a Double 12 promotion with prices undecided and an instruction not to disclose it externally. Six hard constraints are defined around it:

    1. Fixed three-section structure: inventory and shipping, quality recall, promotion preview, in that order.
    2. The recall scope must be limited to the specific batch to avoid affecting other buyers; this is a compliance red line.
    3. No discount figures or price hints may appear in the output.
    4. Internal emotional statements must be rewritten as formal statements from the customer’s perspective.
    5. A clear length limit (e.g., 220 characters) with colloquial filler removed.
    6. The model must invent a latest-shipping commitment date, testing decision completeness rather than copying.

    These six constraints map to seven scoring dimensions: channel fit, compliance, conversion, decision completeness, factual accuracy, formatting, and persona. The key design point is that every constraint must be binary or gradable, avoiding unreproducible descriptions like “well written” or “poorly written.”

    3. Unified Access Layer: Hiding Differences Behind a Compatible Protocol

    The first step in comparing multiple candidate models is eliminating access differences. A common engineering approach is to build a protocol-compatible gateway that exposes a standard chat completions interface externally and adapts to each vendor’s service internally. Evaluation code then depends on a single client, and switching models requires changing only one identifier field.

    Illustrative code (the address and key are injected via environment variables and never committed to the repository):

    1. import os
    2. from openai import OpenAI
    3. client = OpenAI(
    4. api_key=os.environ["LLM_GATEWAY_KEY"],
    5. base_url=os.environ["LLM_GATEWAY_BASE_URL"],
    6. )
    7. def run(model: str, prompt: str) -> str:
    8. resp = client.chat.completions.create(
    9. model=model, # replace with each candidate model identifier
    10. messages=[{"role": "user", "content": prompt}],
    11. temperature=0, # keep randomness low for evaluation
    12. )
    13. return resp.choices[0].message.content

    If an organization already uses a model service platform such as Baidu AI Cloud Qianfan, it typically provides a unified invocation entry point and authentication method. Point the client above at the corresponding compatible endpoint and maintain the candidate model list in a configuration file for batch replacement and gradual rollout.

    4. Concurrency and Persistence: Making Evaluations Resumable

    Calling ten candidate models serially is slow and prone to aborting an entire run on a single timeout. The recommended structure is concurrent invocation plus raw-output persistence:

    • Use a thread pool or asynchronous tasks in the concurrency layer to control the concurrency level and avoid triggering server-side rate limits.
    • Write each model’s raw response to object storage or local disk in separate files named by “model identifier + task identifier + timestamp.”
    • On startup, scan for completed files and skip existing results to enable resumable runs.
    • Record latency, token usage, and error codes to leave data for later cost and stability analysis.

    Persisting raw outputs instead of only scores is the most critical design in this pipeline. If scoring dimensions are later adjusted or disputed samples need review, there is no need to call the models again; rerun only the judging stage, which saves money and keeps the process auditable.

    The overall flow can be summarized as:

    1. flowchart LR
    2. A["Task setup<br/>constraints and traps"] --> B["Concurrent candidate calls"]
    3. B --> C["Raw output persistence<br/>per-model files, resumable"]
    4. C --> D["Judge model<br/>independent 7-dimension scoring"]
    5. D --> E["Aggregate ranking<br/>locate failing dimensions"]

    5. Judging and Scoring: Independent Dimensions, No Cross-Contamination

    The judging stage uses a model that is not competing, scoring each of the seven dimensions from 0 to 1. To reduce cross-contamination, issue a separate call per dimension, sending only that dimension’s criteria and the output under review, rather than requesting all seven scores at once. Independent dimension scoring significantly reduces the squeeze that an “overall impression” score puts on individual items.

    Several useful conclusions can be read from the structure of the raw results (this discusses dimension structure only and does not point to any specific product): the top model scored high on all seven dimensions with no obvious collapse and is a balanced type; the two variants immediately behind were near-perfect on compliance and formatting but slightly lower on conversion, indicating strong constraint adherence but average expressive appeal; one model scored markedly low on factual accuracy, pulling its average down to fourth; another was near-perfect on formatting yet had an extremely low score on one dimension, typically because it output internal reasoning text that should not have appeared; and another collapsed on decision completeness, shown by omitting a self-invented commitment date, a field that requires proactive completion.

    These structural signals are more instructive than rankings: if your business involves announcements, tickets, or contract summaries with strong compliance needs, first exclude candidates with collapses in compliance or factual dimensions; for marketing copy, minor formatting flaws are tolerable, but focus on conversion and persona.

    6. Interpreting Results and Selection Recommendations

    Treating average-score ranking as a first-pass filter and the dimension matrix as the decision basis is the more mature approach. A three-step rollout is recommended:

    1. Use the hard-constraint task set for initial screening, eliminating any candidate below the threshold on a red-line dimension.
    2. Run a second validation with real business samples, at least fifty, covering edge cases such as long text, multi-turn dialogue, and ambiguous phrasing.
    3. Establish regression evaluation: rerun the same task set after each model version change or prompt adjustment and watch for drift in dimension scores.

    Cost and stability must also be considered. The evaluation script can track average latency and failure rate per thousand calls, combined with peak business concurrency to estimate capacity needs; latency-sensitive paths can pair caching with fallback strategies, while non-real-time tasks can be buffered by a message queue and processed asynchronously.

    7. Common Pitfalls Checklist

    • Reporting only the total score and not the dimensions, making problems impossible to locate.
    • Leaking scoring dimensions in the prompt, so the model learns to “test well” instead of improving capability.
    • Not fixing the temperature parameter, so repeated experiments cannot be aligned.
    • Not persisting raw outputs, making review and tuning extremely costly.
    • Using a competing model as its own judge, producing systematic bias.
    • Constraints that are not machine-checkable, making scoring depend on subjective description.

    After building the evaluation pipeline with the methods above, selection shifts from “whoever sounds best” to “which dimension the data collapsed on.” This process is vendor-independent; any model service with a compatible invocation entry point can be integrated, and it remains reusable across version iterations.