POST 1 of 5 MorningRAGConcept
Evaluate retrieval + generation separately
RAG quality has two stages. Eval them independently or you'll attribute bugs incorrectly. 1. Retrieval — given a query, did we fetch the right chunks? - Metrics: recall@k, MRR, hit@k - Needs (query, expected_chunk) pairs 2. Generation — given the chunks, did the LLM answer well? - Metrics: faithfulness (does the answer use the context?), correctness, citation accuracy - Needs (query, answer, context) triples + a judge Fix retrieval first. A great LLM can't recover from bad retrieval.
#RAG#LLM#VectorDatabase#AI#100DaysOfCode#RAGEval