vllm-project/semantic-router
An open, programmable decision layer for models and compute.
What it solves
It addresses the fragmentation of AI models and compute resources. Instead of relying on a single model, it provides a programmable decision layer that allows developers to select or combine the most appropriate models and backends based on the specific task, cost, latency, and location requirements.
How it works
It acts as an API gateway between an agent harness and various model backends. While the agent harness manages the loop and state, the Router uses a defined policy to route calls to configured backends across local, private, or cloud compute. It can select a single model or combine multiple models (Mixture-of-Models) to optimize performance.
Who it’s for
Developers building AI agents and LLM applications who need to optimize for quality, cost, and latency across a heterogeneous environment of models and hardware.
Highlights
- Programmable Decision Layer: Set policies to automatically route requests to the best model for the task.
- Multi-Backend Support: Seamlessly switch between local, private, and cloud compute.
- Mixture-of-Models: Ability to combine multiple models for a single call.
- Integrated Hallucination Detection: Includes capabilities like LettuceDetect for generative hallucination detection as an endpoint.
Related
- Project
- Dispatch
- Project
- Dispatch
- Dispatch