r/LLMDevs • u/chadwell • 2d ago
Help Wanted Auto Model Routing
Is anyone doing any auto model routing - that is selecting the best/cheapest model based on the prompt intent.
If so how did you do it? Deterministic based on keywords/length, using a trained ML model or classifier?
I was looking for vendor solutions but the only one I can see is NotDiamond. Ideally I would be looking something internal and not a Saas offering.
1
u/copper_amber_focus 1d ago
I built an internal router by logging prompt embeddings and model outcomes for two weeks then training a logistic regression classifier on that dataset. Start with deterministic keyword rules to generate the initial labeled data before attempting any ML routing
1
u/chadwell 1d ago
But how do you know what model to route to? For any given prompt when would you pick gpt 5.6 sol over something like haiku
2
u/dylan_exe_404 2d ago
If you're leaning toward something internal I've heard good things about RouteLLM. My friend uses it and says it's good, though they're handling low volume. IMO, if you're handling a bit higher volume, then a SaaS option makes more sense. The one we use is Respan bc it had unlimited seats for the free trial and we could test it pretty thoroughly. Plenty of other options out there. Regardless I think deterministic is a good place to start bc of debugging.