Our RAG Assistant Gives Wrong Answers. Where Do You Look?
The interviewer asksYour RAG assistant over the company handbook gives wrong answers about 15% of the time. How do you find out why?
Forward Deployed EngineerAI Product EngineerApplied AI PM (secondary)CoreBuild roundRepresentative7 min
On this page
The 30-second version
- Collect the wrong answers with what was retrieved for each.
- Sort each failure: right passage not retrieved, or retrieved but misused?
- Retrieval failures: chunking, search method, missing or outdated documents.
- Generation failures: too much context, unclear instructions, model ignoring the source.
- Count each type and fix the biggest first; add the cases to an eval set.
What it's really testing
- Diagnosing RAG systematically
- Separating retrieval from generation
- Prioritising fixes
How to structure your answer
- Gather failures with their retrieved context.
- Classify each failure.
- Count and prioritise.
- Fix and add to evals.
The interview, played out
- InterviewerYour RAGRetrieval-augmented generation. Fetching relevant documents and putting them in the model's context before it answers. Read the full explanation assistant over the company handbook gives wrong answers about 15% of the time. How do you find out why?
- CandidateI'd pull 50 wrong answers along with the passages that were retrieved for each. Then for each one ask: was the right passage retrieved at all?
- Strong moveSeparates retrieval from generation from the start.
- Revealed when askedIn 35 of 50, the right passage wasn't retrieved. In 15, it was, but the answer still went wrong.
- CandidateSo retrieval is the bigger problem. For those 35 I'd look at why: are the passages split badly, does the question use different words from the handbook, or is the content missing?
- Revealed when askedMany questions use informal words ("time off") while the handbook says "annual leave".
- CandidateThat's a vocabulary mismatch. Adding keyword search alongside semantic search helps, and so does rewriting the question into handbook terms before searching.
- InterviewerAnd the other 15?
- CandidateThose are generation: tighten the instruction to answer only from the passages and quote them.
- Missed signalShould say the 50 cases become an eval set to measure each fix.
The strong answer, distilled
- Gather: 50 wrong answers with their retrieved passages.
- Classify: 35 retrieval misses, 15 misuse of the right passage.
- Retrieval fix: vocabulary mismatch → hybrid search and query rewriting.
- Generation fix: answer only from quoted passages.
- Measure: turn the 50 cases into an eval set and track recall and answer correctness.
This is one strong answer, not the only one.
How it's scored
| Dimension | Weak (2) | Passable (3) | Strong (5) |
|---|---|---|---|
| Method | Tweaks the prompt | Reads failures | Classifies retrieval vs generation |
| Diagnosis | Guesses | Finds a cause | Counts causes and finds the biggest |
| Measurement | None | Re-tests | An eval set from the failures |
Round scorecard: FDE: technical and build round, filled in for the mock candidate
| Dimension | Weak | Passable | Strong | The mock candidate |
|---|---|---|---|---|
| Clarifying | Starts coding immediately. | Asks a few questions. | Pins down the goal, inputs and what done means first. | Strong. Asked for the failing examples first. |
| Approach | Unworkable or over-built. | Workable. | The simplest approach that works, stated before building. | Strong. Split retrieval failures from generation failures. |
| Testing | Tries one happy-path input. | Tries a few inputs. | Tests varied and bad inputs, and checks outputs systematically. | Strong. Counted failure types before fixing. |
| Trade-offs | None mentioned. | Some. | Says what was cut, why, and what comes next. | Passable. Fixes were right but not prioritised by count until asked. |
How the answer changes by role
| Role | What to emphasise |
|---|---|
| Forward Deployed EngineerForward Deployed Engineer. An engineer embedded with customers who scopes, builds and ships AI solutions into production. Read the full explanation | Fast diagnosis with the customer's documents |
| AI Product Engineer | Retrieval changes and the eval harness |
| Applied AI PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation | Prioritising fixes by user impact |
Common mistakes
- Changing the model before checking retrieval
- Fixing without counting causes
- No regression set
More follow-ups to practise
- "Retrieval is right but the handbook itself is wrong." Hint: fix the source and its owner.
- "Some questions need two sections combined." Hint: retrieve more, or multi-step retrieval.
Go deeper
- Module: RAG and retrieval
- Framework: Build Round Framework
- Framework: Opening Any Interview Answer
- Lesson: How retrieval works
- Lesson: Evaluating RAG: retrieval and answer separately
- Also tests: Agent and RAG evals
- Also tests: Production monitoring and error analysis
Sources
Representative question: written to match build rounds for AI product roles, not a specific reported interview.