Every retrieval feature we have been asked to look at had the same problem: the team could tell it was not good enough, and could not tell whether any given change had helped.
That is not a prompting problem. It is a missing test suite.
What an evaluation set actually is
Fifty to two hundred real questions, each with an agreed correct answer and the document that answer should come from. Collected from the people who will use the feature, not invented by the team building it. This takes about a week and is almost entirely non-engineering work.
Then a scorer. Retrieval accuracy — did the right document come back — is the cheapest and most informative metric, and it does not need a model to compute. Answer quality needs a judge model, which is imperfect but consistent, and consistency is what you need to compare two versions.
Running it like a test suite
Because that is what it is. It runs in CI. A change to the chunking strategy, the prompt, the model version or the reranker produces a score, and the score is in the pull request.
The first time this pays off is when a model version changes underneath you and the score drops without anyone having touched the code. Teams without an evaluation set find out about that from a user.
What it does not tell you
Whether the feature is worth having. That is still a product question, and no amount of scoring answers it.
