I wasted a week “improving” a RAG stack by reading answers and liking them. The answers got longer and more confident. Retrieval got worse.
What I measure now, in order:
Retrieval hit-rate @k
For each question I have a gold set of doc IDs (or chunk IDs) that must appear in the top-k. Hit-rate is |gold ∩ retrieved| / |gold|. If this is flat or falling, stop tuning the generator.
Context precision / recall
Precision: of the chunks you stuffed into the prompt, how many were actually needed. Recall: of the needed chunks, how many you included. Easy to game precision by retrieving fewer chunks; watch recall.
Faithfulness / groundedness
Separate judge prompt (or a smaller model) that only sees answer + retrieved context and scores unsupported claims. I ban the judge from seeing the gold answer so it doesn’t reward paraphrasing the label.
Answer correctness
Only after 1–3 look okay. Otherwise you’re scoring fluent hallucinations.
Practical setup notes:
Freeze the embedding model and chunker while you change the prompt. One variable at a time.
Log the exact system + retrieved spans with a hash so you can replay an eval when the corpus drifts.
Keep chunk IDs stable across reindexes (content hash + path), or hit-rate becomes noise.
For hybrid search (BM25 + dense), eval each retriever alone, then the fusion (RRF). I’ve seen RRF hide a broken dense index because BM25 carried hit-rate.
Made-up example from a run of 200 questions: dense@5 hit-rate 0.61, BM25@5 0.54, RRF@5 0.72. Faithfulness jumped after I cut max context from 12 chunks to 6 and required the model to cite chunk IDs — not because the LLM got “smarter,” because it had less junk to invent from.
Anyone else separating retrieval metrics from generation metrics this hard, or do you still ship on a single LLM-as-judge score?
Yes, hard separation here too — and there are two places this ordering can still lie to you. First, add questions whose gold set is empty by design: hit-rate is undefined there, and the only faithful answer is that the context doesn’t contain it, so score abstention on that slice separately instead of letting confident invention average away. Second, whenever a retriever surfaces a chunk that isn’t in gold but does answer the question, adjudicate it once, blind to which retriever found it, and add the valid ones to gold before rescoring everyone — otherwise a retriever that improves past its labels gets punished for being right.
Agree with the ordering, and I would add one more check before trusting the faithfulness score itself: calibrate the judge on a small human-labeled sample. A judge that only sees the answer plus the retrieved context can still be systematically lenient, especially on paraphrases and on claims that are almost supported. I usually spot-check 30 to 50 answers by hand, look at where the judge disagrees, and fix the judge prompt before rerunning the full set.
I would also break hit-rate down by question type. A single average can hide that retrieval is fine for factoid questions but weak for multi-hop or comparison questions, where the second needed chunk rarely lands in the top-k. Reporting hit-rate@k together with the share of questions where all gold chunks were retrieved makes that gap visible.
How large is your eval set, and do you keep a frozen corpus snapshot for reruns?
On the human-labelled calibration sample, I’d stratify it rather than draw 30 to 50 at random. Take a handful of answers from each band of judge score and oversample the borderline ones, because a lenient judge shows up at the ‘almost supported’ boundary, not in clear passes or clear failures. Then report judge-human agreement per band, not one overall number. Related: seed a few answers where you deliberately insert one unsupported claim into an otherwise grounded answer. If the judge passes those, its faithfulness score can’t be trusted whatever the average says, and you find out in minutes.
Exactly. I made the same mistake with my first classifier: read a few outputs, nodded, shipped. The eval looked great; production did not.
What replaced vibe-checking for me:
A held-out session split, not random. Adjacent frames leak timestamps and context; random splits overstate accuracy by 20-30 points.
Per-class metrics, not just overall. My model was 100% on the common class and 40% on the rare class; overall accuracy hid the failure.
A CI-safe eval harness: recorded cases replayed in pytest, no live API calls during tests. Prompt changes either pass the full suite or they do not merge.
Hit-rate first is the right call. If retrieval is flat or falling, no amount of prompt tuning fixes it. I would add: measure per-class, hold out whole sessions, and freeze the test set once you have looked at it.
Thanks everyone, this thread is turning out more useful than my original post.
nootxlm, the empty-gold slice is a great call. Scoring abstention there on its own stops confident invention from averaging away, and blind adjudication of non-gold chunks makes sense, otherwise a retriever that beats its labels gets punished for being right.
fabbankbalnancecheck, agreed on calibrating the judge first. On your question, I’d keep a frozen corpus snapshot versioned next to the eval set, because if the index changes between reruns the hit-rate numbers stop being comparable. Splitting hit-rate by question type (factoid vs multi-hop) is going on my list too.
srinivaspadmanabhuni, stratifying by judge-score band and planting one unsupported claim in an otherwise grounded answer is a really cheap sanity test. If the judge passes the planted ones, nothing else it says matters.
Reaver1000, holding out whole sessions is the same leak in a different shape. In RAG it’s near-duplicate chunks of the same doc ending up in both the tuning and test questions. Freezing the test set once you’ve looked at it is the part people skip.