All jobs / Data science / ML / AI / NLP
Data science / ML / AI interview question · 1–3 years
A RAG answer has no supporting chunk. What should the product do?
The strongest answer
Refuse or say we do not know — I do not let the model “helpfully” complete from weights and dress it as retrieval
Why it works
Exactly. Ground or decline. Improvisation in a RAG costume is a hallucination with a footnote slot.
What a good answer covers
- No support → refuse or “we do not know.”
- Do not improvise in RAG clothing.
- Do not fake a citation.
- Empty UI is better than a false source.
Answers that fall short
- Close, but not the strongest: Generate anyway; empty retrieval means the model should improvise
Empty retrieve + generate is the failure mode you bought RAG to avoid. - Weak: Repeat the question as the answer so we look responsive
Echoing the question is a toy. - Red flag: Cite a random chunk so the UI is never empty
Fake citations are worse than silence.
Who gets asked this
More NLP questions
- Your search matches queries to documents by averaging word2vec vectors of the words. Users searching “river…
- How do you evaluate a RAG system beyond “users liked it”?
- A stakeholder wants to fine-tune “so the model knows our brand.” When do you push back?
- You need humans to grade model answers. What do you specify?
- RAG chunks are 2k tokens with no overlap because “the model is long-context now.” Pushback?
- Who owns the eval suite for an assistant that can spend money?
- The company wants one platform: “fine-tune everything.” Your staff answer?
- Teams keep adding prompts that their model already passes. How do you protect the suite?