Add semantic-cache module: CallAdvisor over a Redis Stack vector index with a real in-process embedding model; threshold sweep (hit rate against wrong answers), 600-request replay with an illustrative cost model, tenant filter, expiry, look-alike and embedding-model-change traps; optional real local model
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G8ikz8xdWuTP5yun8DZ1hk
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
# Expiry with EXPIRE on the document's key
|
||||
|
||||
stored one entry, index holds 1 document(s); lookup -> hit
|
||||
EXPIRE sc:<id> 1, wait 1.5 s; index now holds 0 document(s); lookup -> miss
|
||||
Reference in New Issue
Block a user