Multi-Model Tiered Scheduling for Office AI: Architecture Design and Engineering Practice

    Office AI workloads are not uniform: long-document analysis, Chinese writing and rewriting, and lightweight high-frequency requests place different demands on context capacity, text quality, latency, and cost. This article presents a tiered multi-model scheduling architecture for office platforms, covering requirement decomposition, high/mid/low model pools, rule-based routing with fallback, long-document processing, quality evaluation and regression, cost and latency observability, and security controls. It also outlines a practical rollout path and explains how to connect task characteristics, model capabilities, and budget constraints so that each AI call has a clear routing rationale.

    1. Background: Office Tasks Are Not Homogeneous

    AI calls in enterprise office environments may look like a single pattern: input some text and receive a response. In practice, tasks differ significantly. A multi-page industry report needs to be read through and summarized; a weekly update needs to be polished into formal wording; a simple knowledge lookup may require almost no complex reasoning.

    If all three types of tasks are sent to the same model, two problems emerge. For simple tasks, compute and waiting time are wasted. For complex tasks, insufficient context capacity or reasoning capability can lead to omissions and internal contradictions.

    A multi-model office platform is therefore essentially a scheduling problem: send the right task to the right model at the right time. The sections below start with requirement decomposition, then explain the tiered architecture, routing implementation, and operational practices.

    2. Requirement Breakdown: Three Typical Scenarios

    2.1 Long-Document Understanding

    These tasks have large inputs and often require cross-document retrieval, comparison, and summarization. The core metrics are context capacity and information fidelity. When the input exceeds the model window, a common approach is chunking, but fixed-length splits can easily break causal relationships between paragraphs and distort conclusions.

    2.2 Chinese Writing and Rewriting

    These tasks have medium-sized inputs but high requirements for language quality. Outputs need to be natural and fluent, consistent with Chinese expression conventions, accurate in terminology, and standard in format. The core metrics are text quality and style controllability.

    2.3 Lightweight, High-Frequency Tasks

    These tasks are characterized by short single inputs and high call frequency, and users are sensitive to response speed. The core metrics are response latency and unit call cost.

    The three scenarios correspond to three different dimensions: context capacity, text quality, and latency and cost. A single model is unlikely to be optimal across all dimensions at the same time, so tiering is a more reasonable choice.

    3. Tiered Architecture: High, Mid, and Low Tiers

    Based on the requirements above, the model pool can be divided into three tiers:

    • High tier: Handles long documents, multi-source comparison, and tasks that require stronger reasoning. Single-call cost and latency are higher, so call frequency needs to be controlled.
    • Mid tier: Handles routine writing, rewriting, and meeting-notes consolidation. Balances text quality against cost.
    • Low tier: Handles short-text operations, format conversion, and simple Q&A. Prioritizes response speed.

    The tiering design should follow three principles:

    1. Use automatic tiering by default, while allowing users to specify a tier manually. When users have clear expectations for the result, their choice should be respected.
    2. Tiering criteria must be observable. Metrics such as input length, task type, and historical failure rate should be recorded to support later threshold adjustments.
    3. Keep backup models in each tier. Configure at least two available models within the same tier to prevent a single point of failure from directly affecting business operations.

    4. Task Routing Implementation

    The routing layer is responsible for selecting a tier based on request characteristics, then choosing a healthy model from that tier. Rules take precedence over classifiers because rules are explainable and debuggable, making them suitable for an initial solution. After enough labeled data has been accumulated, a lightweight classification model can be introduced to supplement the rules.

    The following code is illustrative. Model names are placeholders and must be replaced with the actual model identifiers in deployment:

    1. from dataclasses import dataclass
    2. @dataclass
    3. class TaskRequest:
    4. text: str
    5. task_type: str # e.g. "summarize", "rewrite", "lookup"
    6. user_tier: str | None = None # tier explicitly specified by the user
    7. TIER_POOLS = {
    8. "high": ["long-context-model-a", "long-context-model-b"],
    9. "mid": ["writing-model-a"],
    10. "low": ["fast-model-a", "fast-model-b"],
    11. }
    12. # Character thresholds should be adjusted based on actual evaluation results
    13. LONG_INPUT_THRESHOLD = 20000
    14. HIGH_TASKS = {"summarize", "analyze", "compare"}
    15. MID_TASKS = {"rewrite", "polish", "minutes"}
    16. def choose_tier(req: TaskRequest) -> str:
    17. if req.user_tier in TIER_POOLS:
    18. return req.user_tier
    19. if len(req.text) > LONG_INPUT_THRESHOLD:
    20. return "high"
    21. if req.task_type in HIGH_TASKS:
    22. return "high"
    23. if req.task_type in MID_TASKS:
    24. return "mid"
    25. return "low"
    26. # If no model in the same tier is available, fall back across tiers in order
    27. FALLBACK_ORDER = {
    28. "high": ["high", "mid", "low"],
    29. "mid": ["mid", "low", "high"],
    30. "low": ["low", "mid", "high"],
    31. }
    32. def pick_model(tier: str, healthy: set[str]) -> str:
    33. for candidate_tier in FALLBACK_ORDER[tier]:
    34. for model in TIER_POOLS[candidate_tier]:
    35. if model in healthy:
    36. return model
    37. raise RuntimeError("no healthy model available")

    Two design points in the code are worth noting.

    First, manual tier specification has the highest priority, and rule-based selection comes after it. This preserves user control while preventing rule misclassification from affecting clear business requirements.

    Second, the fallback order needs separate design. If a low-tier model fails and falls back directly to the high tier, cost can rise significantly, so in the example the low tier falls back to the mid tier first. Whether upward fallback is allowed should be determined by the cost budget.

    5. Long-Document Processing Strategy

    Routing only solves the question of which model to use. Long documents themselves also need a reasonable processing flow. Common strategies include:

    • Split by structure. Prefer splitting by section headings or paragraph boundaries to avoid fixed character counts cutting through semantic units.
    • Summarize first, then aggregate, then trace back. First generate a structured summary for each document, then perform cross-document aggregation on the summaries, and finally return to the original text to verify key data. This flow reduces the information load of each call.
    • Attach sources to outputs. Mark the corresponding paragraph numbers in conclusions to support manual verification and make model speculation easier to detect.
    • Keep only relevant content. Extremely long inputs increase latency and reduce information density. Keyword or vector retrieval can first filter paragraphs relevant to the question before sending them to the model.

    6. Quality Evaluation and Regression

    Whether a routing strategy is effective needs data validation. The following approach is recommended for building an evaluation system.

    • Build a small evaluation set for each task type. In the initial stage, 30 to 100 samples per set are sufficient, covering typical scenarios and known failure cases.
    • Score across dimensions. Chinese expression naturalness can be scored manually, factual consistency can be checked item by item against the original text, and format compliance can be checked automatically with scripts.
    • Run regression before changes. After a model version upgrade or replacement, run the evaluation set first to confirm that old scenarios have not degraded before switching traffic.
    • Use business pass rates as the source of truth. Public benchmark scores may not match actual performance in office scenarios, so routing thresholds should be based on internal task pass rates.

    7. Cost, Latency, and Observability

    After tiering, cost and latency need to be monitored by layer.

    • Record the full call chain. Each request should record the tier, actual model, input and output length, elapsed time, retry count, and failure reason.
    • Measure unit cost by task type. Some call paths are high-cost and low-value, such as using a high-tier model for a request that only needs a single typo corrected. Such cases should be guided through rules or prompts so users can adjust.
    • Set timeout and retry limits. Long requests cannot wait indefinitely, or the overall interaction experience will suffer. After a timeout, users should be clearly informed and offered a degraded result or a retry entry point.
    • Cache reusable results. For low-tier tasks, results for identical inputs can be reused directly. Caching requires that the result does not depend on real-time information and that there is a clear invalidation policy.

    8. Security and Compliance

    Office documents often contain customer data, internal financial information, and unpublished business strategies, so security controls need to be moved earlier.

    • Complete desensitization or permission checks before routing. For requests containing sensitive fields, desensitize them first or restrict them to model pools that meet compliance requirements.
    • Enforce access control at the routing layer. Data access permissions for different departments and roles should be determined by system policy rather than relying on the model to judge on its own.
    • Clean logs according to retention periods. Raw text in logs is sensitive data and should have a retention period, with automatic deletion upon expiration.
    • Add a review step for external outputs. Content intended for external publication, contracts, or formal official documents should retain a manual confirmation step.

    9. Rollout Recommendations

    1. Inventory existing office tasks, classify them into long-document, writing and rewriting, and lightweight high-frequency categories, and measure the proportion of each.
    2. Spend two to three weeks building evaluation sets and determining length thresholds and task-type mappings.
    3. Launch rule-based routing and call logging first, observe the data, and then decide whether to introduce an automatic classifier.
    4. Review cost, latency, and quality data quarterly, and adjust tier mappings and fallback strategies.

    The value of multi-model coexistence lies not in the number of models, but in whether scheduling is reasonable. A tiered architecture connects task characteristics, model capabilities, and cost budgets so that every call has a clear rationale. For development teams, this mechanism can remain stable as models continue to update, and it allows AI capabilities in office scenarios to expand gradually with business requirements.