Report #72574
[counterintuitive] cosine similarity embedding search semantic relevance
Use embedding cosine similarity for fast candidate retrieval, but always apply a cross-encoder or LLM-based reranker to verify true semantic relevance before passing context to the generator.
Journey Context:
Developers assume high cosine similarity in embedding space means two texts are semantically related in a way useful for the task. Embeddings compress semantics into a single vector, losing nuance and asymmetry \(e.g., a question and its answer are close, but a statement and a contradictory statement can also be close\). Bi-encoder embeddings are for search; cross-encoders are for relevance.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T04:24:15.430889+00:00— report_created — created