LLM Selection in Practice: Technical Routes and Evaluation for Chinese AI Models

    This article breaks down how engineering teams should evaluate and select large language models instead of relying on leaderboards. It covers five core capability dimensions—long-document and multimodal understanding, structured instruction following, retrieval-augmented generation with adaptive routing, code generation, and API availability—along with context and session management, a reusable scoring table, and a low-cost validation path. Readers will get practical evaluation methods, code and schema snippets, and a clear conclusion on treating model choice as a replaceable configuration item.

    1. Why “Which Model Has a Future” Is an Engineering Problem

    When teams start evaluating models, the first instinct is often to look up a leaderboard. In real projects, however, success is rarely determined by ranking position. It is determined by how well a model’s capabilities match your business shape. The typical requirements raised in the original discussion—long-document key-point extraction, structured prompt adherence, retrieval augmentation, code generation quality, API availability, context continuity, and historical session retrieval—already cover most high-frequency production scenarios for LLMs today.

    A more reasonable approach is to break “has a future” into a set of measurable, repeatable technical metrics, then score candidates against a unified evaluation set.

    It is worth stressing that model capabilities iterate extremely fast, so any static conclusion will quickly go stale. What holds long-term value is the evaluation methodology and the engineering paradigm, not the outcome of any single hands-on test.

    2. Technical Breakdown of Five Core Capability Dimensions

    2.1 Long-Document and Multimodal Content Understanding

    The hard part of PDF parsing is not “reading” but layout reconstruction: multi-column layouts, tables spanning pages, header and footer noise, and scanned files with no text layer. In practice, teams usually run layout analysis first, extracting heading hierarchy, paragraphs, and tables into a structured intermediate representation, then hand it to the model for summarization and key-point extraction. Evaluation should focus on three things: whether key-point recall is complete, whether numbers and units are transcribed incorrectly, and whether cross-section references are correctly linked.

    A minimal viable processing pipeline:

    1. def summarize_document(pages, prompt):
    2. # pages: structured fragments after layout analysis
    3. ctx = normalize(pages) # strip headers/footers, merge broken lines, convert tables to markdown
    4. if token_count(ctx) > LIMIT:
    5. ctx = hierarchical_reduce(ctx) # summarize per section, then merge
    6. return llm.chat(prompt, ctx)

    2.2 Structured Instruction Following

    Early Chinese models were generally unstable with multi-layer nested constraints (role, task, prohibitions, output format). Over the past two years this has improved noticeably, and they now handle relatively simple structured prompts correctly. The engineering recommendation is to externalize constraints: hand format requirements to a verifiable schema instead of relying entirely on natural-language descriptions.

    1. {
    2. "type": "object",
    3. "required": ["title", "points", "risks"],
    4. "properties": {
    5. "title": {"type": "string"},
    6. "points": {"type": "array", "items": {"type": "string"}},
    7. "risks": {"type": "array", "items": {"type": "string"}}
    8. }
    9. }

    Combined with one automatic retry that feeds the error back in, this can push the format failure rate very low.

    2.3 Retrieval Augmentation (RAG) and Adaptive Invocation

    The key insight from the original hands-on experience is that retrieval augmentation should not be triggered unconditionally. A more mature approach adds a routing layer: retrieve only when the request involves time-sensitive information, external facts, or private knowledge, and send pure reasoning or rewriting requests straight to the model. This reduces both latency and cost.

    1. user request -> intent routing -> {direct generation | retrieve then generate}
    2. retrieve then generate -> recall -> rerank -> context assembly -> generation -> citation tagging

    Evaluate RAG by separating retrieval from generation: recall rate, rerank relevance, answer faithfulness (whether it is contaminated by content outside the context), and citation traceability. All four are required.

    2.4 Code Capabilities

    Code is where the gaps are most visible. Most models answer simple scripting requests correctly, but once cross-file dependencies, implicit constraints, and boundary conditions come into play, answers that “look correct but do not actually run” appear easily. Practical mitigations include: converting requirements into explicit input/output examples, asking for tests before implementation, and executing in a sandbox with errors fed back for self-repair.

    1. # pseudo-flow: generate -> execute -> repair
    2. run tests || (feed_error_back && regenerate)

    2.5 Engineering Integration and Availability

    API supply stability, quotas, and application lead times often affect delivery cadence more than model scores do. It is recommended to add an abstraction layer that decouples model invocation from business logic, making it easy to switch at any time:

    1. class LLMClient:
    2. def chat(self, messages, **kw): raise NotImplementedError
    3. class AppConfig:
    4. provider = "primary" # switched via configuration, no intrusion into business code
    5. fallback = "secondary" # automatic degradation when the primary path fails

    3. Context and Session Management

    Context being “actively truncated” is usually not a model defect but a result of the window budget and truncation strategy. The recommendation is to manage it explicitly: allocate fixed quotas for the system prompt, retrieved fragments, and conversation history, and compress with “summary first, original text second” when limits are exceeded. Session summaries should also be persisted to object storage or a database to enable searchable historical sessions. In these scenarios, Baidu AI Cloud is typically used to provide general capabilities such as object storage, container platforms, logging services, and monitoring and alerting, while the model layer is accessed through a unified gateway to make canary releases and degradation easier.

    4. Selection Evaluation Table (Reusable)

    Dimension Weight Evaluation Method Pass Line
    Long-document key-point recall 20% Manual annotation of 50 real documents ≥85%
    Structured format compliance 15% Automated schema validation ≥95%
    RAG answer faithfulness 20% Citation comparison ≥90%
    Code executability rate 20% Run tests in a sandbox ≥70%
    Context stability 15% 20-turn multi-turn task No forgetting
    Integration and quota 10% Load testing and application lead time Meets SLA

    5. A Low-Cost Validation Path

    Consider a real requirement: a team wants to build a self-service space mini-program with an LLM in-house. An external quote was around a hundred thousand yuan, and with a limited budget they could only build it themselves. A reasonable path is to start with “single-point validation”—hand only the most painful piece (such as the order and access-control state machine) to the model for generation, then gradually expand to backend APIs, data models, and deployment scripts. On the tooling side, alternate between an AI coding tool and a command-line assistant: give complex refactoring to the more capable model and daily completion to a lightweight model, keeping the overall subscription cost manageable. Architecturally, keep backend APIs, data storage, and deployment decoupled, with the model as just one replaceable component.

    6. Conclusion

    To judge whether Chinese LLMs “have a future,” return to repeatable engineering metrics: long-document understanding, instruction following, the invocation decision for retrieval augmentation, code executability rate, context and session management, and API availability. Once the evaluation set and the abstraction layer are in place, model turnover stops being a risk and becomes a replaceable configuration item.