AlgoViz

Streaming and semantic caching

medium 6 min

A retrieval service can improve perceived latency by streaming, and avoid repeated work by caching.

Trace the example

Follow the evidence through each stage, then test a change in the case.

A fast cached answer after a policy revision

A fast cached answer after a policy revision. Selected component: Query context inside Request gateway.
Open full-size diagram

Request gateway

Tenant A · policy v8

The new question resembles an old question. The customer's scope and effective policy revision still participate in cache eligibility.

Similarity is 0.99 but the cached answer belongs to another tenant. Can it be reused?