medium10 pts · first answer countscachingembeddings
Semantic cache gives wrong answers
You add a semantic cache that returns a stored answer when a new question embedding has cosine similarity above 0.85 with a cached one. Users now get wrong answers. "Cancel my order" got the cached reply for "Do not cancel my order". What is the best fix?
Discussion 0
Join free to post in the discussion.
Related questions
- What text embeddings areAI Engineer (LLM & Generative AI)
- Comparing two embeddingsAI Engineer (LLM & Generative AI)
- Dot product of two vectorsAI Engineer (LLM & Generative AI)
- Cosine similarity by handAI Engineer (LLM & Generative AI)
- Dot product on unit vectorsAI Engineer (LLM & Generative AI)
- Cosine of a scaled vectorAI Engineer (LLM & Generative AI)
- Upgrading the embedding modelAI Engineer (LLM & Generative AI)
- Old version after deploy with a service workerFrontend Developer