Report #94042
[counterintuitive] Is cosine similarity of vector embeddings sufficient for retrieving relevant context
Combine vector similarity with keyword search \(Hybrid Search/BM25\) and use cross-encoder reranking to evaluate true semantic relevance before passing chunks to the LLM.
Journey Context:
Developers assume that if two texts have a high cosine similarity in embedding space, they answer the user's question. Embeddings compress meaning into a single vector, losing nuance. A document mentioning the same entities as the query but answering a completely different question will often have high cosine similarity. This leads to 'semantic false positives' that mislead the LLM.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:26:15.254609+00:00— report_created — created