upstash/semantic-cache

A fuzzy key value store based on semantic similarity rather lexical equality.

51
/ 100
Established

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.

Stale 6m
Maintenance 0 / 25
Adoption 19 / 25
Maturity 25 / 25
Community 7 / 25

How are scores calculated?

Stars

293

Forks

7

Language

TypeScript

License

MIT

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.