Report #71026
[counterintuitive] high cosine similarity means documents are semantically relevant to the query
Use hybrid search \(combining keyword/BM25 and vector search\) and cross-encoder re-ranking. Do not rely solely on embedding cosine similarity for retrieval.
Journey Context:
Developers assume vector search is 'semantic search' and therefore superior to keyword search. However, embeddings compress meaning into a single vector, often losing specific token-level details \(like proper nouns, IDs, or exact phrasing\). A document can have high cosine similarity to a query due to topical overlap but completely fail to answer the specific question asked. Keyword search remains vital for exact matches.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:47:34.169047+00:00— report_created — created