All writing

What I wanted to compare in a prompt-evaluation prototype

Published

A retrospective on work from 2026.

I specified and reviewed an internal prompt-evaluation CLI prototype in 2026. It ran prompt variants against test cases, graded responses, stored run results and produced comparison reports. It reached the prototype and test-run stage.

The useful question behind it was how to compare a prompt change with something more inspectable than a handful of responses read in isolation.

Separate the response from the judgement

A model response and a grade are different artifacts. Keeping them separate makes it possible to look back at the output behind a score and ask whether the judgement is useful.

The prototype combined deterministic checks with an LLM-based grader. The deterministic layer included simple checks such as exact matches, required text and required fields in parsed output. The model grader addressed judgements that were not expressed by those checks.

I would not describe those mechanisms as equivalent. A deterministic check can answer a narrow question reproducibly. A model-based judgement needs its own scrutiny. A combined score does not remove the need to understand either part.

Make runs inspectable

The tooling stored results in SQLite and produced reports for comparing variants. Work on the reports also included cost aggregation.

Those features matter to the purpose of an experiment. A result is more useful when it can be connected to the cases, responses and grading choices that produced it. A ranked report is a way into that investigation, rather than the end of it.

My role involved specifying and reviewing the tool with AI coding assistance.

Keep the prototype claim bounded

This was an experiment in a repeatable workflow. Its existence does not establish that a product passed an evaluation, that grading quality was validated or that the tool was operating in CI.

The experience was designing the comparison process and reviewing an implementation that made the pieces visible: cases, model outputs, grades, stored runs and reports.

That is a useful distinction in applied AI work. Building a tool for evaluating something is one step. Establishing confidence in the evaluation itself is another piece of engineering work, with evidence of its own.

Client work is described anonymously; examples focus on my contribution and general engineering lessons.