small-language-model.ai
Menu
How to route requests between a small and a large

How to route requests between a small and a large language model

Routing requests between a small and a large language model means directing each task to the least expensive model capable of handling it correctly.

6 min read8 sections
01

What is routing between a small and a large language model?

Routing between a small and a large language model is the mechanism that, for each incoming request, decides which model to send it to: a small language model (SLM), compact and economical, or a large language model (LLM), versatile and heavier. The rule is simple to state: send each task to the least expensive model that handles it well.

This mechanism changes the way the problem is framed. The question is no longer "which single model for the whole system", but "which model for this request, at this moment, under this constraint". Routing turns a frozen binary choice into a continuous decision, taken request by request. This is the useful shift: it is no longer a question of model size, it is a question of switching and cost.

02

Why route requests rather than choose a single language model?

Routing requests rather than choosing a single language model makes it possible to reserve heavy compute for the requests that require it, and to handle everything else with a compact model. A system that sent every request to a large model would mobilise disproportionate compute for tasks that a small model handles just as well.

The gain reads on three planes. On cost, routing avoids paying for the power of a large model for a bounded task. On sovereignty, it makes it possible to keep sensitive requests on a compact model hosted in the organisation's environment, and to outsource, if needed, only non-sensitive requests. On maintainability, in the sense of the ISO/IEC 25010 standard, it isolates each task behind an explicit routing rule, easier to evolve than a monolithic model.

03

On what criteria is a request routed to a small or a large language model?

A request is routed to a small or a large language model according to the nature of the task, the sensitivity of the data and the level of confidence expected. These criteria are assessed before sending, then verified after the answer.

Routing criterionPoints to a small modelPoints to a large model
Nature of the taskstable, bounded, repetitiveopen, varied, unpredictable
Sensitivity of the datahigh, to keep in the environmentlow, with no localisation constraint
Need for business specialisationstrong, precise vocabularybroad, general knowledge
Acceptable cost per requestto be controlled, intensive usejustified by the difficulty

Routing does not freeze these criteria once and for all. A request first handled by a small model can be redirected to a large model if the result does not reach the required level of confidence: this is escalation, a cascading routing that starts with the most economical model.

04

How does the confidence score guide routing between language models?

The confidence score guides routing between language models by giving a usable measure of the reliability of each answer, on which the escalation decision rests. On the Optivalue.ai platform, which publishes this site, each answer carries a confidence score from 0 to 100, produced by a control in 5 layers, including 7 anti-hallucination checks.

The operating principle is direct: an answer whose score exceeds the required threshold is retained; an answer below it triggers a retry, by a more powerful model, by a complementary document search, or by escalation to a human expert. Routing then ceases to be a bet on the model and becomes a measured loop, where each step sources, scores, recommends and moves the processing forward to the expected level of reliability.

05

How to set up routing between a small and a large language model?

To set up routing between a small and a large language model, a technical management team benefits from describing the tasks and the rules before adding a single model. Routing is first a matter of rules, then a matter of models.

  1. Map the tasks that the system must handle, and describe the scope of each.
  2. Classify each task by its stability, the sensitivity of the data and the level of confidence required.
  3. Define the routing rule of each class: which model first, which score threshold triggers an escalation, and to what.
  4. Instrument the confidence score, so that the escalation decision rests on a measure and not on intuition.
  5. Measure and move forward: observe frequent escalations, adjust the rules, specialise a compact model where the large model is called too often.

A routing architecture can mobilise several processes in parallel; on the platform that publishes this site, up to 100 sub-agents work in parallel on a single file. Parallelisation and routing complement each other: one spreads the load, the other switches it to the right model.

06

The concession that clarifies everything: when routing is superfluous

Routing between a small and a large language model is superfluous when the system handles only a single class of homogeneous tasks, with no variation in sensitivity or difficulty. If all requests are alike and belong to the same model, adding a routing layer complicates without bringing anything.

Likewise, for an exploratory, one-off use on non-sensitive data, a consumer generative AI does the job without a routing architecture. Routing takes on its value as soon as the requests diversify, the sensitivity of the data varies, or the cost of use becomes significant. The prerequisite to routing is the choice of the models to let coexist, addressed on the page small or large language model: how to choose.

07

Frequently asked questions

Does routing between language models slow down answers?

Routing between language models does not necessarily lengthen latency (the delay between the request and the answer): directing a bounded task straight to a small model, faster at inference (the computation that produces the answer), can on the contrary reduce the delay. The overhead of the routing decision stays small compared with the computation of an answer.

What is escalation in routing between a small and a large language model?

Escalation is the redirection of a request, first handled by a small model, to a large model when the confidence score of the answer stays below the required threshold. It makes it possible to start with the most economical model without giving up reliability.

Does routing compromise data sovereignty?

Routing does not compromise sovereignty if it takes the sensitivity of the data into account: sensitive requests stay on a compact model hosted in the organisation's environment, and only non-sensitive requests can be routed elsewhere. Sensitivity is a routing criterion in its own right.

Do you need a confidence score to route between language models?

A confidence score is not mandatory to route, but it makes routing measurable: without it, the escalation decision rests on intuition. A score from 0 to 100 attached to each answer turns routing into a controlled loop.

Is routing between language models reserved for large systems?

Routing between language models is not reserved for large systems: it becomes useful as soon as the requests diversify in nature or sensitivity. A homogeneous, low-stakes system can do without it; a mixed system gains in cost and control.

08

Further reading

Test routing on your own use case

Bring a real compliance use case and your sensitivity rules. You see the extraction coverage, the sources cited on the page and the gap analysis on your own document, not a prepared demonstration.

Written by the compliance and presales team at Optivalue.ai. Last reviewed: 5 September 2026.

Markdown version

Sources cited

Book a demo