Smart Router Multi-Modal

Multi-modal LLM router with vision, tools, and real-time tracing — routes each query to the optimal model by embedding similarity to decision exemplars.

What it does

An LLM routing layer that sits between an application and multiple LLM providers. Instead of hardcoding which model handles which query, it extracts signals from the query, matches it to a task type, and picks the cheapest capable model — complex math goes to reasoning models, simple QA to small local models, vision queries to multimodal models.

How it works

Query → Guardrails → Signal extractors → Decision matcher → Capability filter → Budget selection → Model

Key results

BenchmarkMetricValue
RouterArena (overlap, 809 queries)Routing accuracy86.8%
RouterArenaAvg routing latency / cost per 1K queries15ms / $0.25
VL-RouterBench (14 datasets, 17 VLMs)Routing accuracy / rank score83.8% / 0.80
vLLM-SR baseline, same RouterArena dataAccuracy / latency / cost per 1K69.1% / 22ms / $0.31

As reported in the repository README.

Tech stack

PythonFastAPI-style serversentence-transformers (MiniLM)YAML configuvHugging Face embeddings