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,5 @@
|
||||
# Where the milliseconds go on a lookup (110 questions, 30 entries cached, 2 vCPUs)
|
||||
|
||||
embed the question (MiniLM in-process) : median 2.4 ms, p95 3.6 ms
|
||||
Redis KNN search with the tenant filter : median 0.3 ms, p95 2.5 ms (lookup time minus one embedding)
|
||||
Timings drift run to run; the shape (embedding dominates, Redis is small) does not.
|
||||
Reference in New Issue
Block a user