Gabriel Abreu
All articles

How I stopped winging it on AI evals

Portrait of Gabriel Abreu

@gabe_onchain

A couple of days ago, I realized something embarrassing about how I run LLM evals.

I'd been shipping agents that ran every day. They sent briefs, pulled data, and made decisions. And the whole time, I was still judging them mostly by whether they felt right that day.

That's not an evaluation strategy. That's hoping.

I'd been telling myself I was doing AI evals. I had RAGAS scores lying around, a few manual spot checks, a spreadsheet I opened once a week and closed without doing much with it. It passed the "I care about quality" test in conversation, but it fell apart the moment someone asked me to explain what was drifting.

So I finally opened inspect-ai.

What changed when I stopped winging it

inspect-ai is the framework the UK AI Safety Institute built. You define a task, give the agent tools, run it many times, and score the outcomes with custom rules. It also logs the full path the agent took, so every decision, every tool call, and every recovery attempt is right there in front of you.

The first thing that surprised me was how small the failures were.

One of my agents would occasionally drop a key data point in the morning brief. It was subtle enough that the summary still sounded coherent. When I ran it through inspect-ai with a simple scorer that checked whether the expected entities appeared, the success rate landed around 87% across 30 runs. Not terrible, but not good enough for something the whole team reads.

That number forced a conversation I'd been avoiding.

I've started adding explicit verification steps inside the workflow. I've stopped assuming the original output was trustworthy by default, and that mattered more than any model upgrade.

Why this felt different from the RAG scores I already had

RAGAS is excellent for retrieval. It tells you whether the context was relevant and whether the answer stayed faithful to it. That still matters a lot.

But the risk in the systems I run shows up after retrieval: the planning, the tool selection, and the moment when the agent decides to skip a verification step because the previous output looked fine.

inspect-ai lets me test that whole loop. I can write scorers that check whether the agent used the right tools in the right order, whether it handled an error gracefully, and whether the final deliverable meets a concrete definition of done. It turns evaluation from a feeling into a repeatable experiment.

I didn't need a more powerful model right away. I needed a better way to see when the current one was failing.

The part that surprised me most

Once I had real numbers in front of me, something shifted.

I've stopped getting defensive about the output. I can look at a failed run and say "this scorer caught something real" instead of spiraling into "maybe the prompt just needed tweaking again." That distance matters when you're the person responsible for keeping the system alive, because it turns debugging from something personal into something closer to data collection.

I still get runs where the agent does something unexpected. But now those surprises get logged, scored, and folded into the next iteration instead of disappearing into the morning rush.

How to evaluate an LLM agent: the steps I follow now

If you want to try this on your own agent, this is the order I'd do it in.

  1. Pick one behavior to check. Mine was whether the morning brief kept its key data points. Start with something you can say in one line.
  2. Define "done" in plain words. For the brief, done meant the expected entities show up in the summary. A concrete definition beats "it feels right".
  3. Write a scorer for it. In inspect-ai you define a task, give the agent its tools, and score the outcomes with custom rules. A simple scorer is enough to start, and later you can also score whether the agent used the right tools in the right order.
  4. Run it many times. One good run proves little. 30 runs gave me a success rate I could argue with.
  5. Read the logs of the failed runs. inspect-ai logs the full path the agent took, so you can see where it went wrong.
  6. Adjust, then run it again. Some scorers are too strict and others too lenient, so I keep tuning what "good enough" means. Every surprise gets logged, scored and folded into the next iteration.

What I'm still figuring out

I've only been running this properly for a few weeks. The garden isn't neat yet. Some scorers are too strict, others are too lenient, and I keep adjusting what "good enough" means for different kinds of tasks based on different kinds of taste.

The useful part is that I'm finally having the argument out loud with the system instead of inside my head.

That feels like progress worth keeping imho.

What evaluation habits have you stuck with once the system started running for other people?

Thanks for reading. Cheers.

Originally posted on X · @gabe_onchain

I'm Gabe, an applied AI software engineer based in Rio. I build agents and fun, thoughtful AI products that help people in their work and everyday lives.

Let's book a chat to see how I could help you too.

Book a chat