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)
- What semantic search adds over keywordsAI Engineer (LLM & Generative AI)
- What an embedding dimension isAI Engineer (LLM & Generative AI)
- Long chunks and embedding limitsAI Engineer (LLM & Generative AI)
- Arabic questions, English documentsAI Engineer (LLM & Generative AI)
- Why bi-encoders scale to big corporaAI Engineer (LLM & Generative AI)