Report #38814
[counterintuitive] Semantic search using embeddings accurately captures negation and logical exclusions
Use keyword matching \(BM25\) or structured metadata filters for negations and strict constraints; combine with vector search in a hybrid approach.
Journey Context:
Developers query embeddings with phrases like 'features without X'. Embeddings map semantic meaning to geometric proximity, but they collapse antonyms and negations to the same vector space region \(e.g., 'hot' and 'cold', 'with X' and 'without X' are near identical\). Consequently, semantic search will return results that explicitly violate the negation constraint.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:37:25.714408+00:00— report_created — created