LLM engineer interview questions on RAG and evaluation
For an LLM interview, separate retrieval quality from answer quality. Use a representative set with question, source evidence and expected behavior. Measure which relevant evidence enters the prompt, whether the answer is grounded in that evidence, and the cost and latency of the complete workflow.
How do you evaluate retrieval in a RAG system?
Label which source passages support each real question. Track recall@k for how much of that evidence appears in the first k results, and compare ranking quality separately when position matters. Break results out by question type and access policy. A single answer can require multiple passages, so capture which evidence suffices for each question.
Follow-up · What changes if ten near-duplicate chunks push different evidence out of the top k?
Why can RAG answer incorrectly even when the document exists?
Trace a failed request through ingestion, chunking, filters, retrieval, reranking and generation. Ask whether the right passage reached the final prompt, then rerun with the correct passage supplied. If generation still fails, inspect ambiguity, conflicting evidence or poor grounding. Add the example to evaluation at the stage where it failed.
Follow-up · How do you distinguish a model that missed the evidence from a reference answer that wasn't supported in the first place?
How would you run continuous evaluation for prompt and model changes?
Run fast deterministic checks on each change, then evaluate representative cases against the current production version. Use exact checks for contracts and citations where possible. Calibrate judge rubrics against human labels for nuanced quality, sample model variability and track critical slice regressions. Enforce separate quality, cost and latency thresholds before rollout.
Follow-up · How would you validate a two-point gain when evaluator disagreement is larger than the measured effect?
Practice out loud
Explain how you'd debug one wrong answer from retrieval to generation. Name the first trace or metric you'd inspect and what would falsify your theory.
Start a free mock interview