Semantic Cache Designer

Design a semantic cache for LLM responses — serve a cached answer when a new query is similar enough to a past one — to cut cost and latency on repetitive traffic, with the similarity threshold calibrated on real query pairs and a cache key that prevents cross-user/model leaks. Use when an LLM app sees many near-duplicate prompts (FAQs, support, search), when token spend on repetitive queries is high, or when latency on common questions matters.

imtiazrayhan d0e6df8 6.2 KB Updated

File contents

imtiazrayhan/agentscamp-library/tree/main/skills/semantic-cache-designer commit d0e6df8ec1

Frequently asked questions

npx skillmds@latest add imtiazrayhan/semantic-cache-designer