RAG & Retrieval·Question 75 of 100Quick-fire

A user asks something your corpus does not cover. What should the system do, and how do you make it do that?

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

It should refuse gracefully ("I do not have that information") rather than hallucinate from parametric knowledge. You engineer this by instructing the model to answer only from the retrieved context and to say it cannot find the answer when the context is insufficient, by setting a retrieval-score threshold below which you treat the query as unanswerable, and by including unanswerable cases in your eval set so you can measure the refusal rate. Getting this right is a top signal in take-homes, because it separates a grounded system from a confident fabricator.

Full worked answer

It should refuse gracefully ("I do not have that information") rather than hallucinate from parametric knowledge. You engineer this by instructing the model to answer only from the retrieved context and to say it cannot find the answer when the context is insufficient, by setting a retrieval-score threshold below which you treat the query as unanswerable, and by including unanswerable cases in your eval set so you can measure the refusal rate. Getting this right is a top signal in take-homes, because it separates a grounded system from a confident fabricator.

Learn more: Safety and Security topic

What a good answer covers

  • It should refuse gracefully ("I do not have that information") rather than hallucinate from parametric…
  • You engineer this by instructing the model to answer only from the retrieved context and to say it…
  • Getting this right is a top signal in take-homes, because it separates a grounded system from a…

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