Report #92740
[counterintuitive] Is cosine similarity on embeddings enough for semantic search
Combine dense vector search with sparse retrieval \(BM25/keyword search\) in a hybrid approach, and use cross-encoders for reranking, rather than relying solely on embedding cosine similarity.
Journey Context:
Developers assume vector embeddings perfectly capture semantic meaning, so cosine similarity is the ultimate retrieval metric. However, embeddings compress information and lose specificity; they struggle with exact matches \(names, IDs, rare words\) and can return conceptually related but practically irrelevant chunks. Hybrid search captures both semantic similarity and exact lexical matches.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:15:12.196200+00:00— report_created — created