RAG Caching

Caching strategies across the RAG stack. Semantic caching with GPTCache and LangChain, Redis-based embedding-similarity cache, cache key design, TTL/invalidation, partial caching (cache retrieval only), provider-native prompt caching (Anthropic, OpenAI), and hierarchical L1/L2 caches. USE WHEN: user mentions "semantic cache", "GPTCache", "LLM cache", "prompt caching", "Redis vector cache", "cache invalidation for RAG", "reduce LLM cost", "latency reduction LLM" DO NOT USE FOR: retrieval accuracy - use `rag-patterns`; groundedness checks - use `rag-guardrails`; incremental indexing - use `rag-production`

claude-dev-suite 4467bf5 9.4 KB Updated 28 repo stars

File contents

claude-dev-suite/claude-dev-suite/tree/main/skills/rag/rag-caching commit 4467bf529a

Frequently asked questions

npx skillmds add claude-dev-suite/rag-caching