Test semantic caching with the given setup #112
Labels
No labels
bug
dependencies
duplicate
enhancement
help wanted
invalid
question
renovate: stop-updating
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
renovate: stop-updating
security
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: nomyo-ai/nomyo-router#112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi @alpha-nerd, I just tested the rc3 version.
I didn't see any issues. However, the caching doesn't seem to take effect.
Currently, I am using exact cache match:
Which is also acknowledged in the log:
[cache] Exact-match cache ready (backend=sqlite)But running the same /api/chat request twice doesn't trigger caching:
Originally posted by @JTHesse in #106 (comment)
@JTHesse
one question:
this is an additional guard for the cache feature as it potentially can leak privacy sensitive data to foreign users.
i.e. your system uses a memory, that memorizes users and injects automatically user info ->
user A prompt: What is the capital of france?
system injects metadata
llm reponse: The capital of france is Paris, A!
if user X now does the very same prompt, the router will not forward the prompt to the llm, but respond from cache with "The capital of france is Paris, A!", which leaked the data of user A to user N.
Hence why, to make sure this is understood it requires both configuration and per-request opt-in.
Safe to use, where you only have general user prompts ;)
You are right, with the request opt-in caching is working as expected.
I initially thought by reading the docs that this was an additional possibility to activate caching, but as a guard this makes total sense ;) Thanks for clarifying.