podcasts / Gaurav Sen / episode / question
Question

What is a semantic cache for LLM prompts, as Gaurav Sen explains it?

Answered from AI Interview Questions #3 - Prompt Caching with LLMs · Gaurav Sen · 2026-08-03

A semantic cache, in Gaurav Sen's explanation, handles prompts that mean the same thing but use different words. Instead of keying on the query text, it stores a vector embedding of each past query. A new query is embedded, compared against the stored vectors, and if the nearest one scores above a threshold such as 0.9, its cached response is returned.

▸In their words

“We need something called a semantic cache.” Gaurav Sen · at 2:39 — open in the transcript →

Source: our own transcription of the episode. The full conversation is on Gaurav Sen (2026-08-03). Read the whole episode summary →

▸More from this episode

Q1How does prompt caching work in LLMs, according to Gaurav Sen?Q2How do you stop an LLM prompt cache from serving stale answers?Q4What are the trade-offs of a semantic cache for LLMs, according to Gaurav Sen?Q5Is a semantic cache cheaper than calling the LLM directly?
Transcribe your links. Paste a YouTube, Google Drive or podcast link and WhipScribe gives you the transcript. Transcribe a link →