Calling a large language model (LLM) is relatively slow and relatively expensive. Each request may take hundreds of milliseconds to several seconds, and each one consumes tokens that cost money. Yet in many real applications the same or very similar questions arrive again and again: a documentation assistant fielding the same onboarding query, a support bot answering the same product question, a classification pipeline seeing repeated inputs. Caching is the technique of storing the result of an expensive operation so that future identical or similar requests can be served from the store instead of recomputed.β¦