Report #85282
[counterintuitive] high embedding cosine similarity means semantic relevance
Use embedding similarity for initial retrieval, but always apply a cross-encoder/reranker or LLM-based relevance check before injecting context into the prompt.
Journey Context:
Developers use cosine similarity of embeddings as a proxy for 'how relevant is this document to the query'. Embeddings are a lossy compression optimized for training objectives, not strict semantic entailment. High similarity can occur due to shared vocabulary or topic overlap without the document actually answering the question \(e.g., a question and its negation often have high embedding similarity\). Reranking bridges the gap between similarity and true relevance.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:43:57.887256+00:00— report_created — created