RAG & Retrieval·Question 85 of 100Quick-fire

How do you tune the retrieval score threshold that decides answerable vs unanswerable?

Quick-fire answer from the Awesome Generative AI Guide (MIT)

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Treat it as a classification threshold you set with data, not a guess. Collect answerable and unanswerable queries, look at the distribution of top retrieval scores for each, and pick the cutoff that best separates them for your tolerance of false refusals versus hallucinations. Because raw vector similarities are not calibrated and vary by embedding model and corpus, you tune per system and re-check when either changes, and a reranker score is often a cleaner signal than first-stage similarity. Monitor the refusal rate in production so the threshold does not silently drift into refusing good queries or answering bad ones.

Full worked answer

Treat it as a classification threshold you set with data, not a guess. Collect answerable and unanswerable queries, look at the distribution of top retrieval scores for each, and pick the cutoff that best separates them for your tolerance of false refusals versus hallucinations. Because raw vector similarities are not calibrated and vary by embedding model and corpus, you tune per system and re-check when either changes, and a reranker score is often a cleaner signal than first-stage similarity. Monitor the refusal rate in production so the threshold does not silently drift into refusing good queries or answering bad ones.

Learn more: Evaluation topic

What a good answer covers

  • Treat it as a classification threshold you set with data, not a guess
  • Collect answerable and unanswerable queries, look at the distribution of top retrieval scores for each,…
  • Because raw vector similarities are not calibrated and vary by embedding model and corpus, you tune per…
  • Monitor the refusal rate in production so the threshold does not silently drift into refusing good…

Key terms: Learn more

Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep