Lattice
Skip to content

Semantic cache

Reusing a previous response when a new request is sufficiently similar in meaning, skipping the model call entirely.

By Entry last reviewedmethod

What it implies

The fastest cost reduction available, and the easiest to get wrong: a cached answer goes stale in a way nobody notices. Scope it by embedding similarity *and* a version of everything that affected the answer, and never cache calls with side effects.

Tools in this index

Related terms

Rules of thumb

  • A definition is only useful next to the decision it changes. Read the linked layer to see where this term bites.
  • If a vendor's definition differs from this one, ask what it measures. Marketing definitions rarely name a number.
  • Every optimisation spends latency, memory or quality somewhere. Find out which before you turn it on.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.