A JavaScript Native PyTorch-aligned Machine Learning Framework, built from scratch on WebGPU.
Semantic Cache Router
Semantic Cache Router presents a distributed semantic cache and stateful routing system.

About Semantic Cache Router
Semantic Cache Router is a distributed system for reducing repeated LLM calls. A Go gateway routes requests by system_prompt using consistent hashing to Python workers, which check a Redis Stack vector index for semantically similar past responses and skip the LLM call on a match.
It matches queries with 384-dim embeddings at similarity 0.8 or higher and stores misses with a TTL. It requires Docker with Compose v2, 4 GB RAM recommended, and downloads about 1 GB of images and model weights on first run.
Key features
- Semantic vector cache returns stored responses for similar queries
- ANN search on 384-dim embeddings at similarity threshold 0.8
- Consistent hashing pins same system_prompt to same worker
- System prompt included in cache key for namespace isolation
- Embedding model pre-loaded at container startup
- Swappable _call_llm method keeps routing provider-agnostic
- Measured ~25ms cache hits versus ~180ms LLM calls in local testing
- Worker affinity without infrastructure-level session pinning via consistent hashing
- Adding a worker migrates only about 1/N keys
- Requires Docker with Compose v2 and 4 GB RAM recommended
- First run downloads about 1 GB of images and model weights
- EvictionPolicy ships as SphereLFU stub with TTL storage
Semantic Cache Router at a glance
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Not stated
- Language
- English
- Last checked
- Oct 6, 2026 · Online when checked
- Listed
- Oct 5, 2026
Semantic Cache Router alternatives
Tools and sites you could use instead, ranked by how closely they match.
This repository contains utilities intended for use with Llama models.
PromptSite provides prompt version management for tracking, experimentation, and debugging LLM prompts.
DeepEval is an LLM evaluation framework, according to its repository description.
OneCompression is a Python package for compressing large language models.
Notte provides cloud browser infrastructure and web automation for AI and coding agents.
Popular in AI Infrastructure & MLOps
Well-known listings from the same topic.
Semantic Cache Router FAQ
How does request routing work?
How does cache matching work?
What is needed to run it?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.












