# Why Semantic Similarity Can Give AI the Exact Opposite Answer

DevFeed: [Why Semantic Similarity Can Give AI the Exact Opposite Answer](<https://devfeed.tech/articles/why-semantic-similarity-can-give-ai-the-exact-opposite-answer-116249.md>)

Original publisher: [Read original article](<https://hackernoon.com/why-semantic-similarity-can-give-ai-the-exact-opposite-answer?source=rss>)

Author: JasonL

Published: 2026-11-04T07:56:06Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [cosine similarity search](<https://devfeed.tech/topics/cosine-similarity-search.md>), [hybrid-search](<https://devfeed.tech/topics/hybrid-search.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [bm25](<https://devfeed.tech/tags/bm25.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cosine](<https://devfeed.tech/tags/cosine.md>), [cosine-similarity](<https://devfeed.tech/tags/cosine-similarity.md>), [cross-encoder](<https://devfeed.tech/tags/cross-encoder.md>), [embedding](<https://devfeed.tech/tags/embedding.md>), [embeddings](<https://devfeed.tech/tags/embeddings.md>), [llm](<https://devfeed.tech/tags/llm.md>), [models](<https://devfeed.tech/tags/models.md>), [negation-blindness](<https://devfeed.tech/tags/negation-blindness.md>), [question](<https://devfeed.tech/tags/question.md>), [rag](<https://devfeed.tech/tags/rag.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [retrieval-augmented-generation](<https://devfeed.tech/tags/retrieval-augmented-generation.md>), [semantic](<https://devfeed.tech/tags/semantic.md>), [semantic-search](<https://devfeed.tech/tags/semantic-search.md>), [similarity](<https://devfeed.tech/tags/similarity.md>), [vector-database](<https://devfeed.tech/tags/vector-database.md>)

## AI overview

Across six locally run open embedding models, opposite questions often scored closer than genuine rewordings, making similarity thresholds unreliable for semantic-cache decisions. In a 40-item test, a 0.90 cutoff caused one model to return cached answers for 97.5% of opposite questions but only 7.5% of rewordings. Retrieval results varied by model; BM25 rank fusion worsened five of six, and removing "no" and "not" via an English stop list reduced BM25 to chance. Re-ranking each model's top ten with cross-encoders raised negated-question accuracy to at least 97.5% in this small 80-chunk test. The article recommends testing question triples on the target model, checking stop-word settings, and using a cross-encoder or claim check before cache hits or fact merges. Results are limited to 40 invented English facts, a small index where both rival chunks reached the reranker, and open models; hosted APIs were not tested.

## Source excerpt

Six embedding models rate a question and its opposite as closer than the same question reworded. What that breaks in caches and retrieval, and what fixes it.