Book a call

AI

You cannot improve a RAG system you are not measuring

An evaluation set of real questions with agreed answers takes about a week to build and is the difference between improving a retrieval feature and having opinions about it.

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.

Keep reading

More engineering notes

All notes
  • Migrating Xamarin.Forms to .NET MAUI: what actually changes and how to plan it

    Xamarin support has ended and the app stores have moved on. What changes when a Xamarin.Forms app moves to .NET MAUI, the order to do it in, and where migrations go wrong.

    Migrating Xamarin.Forms to .NET MAUI: what actually changes and how to plan it
  • Characterisation tests are the only safe way to start a migration

    Before moving a line of legacy code, write tests that describe what it currently does — including the behaviour you think is a bug. Here is how we do it.

    Characterisation tests are the only safe way to start a migration
  • Most teams do not need Kubernetes, and the bill proves it

    AKS carries a permanent operational cost that App Service and Container Apps do not. Here is the decision we actually use when choosing Azure compute.

    Most teams do not need Kubernetes, and the bill proves it

Have a project in mind?

Tell us what you are building and we will tell you honestly whether we are the right team for it.