Model Management and Inference

Model Management and Inference

Semantic Caching — References

Semantic caching › References

36 of 49 in this book · 1 min read

Sources for the similarity machinery, the stores, and the distinct mechanism of prefix caching.

Semantic cache implementations

  • GPTCache — a semantic cache with explicit embedding, storage, similarity-evaluation, and eviction stages; useful as a reference decomposition even if you build your own.
  • Redis vector search documentation — vector fields, metadata filtering, and time-to-live in one store.

Similarity search

  • Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs (Malkov & Yashunin, 2016), arXiv:1603.09320 — the index structure behind most vector stores, and why recall is a tuning parameter rather than a guarantee.
  • Qdrant documentation — filtering combined with vector search, and the distinction between pre-filtering and post-filtering that decides whether tenant isolation actually holds.

Prefix caching, which is a different thing

Caching semantics generally

  • RFC 9111 — HTTP Caching — freshness, invalidation, and Vary; read as a specification of everything a semantic cache cannot inherit, because its key is a distance rather than an equality.