AI engineering glossary · Inference serving optimisation

What is semantic caching?

Semantic caching: Storing past answers and returning one when a new query means the same as an earlier query, judged by embedding similarity rather than exact text. It saves whole model calls, but risks returning a wrong answer if similarity is judged too loosely.

Level: intermediateTopic: Inference serving optimisation

Semantic caching: an example

'How do I reset my password?' and 'password reset steps' hit the same stored answer when similarity exceeds a chosen threshold.

Related terms

More Inference serving optimisation terms

Where you learn it

Semantic caching is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.