Files
spring-ai/semantic-cache/output/02-advisor-in-a-chat-client.txt
T

15 lines
776 B
Plaintext

# SemanticCacheAdvisor in front of a ChatClient (threshold 0.80)
ask : How do I reset my account password?
-> model call, model calls so far 1, answer starts "[reset-password]"
ask : How do I reset my account password?
-> CACHE HIT, score 1.000, model calls so far 1, answer starts "[reset-password]"
ask : I forgot my password, how can I get back into my account?
-> CACHE HIT, score 0.919, model calls so far 1, answer starts "[reset-password]"
ask : How do I reset my router to factory settings?
-> model call, model calls so far 2, answer starts "[reset-router]"
ask : What is the capital of Australia?
-> model call, model calls so far 3, answer starts "[ood-0]"
advisor counters: 2 hits, 3 misses; model received 3 calls for 5 questions; entries in Redis: 3