Semantic cachingIn progress
Match prompts by meaning instead of exact text, so a reworded question can return an answer that was already generated.
An intelligent gateway between your applications and LLM providers. Reduce redundant requests, optimize latency, and gain visibility into your AI infrastructure.
Not publicly available yet. Everything in the window below is a simulation.
Simulated cache hit. The closest stored prompt scored above the threshold.
// Planned API shape. The gateway is not available yet. import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://gateway.example/v1", apiKey: process.env.SG_KEY, }); // Reworded repeats can now be answered from cache. const res = await client.chat.completions.create({ model: "gpt-4o-mini", messages: [{ role: "user", content: "How do I reset my password?" }], });
The gateway handles the cache lookup, the provider call, and the record of what happened. These are the planned capabilities and where each one stands today.
Match prompts by meaning instead of exact text, so a reworded question can return an answer that was already generated.
Cached responses and their vectors are stored in PostgreSQL with pgvector; Redis handles hot-cache and infrastructure concerns.
Send requests to one endpoint. Cache misses are forwarded to the provider you configure.
Issue scoped keys per workspace, see the secret once, and revoke them at any time.
Keys, cache entries, and logs are scoped to a tenant, so one team never receives another team's answers.
Designed to show every request with its hit or miss result, similarity score, latency, and token count. The read APIs are not built yet.
Status labels describe the build, not a release date. See every capability.
Every request takes the same first steps. What happens next depends on how close it is to something already answered.
Point your client at the gateway endpoint and authenticate with a gateway key instead of a provider key.
The gateway turns the prompt into a vector and searches the scoped cache namespace for the nearest stored entry.
Above the similarity threshold, the stored answer is returned in milliseconds. Below it, the request goes to the provider.
Misses are cached for next time. Every request is logged with its score, latency, and tokens.
A small number of moving parts, each with one job. The diagram shows the planned request flow, not a running system.
The diagram scrolls horizontally on narrow screens.
Phases run in order. No dates are promised yet. This page will change as the work does.
Semantic Gateway is not open to the public yet. Leave an email to be considered for the private preview.
Demo form. Nothing is submitted, stored, or sent.