The primary methods include Exact-Match Caching for identical prompts, Semantic Caching for semantically similar queries via embeddings, and Prefix Caching (also known as KV Caching) which stores internal model states for repeated prompt beginnings.
Open the full topic