Does the nearest result deserve to be trusted?
The nearest answer can still be wrong.
Dense retrieval, ambiguity, and why confidence needs evidence.
A retrieval score tells you how strongly a retriever ranks a candidate under its own scoring function; it is not, by itself, a probability that the candidate is correct or sufficient for the user's question.
closest vector
contains the exception
related wording
The highest-scoring result wins the ranking, but a lower-ranked document can still contain a decisive exception or missing fact.
Search is ranking, not verification
Suppose you ask, “Does this payment policy apply to temporary contractors?” The search system returns a policy with a very similar title and many overlapping words. It scores highest in the embedding index. But inside the policy is an exception that excludes contractors.
A vector index did its ranking job. The mistake happens when someone treats semantic similarity as factual support. Those are not the same quantity.
What the numbers mean
A dense retriever turns queries and documents into vectors. It ranks candidates using a distance or similarity function. The top result's score can be influenced by embedding geometry, document chunking, dataset domain, and how the index was constructed.
One possible diagnostic is the margin between leading candidates. A small gap can flag an uncertain ranking, but the meaning of that gap depends on the embedding model, similarity function, normalization, index, and query distribution. Scores—and even score margins—are generally not calibrated probabilities and should not be compared across systems as if they had a universal scale.
A small diagnostic example
Imagine two queries scored by the same retriever under the same setup. Query A gets 0.90, 0.48, and 0.42; Query B gets 0.70, 0.68, and 0.66. In this invented illustration, Query B has less separation and may deserve inspection. But Query A could still retrieve an outdated or incomplete policy. A large gap is evidence about ranking separation, not truth.
The next step is not necessarily another model. It might be to expose the matched document, show which evidence supports the answer, test adversarially similar passages, and label abstention conditions.
What a careful evaluation includes
Use labeled relevance judgments where possible. Measure Recall@K, MRR, nDCG, or another metric suited to the task, then inspect failure modes: ambiguous queries, near-duplicates, stale documents, missing evidence, and domain shift. If you add a confidence or warning heuristic, evaluate that heuristic separately from retrieval quality so it does not get credit for failures it merely detects.
The design principle
Make failure legible. A retrieval system should tell an engineer what it found, how it ranked it, and why caution might be needed. That is the motivation behind my RobustVDB project; the original score heuristic there was revised after revealing weaknesses on a different dataset.
Related: RobustVDB case study · Original RAG paper. The RAG paper motivates retrieval-backed generation; the score-margin discussion above is a separate diagnostic idea, not a claim made by that paper.