AlgoViz

Streaming and semantic caching

medium 6 min

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

Where it shows up

The same pattern appears across everyday software.

  • A fast cached answer after a policy revision

    The new question resembles an old question. The customer's scope and effective policy revision still participate in cache eligibility. A semantic match alone is insufficient. Reject the stale entry and rebuild evidence under v8 before generation. Stream provisional text according to product policy. Record first-token and validated completion latency independently, then cache the verified result in the correct scope.