Evaluating and Selecting Top-Tier Chinese LLMs: A Practical Guide
This article presents a practical, reproducible framework for evaluating and selecting top-tier Chinese LLMs. It covers measurable evaluation metrics, API engineering checks, long-context and instruction-following tests, weighted comparison matrices, routing and fallback strategies, a minimal RAG pipeline, POC acceptance criteria, and key risks. Readers can adapt the tests and checklists to their own business data and engineering constraints.
Chinese LLMs are updated frequently, and their rankings on public leaderboards often shift. What developers and technical leads really need is an evaluation method they can reproduce in their own business. The term “top tier” should be grounded in actual performance in engineering integration and day-to-day interaction; aggregate benchmark scores can only serve as a reference. This article provides a quantifiable evaluation framework, a selection process, and a risk checklist that readers can apply directly.
1. Define the Top Tier with Measurable Metrics Instead of Impressions
To determine whether a model is in the leading group, it is better to first fix a set of metrics, specify the measurement method, and define pass lines. The thresholds in the table below are examples only; teams should adjust them according to their own business.
| Metric | Meaning | Measurement method | Reference pass line (example) |
|---|---|---|---|
| Function Calling success rate | The proportion of cases where the model correctly selects a function and outputs valid parameters | Batch-call with 100 samples containing ambiguous wording and count the results | Not lower than 95% |
| P95 latency | The response time within which 95% of requests complete | Stress-test under target concurrency for at least 10 minutes | Within the upper limit acceptable to the business |
| Long-context recall rate | The proportion of cases where specified information is found in long text | Insert “needles” at different lengths and positions and count hit rates | Measure separately by target context length |
| Instruction-following pass rate | The proportion of cases that satisfy constraints such as format, word count, and number of key points | Check automatically with rule scripts and manually review a sample | Not lower than 90% |
| Code task pass rate | The proportion of generated code that passes unit tests | Run model-generated code and tests in a sandbox | Evaluate against the team’s historical tasks |
Aggregate benchmark scores are based on public test sets and may not match business data. Therefore, evaluation should prioritize your own samples.
2. Developer Perspective: API Engineering Capability
Interface compatibility is the first hurdle. Many services provide OpenAI-compatible interfaces, allowing the same SDK to be reused. Before integration, confirm that function definitions conform to standard JSON Schema and that parameters declare type, properties, and required.
The following code tests Function Calling. The API URL, key, and model name are read from environment variables and are not written into the code. If the target interface uses different field formats, adjust them according to its documentation.
import jsonimport osimport requestsAPI_URL = os.environ["LLM_API_URL"]API_KEY = os.environ["LLM_API_KEY"]MODEL = os.environ["LLM_MODEL"]TOOLS = [{"type": "function","function": {"name": "get_weather","description": "Get the weather for a specified city on a given date","parameters": {"type": "object","properties": {"city": {"type": "string", "description": "City name, e.g., Beijing"},"date": {"type": "string", "description": "Date in YYYY-MM-DD format"},},"required": ["city", "date"],},},}]def call_model(user_text):payload = {"model": MODEL,"messages": [{"role": "user", "content": user_text}],"tools": TOOLS,"tool_choice": "auto",}headers = {"Authorization": f"Bearer {API_KEY}"}resp = requests.post(API_URL, headers=headers, json=payload, timeout=30)resp.raise_for_status()message = resp.json()["choices"][0]["message"]calls = message.get("tool_calls") or []if not calls:return Nonename = calls[0]["function"]["name"]args = json.loads(calls[0]["function"]["arguments"])return name, argsdef function_calling_success_rate(cases):"""cases: [(user input, list of required parameter names), ...]"""ok = 0for text, required_keys in cases:try:result = call_model(text)if result and result[0] == "get_weather" and all(k in result[1] for k in required_keys):ok += 1except (requests.RequestException, KeyError, ValueError):continuereturn ok / len(cases)if __name__ == "__main__":cases = [("Check the weather in Beijing tomorrow", ["city", "date"]),("Will it rain in Shanghai this weekend", ["city", "date"]),]print(f"Success rate: {function_calling_success_rate(cases):.0%}")
There are several points to note when running the test. First, samples should include colloquial sentences, omitted information, and multi-intent requests; otherwise the success rate will be inflated. Second, relative dates such as “tomorrow” and “this weekend” require the current date in the system prompt; otherwise the model cannot convert them into specific dates. Third, the example only checks whether field names are present; formal evaluation should also validate parameter types and date formats. Fourth, the same batch of samples should be run at least three times because sampling parameters can cause output variation.
Code Generation and Automated Validation
Code capability should not be judged only by whether the model’s examples look polished. A more reliable approach is to take real tasks the team has completed in the past, ask the model to generate code, and validate it with existing unit tests. When calculating the pass rate, also record the number of lines that require manual modification, as this is closer to the real R&D cost. Generated code should run in an isolated environment and should not be executed directly in production.
Cloud-Native Integration
When selecting a model, enterprises should also check whether the model service can integrate with existing infrastructure. Common checks include whether data in object storage can be used directly as input, whether the service can be deployed on a container platform, whether call logs can enter the existing monitoring system, whether quotas and rate limiting are supported, and whether fine-tuning data is retained in a specified region. It is advisable to compare at least three cloud providers side by side and score them with the same checklist. This checklist only describes evaluation dimensions and does not constitute a recommendation for any vendor.
3. User Experience Perspective: Long Text and Instruction Following
The context length advertised by vendors is only a theoretical upper limit; the usable length must be determined through testing. The method is to insert a key fact at the beginning, middle, and end of documents of different lengths, and then measure whether the model can retrieve it accurately. Results usually vary by position and length, so the test conditions should be stated in the report.
Instruction following also requires a fixed test set. Prepare 50 to 100 prompts with constraints, such as “answer in three key points,” “keep the entire response under 200 words,” and “output as a Markdown table.” Format and word count can be checked by scripts, while tone and logic should be manually spot-checked. Judging only by subjective impressions that an answer “sounds natural” makes conclusions difficult to reproduce.
4. Selection: Comparison Matrix and Weights
After the metrics are defined, place candidate models into the same comparison matrix. Weights are determined by business priorities. Below is an example for a B2B R&D tool:
| Dimension | Example weight | Description |
|---|---|---|
| Function Calling success rate | 20% | Determines the stability of integration with internal systems |
| Code task pass rate | 25% | Determines the core value of the R&D tool |
| Long-context recall rate | 15% | Affects codebase and document retrieval |
| Instruction-following pass rate | 10% | Affects the usability of output formats |
| P95 latency and per-call cost | 20% | Affects developer experience and budget |
| Compliance and deployment model | 10% | Determines whether security review can be passed |
After weighted summation, the model with the highest total score is not necessarily the one to deploy directly. Its performance on the worst dimension also matters. If a model ranks high overall but its Function Calling success rate is below the pass line, it should still not be selected.
Consumer-facing assistants have different weights and should place more emphasis on long-text capability, natural interaction, and response speed.
5. Hybrid Architecture and Routing Strategy
Most systems do not need to use only one model. A routing layer can be added before the application to dispatch requests based on their characteristics:
- Simple tasks such as chitchat, intent classification, and keyword extraction can be sent to a low-latency small model.
- Complex reasoning, code generation, and long-document analysis can be sent to a high-performance model.
- Requests involving sensitive data can only be sent to services that have been contracted and meet compliance requirements.
Routing rules should be configurable, and a fallback path should be retained. For example, if the primary model times out after two seconds, retry once; if it still fails, switch to the backup model and log the number of fallbacks. New policies should first run as a canary with 5% of traffic for one week; after confirming that error rates and costs are normal, gradually ramp up to 100%. At the same time, monitor the cost and token consumption of each request to prevent costs for certain request types from spiraling out of control.
6. Minimal RAG Pipeline and Checklist
Introducing RAG can reduce hallucinations and improve timeliness, but the result depends on every step. The minimal pipeline is as follows:
- Document cleaning: remove headers, footers, and duplicate content, and retain heading hierarchy.
- Chunking: split by headings, with each chunk about 300 to 500 characters and adjacent chunks retaining about 50 characters of overlap.
- Embedding: generate vectors with a fixed-version embedding model and store them in a vector database.
- Retrieval and reranking: first retrieve the top 20 candidates, then use a reranking model to select the top 5.
- Generation: the prompt requires the model to answer based on cited content and to label source numbers.
- Evaluation: measure retrieval recall, answer correctness, and citation accuracy separately.
Before launch, check each item: whether document versions are traceable, whether chunks are semantically complete, whether the model refuses to answer when no answer is available, and whether citation numbers map to the original text.
7. POC Acceptance and Rollback
The selection conclusion needs validation. It is recommended to choose three candidate models and run offline evaluations with 200 real business samples each, scoring them according to the metrics in Section 1. Models that pass offline evaluation should then undergo a two-week small-traffic POC. Acceptance lines should be written before testing, for example: Function Calling success rate not lower than 95%, P95 latency not exceeding the business upper limit, and key metrics not lower than the baseline.
A rollback plan should still be retained after launch. The integration configuration of the old model should be kept long term, and switching should be done through a flag without redeploying. After a provider updates a model version, the regression test set should be rerun, because the output behavior of a model with the same name may also change.
8. Risk Checklist
- Data compliance: desensitize content before sending it to the model, clarify whether data is used for training, and retain it in the agreed region.
- Cost and rate limits: set quotas by user and function to avoid abnormal calls driving up bills.
- Hallucination: answers involving facts, amounts, or regulations require citation validation or manual spot checks.
- Vendor lock-in: encapsulate interfaces through a unified gateway to reduce the cost of changing models.
- Behavior drift: model version changes may alter output formats or judgments; pin versions and run regression tests regularly.
Conclusion
The top tier of Chinese LLMs will change with version iterations, and fixed rankings have limited reference value. A more reliable approach is to write evaluation standards as executable tests and validate selection conclusions with business data. Define metrics first, then run tests, and finally configure routing and fallback by scenario. Only then can model capability be consistently converted into development efficiency.
