DEV Community

Cover image for Model Routing Is a Policy Decision
FDE at Trida AI for Trida AI

Posted on Originally published at trida.ai

Model Routing Is a Policy Decision

Originally published at Trida AI.

Who chose the model that answered your last production request?

If you run a single model, the answer is boring, and boring is good. You chose it, your evals cover it, and a bad answer has one place to look. Add a router and the answer gets murkier. Now a piece of software you did not write predicts, request by request, which model in a family will answer well enough, and sends the work there. The savings are real. So is the thing you gave up: you no longer know, in advance, which system your users are actually talking to.

That trade can be worth making. It should be made on purpose.

What a managed router actually decides

Take the clearest managed version on offer. Amazon Bedrock intelligent prompt routing gives you one serverless endpoint and routes each request between models in the same family, predicting the response quality of each model for that request and forwarding it to the one it judges best on quality and cost. You pick between a default router, which ships preconfigured, and a configured router, where you set the terms yourself.

The configured terms are few, and that is the honest part of the design. You choose two models from one family. You name one of them the fallback model, the reliable baseline. And you set a single number, the response quality difference: how much better the other model's predicted response has to be before the router switches to it. AWS works the example plainly: set a 10% difference with Amazon Nova Lite as the fallback, and the router switches to Amazon Nova Pro only when its predicted response quality is more than 10% better than Nova Lite's.

Read that number for what it is. It is not a tuning knob in the abstract. It is a written statement of how much predicted quality you will trade away, on every request, without asking anyone. Set the difference high and the router stays on the fallback unless the predicted gain is large. Set it low and it switches on a much smaller predicted gain, and the threshold is mostly decoration. Either decision can be right for a given workload. Neither should happen because a default shipped that way.

How a configured router decides: a request is scored against both models in one family, the predicted quality difference is compared with the threshold you set, and the fallback model answers unless the other model clears it.

How a configured router decides: a request is scored against both models in one family, the predicted quality difference is compared with the threshold you set, and the fallback model answers unless the other model clears it.

The fallback is the real default

Teams talk about routing as if the interesting moment is the switch to the strong model. It runs the other way. The fallback model is the anchor: the router starts there, in effect, and needs a reason to leave. So the fallback is the model to plan around: whenever the other model does not clear the threshold you set, the fallback is the one that answers. Choose it the way you would choose a sole model, because on a quiet Tuesday that is what it becomes.

That framing changes the eval question. You do not only need an eval set for the strong model, the one in the launch announcement. You need one for the fallback, run on the requests the router is likely to send it, which are precisely the requests somebody judged easy. Easy is a prediction, not a property of the request. A short prompt can carry a hard edge case, a compliance-sensitive phrase, a customer who writes badly about a serious problem. If your eval set is built from the requests you found interesting, it will under-sample exactly the traffic the fallback lives on.

There is a second, quieter point. A routed response should carry its routing with it. Bedrock's flow returns information about which model processed the request, and that record is the minimum a routed system owes you. Extend it: log the predicted difference that drove the choice, the threshold in force, and the router version. Six months later, when answer quality drifts and someone asks what changed, "the router decided" is not an answer. A log line that says which model, under which threshold, for which predicted gain, is.

Example routing log, illustrative: three support requests, the model each was sent to, and the reason recorded for the choice.

Example routing log, illustrative: three support requests, the model each was sent to, and the reason recorded for the choice.

Where the managed version stops

The limits are stated in AWS's own documentation, and they are the useful part. Routing there works within one model family, so it cannot arbitrate between vendors. It is, in the documentation's words, only optimized for English prompts. And it cannot adjust its decisions based on your application's own performance data: the router has never seen your eval results, your complaint queue, or the cases your reviewers keep flagging. Its predictions were not trained on your application's data, and they do not adjust to it.

None of that makes it a bad tool. It makes it a bounded one. A managed router is a sensible answer to a narrow question: within this family, on ordinary English traffic, is the strong model worth its price for this request? Your harder questions sit outside it. Which tasks may never be downgraded, whatever the prediction says? Which requests carry regulatory or contractual weight, so the model choice itself has to be defensible later? Which failures cost enough that saving on the call was never the point? A router that cannot see your data cannot answer those, and should not be allowed to by default.

So put a policy layer in front of the prediction, owned by you. Some request classes bypass routing entirely and go straight to the named model. Some get routed, inside the threshold you set. Some are held to the fallback only, because the work is mechanical and the strong model adds nothing you can measure. The router then does the one job it is good at, inside boundaries it did not choose.

An example, invented but ordinary. A support operation routes its traffic three ways. Password resets and address changes never leave the smaller model; the answers are templated and checked downstream. Billing disputes bypass the router and go to the strong model every time, because a mishandled dispute costs more than the tokens ever will. Everything else is routed, at a threshold the team set after running both models over its own past tickets. The router still saves money. It just no longer decides what the company cares about.

Work with us

If a router is choosing models inside your product today, the useful exercise is a short one: name the fallback, read the threshold, and check whether either was ever a decision your team made. If they were defaults, they are still decisions, just not yours. Bring the workload you are routing, through Trida AI's intake, and we will help you set the policy before the platform sets it for you.

Top comments (0)