This is a follow-up to my post about Jev. I recently got the opportunity at work to migrate some of our evals from LLM judges and scorers to decision models. If you haven't read that post, check it out. The short version: a decision model is built to answer questions in a structured format with a confidence score. It's also 10-50x faster and massively cheaper than a standard LLM, and it always answers in the right format. That makes it an excellent judge for evals, so here's a quick overview of how to work out whether you can move your evals to a decision model.
A quick primer on evals
When you generate content, responses or tool calls with an LLM, the output is non-deterministic, so its quality can't be measured with standard tests. Evals instead use LLMs as judges or scorers to decide whether an output fits the guardrails you want in place. This is where you measure how your agent responds to standard requests, malicious ones, and the edge cases you discover in your traces (ABO - Always Be Observing).
The biggest problem with scorers and judges is speed and cost. Decision models are significantly faster and significantly cheaper, so we can just replace them, right? Wrong. Just because you can drop them in doesn't mean you get the same quality.
Start with a golden set
First we need to know how good our evals are, and for that we need a golden set. Put simply, we generate a bunch of responses for the eval set and grade them by hand. This is where we still need a human in the loop: we review the generated responses and create the "golden" results. There are a few ways to build one:
- A/B results. Go through pairs of responses and choose A, B, neither, or about the same. The judges are then given the same question: "Which one of these responses fits our eval guideline more closely?"
- A simple yes/no. Same story, just with a simpler input. The quality of the eval is now how often the judge agrees with your yes/no assessment.
- User grades. Giving users the option to 👍 or 👎 gets you direct feedback. The shortcoming is that you can't ensure you're testing specific edge cases, and the grades aren't guaranteed to be accurate. Users can be misleading in their responses.
Measure the judge
Whichever option you choose, running the golden set through your evals gives you insight into their quality. How often does the judge agree with the human? Is it consistent over multiple runs? Is there bias in the prompt?
Now you can run the same comparison for your LLM-based judges and a decision model judge, and see how they stack up. You'll have to keep an eye on drift as you continue to change features, tools and prompts. But if you're lucky, you can make the switch and start saving money on your evals and time judging outputs.