How to Choose Models for a Multi-Model Office AI Platform

    This article explains how to select and orchestrate multiple large language models in an office AI platform, where adding ten models turns model choice into an engineering problem rather than a shopping decision. It covers a four-tier capability abstraction (L0 lightweight, L1 general, L2 reasoning, L3 execution), a constraint-based routing function with retry and fallback logic, cost and latency observability keyed on tasks, and an evaluation loop built on a frozen internal test set. Readers get reusable routing pseudocode, metric definitions, common pitfalls to avoid, and a practical rollout checklist.

    In an office setting, connecting ten large models at once may look like a “model supermarket,” but it is fundamentally an engineering problem: mapping task descriptions, cost budgets, and response latency onto the right model tier. Starting from the original material and stripping away product-specific attributes, this article abstracts the problem into a general technical approach and focuses on four things: model capability tiering, task routing strategy, observability of cost and quality, and building an evaluation loop. It provides routing pseudocode and metric definitions that teams can apply directly, helping them avoid the selection pitfalls of “parameter count is everything” and “leaderboard is everything.”

    1. Abstracting the Problem: From Three Tiers to Ten Models on One Stage

    The core change in the original material is this: an office AI platform that previously offered only three tiers—standard, advanced, and a single flagship—launched ten models from multiple vendors at once, covering general flagship, lightweight and fast, reasoning-enhanced, long-context, multimodal, and code/multi-step execution directions.

    Once the brand packaging is removed, the technical meaning is clear: the platform has turned “model” from a fixed configuration into an orchestrable resource pool. This has three direct consequences.

    1. A larger choice space raises decision costs. Faced with ten options, users often fall back to the default tier, resulting in “launched but nobody uses it.”
    2. Capability boundaries are no longer determined by a single model but by the “routing strategy.” One entry point can be backed by different models.
    3. Billing and quota dimensions multiply, making cost attribution harder and requiring statistics at task granularity rather than account granularity.

    So the real engineering goal is not “connect more models” but building an explainable, rollback-capable, measurable model scheduling mechanism.

    2. Capability Tiering: Compressing Ten Options into Four Mental Models

    Ten model names cannot be memorized, but capability types converge into four. It is advisable to expose only these four at the product layer and hide specific model versions in configuration.

    Tier Typical traits Suitable tasks Key metrics
    L0 lightweight Low first-token latency, low unit price Summarization, rewriting, classification, field extraction P95 first-token latency, unit cost
    L1 general Balanced overall capability Email drafting, meeting notes, routine Q&A Task success rate, human adoption rate
    L2 reasoning Longer chain of thought, higher latency Data analysis, option comparison, complex consolidation Logical correctness, rework rate
    L3 execution Multi-step, can call tools Web page/prototype generation, batch file processing End-to-end completion rate, step failure rate

    The value of tiering is that it downgrades “which model to choose” to “which tier to choose”, after which the platform performs load balancing within a tier by weight, quota, and health. Adding a new model then only requires registering it into a tier, without changing the upper-layer interaction.

    3. Task Routing: Deployable Scheduling Pseudocode

    Routing is essentially a scoring function with constraints: maximize expected quality while satisfying latency and budget constraints.

    1. # Illustrative routing logic, not the API of any specific product
    2. def route(task, models, budget):
    3. tier = classify(task) # L0/L1/L2/L3
    4. cands = [m for m in models if m.tier == tier and m.healthy]
    5. def score(m):
    6. q = quality_pred(task, m) # expected quality based on historical evals
    7. latency_ok = m.p95_first_token <= task.max_latency
    8. cost_ok = m.price_per_1k * task.est_tokens <= budget.remaining
    9. return (latency_ok and cost_ok, q - 0.3 * m.price_per_1k)
    10. return max(cands, key=score)
    11. # Fallback chain: retry in same tier -> escalate across tiers -> return templated result
    12. def run(task, models, budget):
    13. m = route(task, models, budget)
    14. for attempt in range(2):
    15. r = call(m, task)
    16. if r.ok and r.confidence >= task.min_confidence:
    17. return r
    18. m = fallback(m, models, direction="up")
    19. return template_result(task) # safety net, avoid empty responses

    Three design points:

    • Same tier first: crossing tiers breaks the predictability of cost and latency, so escalate only when confidence is insufficient.
    • Guaranteed output: every path needs a templated fallback so users never see a blank screen.
    • Budget up front: pass the remaining budget in as a hard constraint instead of reconciling after the fact.

    4. Observability of Cost and Latency

    The most common point of failure in a multi-model environment is cost attribution. It is recommended to instrument at least the following dimensions and to use the “task” rather than the “session” as the aggregation key.

    • For each call: the tier, the model identifier (internal code name), input/output token counts, and a latency breakdown (queueing, first token, total duration).
    • The basis for each routing decision: the constraints hit, and the candidates rejected along with the reasons.
    • The number of retries and fallbacks, used to identify “routing misjudgment” rather than “insufficient model capability.”

    A practical cost formula:

    1. cost per task = Σ(input tokens × input price + output tokens × output price) × (1 + retry rate)
    2. effective cost = cost per task / human adoption rate

    Once “effective cost” is introduced, a model that is cheap but has a low adoption rate is naturally exposed, avoiding the trap of unit-price comparison.

    5. Evaluation Loop: No Eval Set, No Selection

    In the first week after multiple models go live, an internal evaluation set should be frozen. It does not need to be large—200 to 300 real office tasks are enough, covering five categories: information extraction, long-document summarization, table understanding, multi-round revision, and multi-step generation.

    Evaluation should have three layers:

    1. Automated metrics: field-level accuracy, key-point recall, format compliance rate, executable-step pass rate.
    2. Model-vs-model review: use another model in the same tier to do preference comparison on outputs, reducing manual cost.
    3. Human spot checks: a fixed proportion reviewed weekly, focusing on samples that “look right but are factually wrong.”

    Evaluation results are written back directly into quality_pred, closing the loop. Without this table, routing degrades into randomness.

    6. Common Pitfalls

    • Parameter count is everything: parameter size is not linearly correlated with office task performance; long context and instruction following often matter more.
    • Leaderboard is everything: the task distribution of public leaderboards differs greatly from internal scenarios, so they can only serve as an initial screen.
    • Switching everything at once: a new model should first take 5% of traffic in a canary release; observe adoption rate and latency before ramping up.
    • Ignoring prompt migration cost: switching models often requires retuning prompts, so prompts should be placed under version control and bound to the model version.

    7. Implementation Checklist

    1. Establish four capability tiers and expose only the tiers in the frontend.
    2. Implement a routing function with budget and latency constraints, plus a fallback chain.
    3. Instrument three event types: cost, latency, and routing rationale.
    4. Freeze an internal evaluation set of 200 or more items and update it weekly.
    5. Onboard new models via canary release; ramp up once metrics pass, and roll back automatically on anomalies.

    Conclusion

    The engineering value of “launching ten models at once” lies not in the number but in the fact that it forces the platform to upgrade model management from static configuration to dynamic scheduling. For developers, what really needs to be built is the four pieces of infrastructure: tiered abstraction, routing strategy, cost observability, and an evaluation loop. Models will keep being replaced, but this mechanism can be reused for the long term. If an enterprise wants to build similar capabilities in its own environment, it can do so on top of general cloud products such as the container platform, logging service, monitoring and alerting, and object storage offered by Baidu AI Cloud, while keeping full control over model sources and scheduling strategy.