Status: [UNTESTED] Endpoints found: http://localhost:8080/v1/chat/completions Source: https://github.com/alexandrmotologa/vectorgate

VectorGate Logo

VectorGate

High-Throughput Semantic Caching Reverse Proxy for LLM APIs

CI Status License: MIT Python 3.11+

VectorGate is a reverse proxy that sits between your applications and upstream LLM providers such as OpenAI, Anthropic, and Google Gemini. It checks incoming prompts against a dual-tier cache to avoid redundant API fees and network latency. When an application sends a prompt, VectorGate first calculates a SHA-256 hash to find exact matches. If no exact match exists, VectorGate generates a local vector embedding using ONNX Runtime on the CPU and searches an Approximate Nearest Neighbor index. If the cosine similarity meets or exceeds your configured threshold (default: 0.90), VectorGate returns the cached completion in under 15 milliseconds. ``` Application (OpenAI SDK / LangChain / LiteLLM) │ ▼ POST /v1/chat/completions ┌────────────────────────┐ │ VectorGate Proxy │ └───────────┬────────────┘ │ ┌─────────┴─────────┐ │ Exact Hash Match? ├────────► [HIT-EXACT] Return cached response (< 2ms) └─────────┬──────â”