---
title: "Discussion on \"RAG evaluation: how to know if your retrieval is actually good\" | Hashnode"
description: "Discussion on \"RAG evaluation: how to know if your retrieval is actually good\". Your RAG app answers questions fine in the demo. That tells you nothing about whether it's actually retrieving the right thing"
url: "https://hashnode.com/posts/rag-evaluation-how-to-know-if-your-retrieval-is-actually-good/6abbb9ee6aceb727da1a93f3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [RAG evaluation: how to know if your retrieval is actually good](https://amitshuklabag.hashnode.dev/rag-evaluation-how-to-know-if-your-retrieval-is-actually-good?utm_source=hashnode&utm_medium=feed)

Your RAG app answers questions fine in the demo. That tells you nothing about whether it's actually retrieving the right thing

Sep 29 · 6 min read · amitshuklabag.hashnode.dev  
Updated Oct 10  
Read the article

-   [#rag](https://hashnode.com/tag/rag)
-   [#llm](https://hashnode.com/tag/llm)
-   [#ai](https://hashnode.com/tag/ai)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)

## Written by

[Amit Shukla](https://hashnode.com/@amitshuklabag)

@amitshuklabag · India

  
[View profile](https://hashnode.com/@amitshuklabag)

Software Engineer · DevOps & Platform Engineering · Applied AI

I build and operate platforms, and I write about what actually breaks. Docker, Kubernetes, Linux, Node.js, and applied AI (RAG, agents, MCP). Weekly deep dives here. Daily tips on Instagram @amitshuklabag.

## Responses 4

Markdown supported · ⌘↵ to post

[Kartik N V J K](https://hashnode.com/@kartik-nvj)

[Sep 29](https://hashnode.com/posts/rag-evaluation-how-to-know-if-your-retrieval-is-actually-good/6abbb9ee6aceb727da1a93f3/comment/6abc15b7d24c503672626dfa)

Your point that a generation problem downstream of a retrieval miss looks identical to a bad prompt is exactly what wasted a week for me once. I now split the eval so a low recall@k fails loud before I ever touch the prompt, otherwise I kept tuning the generator for a chunk it never received. I wrote about that split here: [kartiknvjk.hashnode.dev/how-i-stopped-my-rag-ci-g…](https://kartiknvjk.hashnode.dev/how-i-stopped-my-rag-ci-gate-from-lying-to-me) . How do you keep your expected\_chunk\_ids fresh when the chunking strategy changes?

[Amit Shukla](https://hashnode.com/@amitshuklabag)

[Oct 2](https://hashnode.com/posts/rag-evaluation-how-to-know-if-your-retrieval-is-actually-good/6abbb9ee6aceb727da1a93f3/comment/6abc15b7d24c503672626dfa#reply-6abfe073d20ad1e5f8b6b3a0)

Same week lost here, so I feel this one. I stopped storing chunk IDs for exactly that reason. Each eval case now stores the source doc plus the exact answer text, and a retrieved chunk counts as a hit if it contains that text. Change the chunking and the eval set still works, no relabeling. Nice write-up on the CI gate, thanks for sharing it.

[Mihai\_LeanZero](https://hashnode.com/@mihaileanzero)

[Sep 29](https://hashnode.com/posts/rag-evaluation-how-to-know-if-your-retrieval-is-actually-good/6abbb9ee6aceb727da1a93f3/comment/6abbc3e602996ca92e3dbe55)

Good rundown of the retrieval-vs-generation split, that's the part most RAG writeups blur together. One thing worth adding to "where teams get this wrong": the ground truth itself is only as stable as the chunking scheme it was labeled against. expected\_chunk\_ids pinned to one chunking strategy don't reliably still point at the same content after you change chunk boundaries, so a before/after recall@k comparison across a chunking change can be comparing against a stale definition of "the right chunk" rather than the new one, unless the ground truth gets re-derived by content match rather than trusted by ID. And on the LLM-judge faithfulness check, it's worth calibrating the judge itself before trusting it across the whole eval set — run it against a small hand-labeled set of known SUPPORTED/UNSUPPORTED cases first. A judge that's quietly biased toward SUPPORTED (a common failure mode) will launder unfaithful answers through a metric that looks like it's catching them.

[Amit Shukla](https://hashnode.com/@amitshuklabag)

[Oct 2](https://hashnode.com/posts/rag-evaluation-how-to-know-if-your-retrieval-is-actually-good/6abbb9ee6aceb727da1a93f3/comment/6abbc3e602996ca92e3dbe55#reply-6abfe0dea713b95e720f2b22)

Both fair, and the first one is exactly where I ended up. Labels now point at the answer text instead of chunk IDs, so a chunking change doesn't quietly move the goalposts. Agree on the judge too. A small hand-labeled set to check it against first is cheap, and a judge that leans SUPPORTED is worse than no judge, since it looks like it's working. Might fold both into the post.
