Collect concrete failing examples first, then trace each one to see whether the right document was retrieved. If it was not, the problem is ingestion, chunking or search; if it was retrieved but ignored or misread, the problem is the prompt or the model. Group failures by cause, fix the biggest group, add every example to the evaluation set, and make the assistant say so when sources are missing or conflict.
Why interviewers ask this
This tests diagnosis rather than tuning by guesswork. The interviewer wants you to split a RAG failure into retrieval and generation before touching anything, because the fixes are completely different. They also listen for working from real examples, grouping failures by root cause, and turning each one into a regression test, since fixing anecdotes one at a time without measurement tends to break something else.
How to structure your answer
- Gather specific failing examples with their traces.
- Decide for each one whether retrieval or generation failed.
- Group by root cause and fix the largest group first.
- Add the cases to the evaluation set and measure again.
Example answer
First I want examples, not impressions, so I collect twenty or thirty real questions and answers and pull the traces. For each one the key question is whether the passage with the right answer reached the model. If it did not, it is retrieval, and I check why: was the document ingested, did parsing mangle it, was the answer split across chunks, or did an older near duplicate outrank it. If the right passage was there and the model still got it wrong, it is generation, perhaps blending two conflicting sources. When I did this on an internal assistant, most failures were retrieval, and the biggest single cause was outdated copies of documents that had never been removed from the index. We added deletion sync and a last updated field, and boosted recent versions. The overconfidence I fixed separately, with instructions and examples showing it to say it is unsure when sources conflict or are missing. Every failing example went into the evaluation set, so we could prove the fix worked and stayed fixed.
Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.
See how it worksFollow-up questions to expect
- How would you find these failures without waiting for users to report them?
- What would you do when two source documents genuinely contradict each other?
- How do you make sure deleted documents leave the index?
Related ai engineer questions
Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.
Predict my questions