What Did the Assistant Reuse?

This simulation uses a public museum question and fictional cache entries. Start by imagining that the question, “When was the first ARPANET message sent?”, has already been answered with a citation.

Ask again

An exact response cache can return the completed answer when the query, permissions, source revision and model configuration still match. A retrieval cache can instead reuse passages and let the system write a fresh answer.

Rephrase

“When was the first ARPANET connection made?” sounds close, but it could mean a different event. A semantic cache that accepts this match can replay the wrong answer. Retrieve evidence for the new question. If the long document prefix is identical, prefix caching may still save computation.

Update the source

Imagine that a museum editor corrects an archive caption. The old answer and old passage cache must be invalidated or checked against the new revision. An unchanged prompt prefix may still be reused, but a prefix containing the corrected caption must be recomputed where it differs.

Four different things a cache can hold

A completed response, a response selected by similarity, retrieved passages, or intermediate attention state. A KV cache holds intermediate attention state for the model. Prefix caching can reuse compatible state across requests; it does not supply a completed answer.

For shared museum caching, start with stable public questions and cited sources. Key reuse to the source revision, model and prompt configuration, and exclude personal or permissioned answers. Compare DNS, HTTP, and the cost of waiting.

Sources

HTTP caching · DNS TTL and stale data · Redis semantic cache · vLLM prefix caching

Return to What Makes AI Possible?