upstash/semantic-cache
A fuzzy key value store based on semantic similarity rather lexical equality.
Leverages Upstash Vector databases with configurable embedding models to store and retrieve cache entries by semantic similarity score rather than exact string matching. Includes namespace partitioning for multi-tenant isolation and adjustable `minProximity` thresholds (0-1) to control match sensitivity, enabling synonym recognition and multilingual query support across Node.js applications. Primary use case is reducing redundant LLM API calls by matching semantically similar queries to cached responses.
293 stars and 5,659 monthly downloads. No commits in the last 6 months. Available on npm.
Stars
293
Forks
7
Language
TypeScript
License
MIT
Category
Last pushed
Nov 21, 2024
Monthly downloads
5,659
Commits (30d)
0
Dependencies
1
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/vector-db/upstash/semantic-cache"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
alibaba/zvec
A lightweight, lightning-fast, in-process vector database
matte1782/edgevec
High-performance vector search for Browser, Node, and Edge
devflowinc/trieve
All-in-one platform for search, recommendations, RAG, and analytics offered via API
rryam/VecturaKit
Swift-based vector database for on-device RAG using MLTensor and MLX Embedders
Build5Nines/SharpVector
Lightweight, In-memory, Semantic Search, Text Vector Database to embed in any .NET Application