vLLM Semantic Router: routing tutorial and v0.23 updates

Learn how vLLM Semantic Router routes requests between local and external models, with anchor tuning, PII redaction and a home-lab demo.

Player not loading? Watch on YouTube

This vLLM Office Hours session opens with v0.23 release updates before Christopher Nuland shows how he routes prompts between his home lab and an external model. The router uses example questions called anchors to classify requests. In his setup, simple and medium requests use the local model, while more complex requests can go to the external service.

Nuland shows how to tune the embedding model, add anchors and use confidence scores to check whether requests land in the right category. He also demonstrates redacting information in one prompt and rerouting another to a local model when the egress check blocks it from going out.

The architecture example pairs vLLM Semantic Router with llm-d. The first chooses a model, and llm-d uses the prompt prefix to find an instance that can reuse cached work. Nuland discusses the difficulty of routing very long or streaming inputs and explains why switching models mid-conversation can make cache reuse harder.