Skip to main content

RAG evaluation: retrieval vs generation metrics

How do you diagnose whether a bad RAG answer came from retrieval or generation, and which metrics measure each?

Official Reference

Model Answer & Explanation

Evaluate in two stages on a golden Q&A + expected-chunk dataset. Retrieval metrics: Recall@K (did the right chunk appear?), MRR, and NDCG@K. Generation metrics: Faithfulness/Groundedness (are claims supported by retrieved context?), Answer Relevance, and Context Precision. Fixing generation prompts cannot cure bad retrieval!

Follow-up Interview Question · How do you build an initial eval set before you have thousands of production users?

Module Context & References

Applied AI & RAG · Popular interview theory Widely asked LLM, retrieval, grounding, agent and evaluation questions
Personal Notes · Markdown

Technologies & Interview Topics Covered

Switch between short-term interview tracks and long-term 80/20 engineering depth to practice JavaScript internals, React rendering and hooks, timed frontend machine coding UI challenges, MeetaPro FG300, Blind 75 & NeetCode 150 DSA patterns, Python & FastAPI APIs, PostgreSQL query optimization & MVCC, Redis caching, Applied AI RAG pipelines & evaluations, and distributed system design.