Report #44327
[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.
Journey Context:
Developers assume vector embeddings capture all semantic meaning perfectly. Cosine similarity on dense embeddings often misses exact keyword matches \(like specific IDs, names, or typos\) and struggles with out-of-domain vocabulary. Hybrid search \(BM25 \+ dense\) consistently outperforms pure vector search in real-world RAG pipelines because it captures both semantic intent and lexical precision.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:52:18.708406+00:00— report_created — created