On September 3 and 4, 2026, I released four versions of RAGnarok-AI in two days. Then, on the second day, I made the opposite decision: no more features until I had measured what the tool's scores are actually worth. Here is what pushed me to it, and how you set up a measurement that might prove your own work wrong.

1. The two days before

Back on the project at the end of my freelance engagement, I first did what comes naturally to me: build. In quick succession came: disambiguation of medical abbreviations with a small local model, failure root-cause diagnosis, A/B tests, drift detection, test sets extracted from real traffic, a module for calibrating the judge against human annotations, and then a command-line interface able to run a real evaluation. The disambiguation answered the question opened by @harish1120, which I described in the previous post.

That calibration module is what set everything off. I had just written the tool that measures agreement between an LLM judge and a human. I had never applied it to my own judge.

The engagement I had just finished had a lot to do with it too. I had spent months answering a simple question, with figures to back it up: does it work? I couldn't demand that of my deliverables and spare my own tool.

2. Who evaluates the judge?

The question already arises with a remote judge, but people rarely ask it: when an API returns 4/5, who checked that this 4 looks like what a human would have given?

With a local judge, it arises even more sharply. I had removed the remote provider and the risk to the data. I hadn't removed the doubt. Is a 7-billion-parameter model, quantized to run on a 16 GB machine, even capable of judging whether an answer is faithful to a context?

If the answer is no, the rest of the tool is built on sand. Better to know before a user blocks a production release on the strength of a score.

Using a bigger model isn't always possible. On a 16 GB machine, a model that's too heavy doesn't just slow down: it can saturate memory to the point of freezing the other services running alongside it.

3. Writing the protocol before seeing the data

I announced the freeze in the release notes of version 1.11.0, and wrote the study protocol the same day, September 4, before a single data point existed.

When you measure your own tool, the temptation to tweak parameters until you get a presentable result never goes away. The only remedy: write down in advance what you will measure, how, and what you will conclude depending on the result. That is the principle of preregistration (Nosek et al., 2018). Mine isn't on an official registry: it's a dated file in a public Git repository.

The September 4 protocol sets:

  • The corpora. The public documentation of Docker, Kubernetes, Python and FastAPI, frozen with checksums. Anyone can rebuild exactly the same set.
  • The questions. Thirty, five of each of six types: direct, conditional, multi-passage, false premise, out of corpus, and contradictory documentation.
  • The systems under test. Seven RAG configurations, with the same generator throughout: one reference, and six each carrying a deliberate defect: bad chunking, weak embedding, too few passages, noisy context, broken retrieval, generation pushed to hallucinate.
  • An amendment log. Any change made to the protocol after the start is dated and justified.

Why break systems on purpose? The protocol gives two reasons: each defect isolates a single component, and the expected ordering is known in advance. My own reasoning adds to that: a healthy RAG is wrong too rarely to test a judge. The share of failures isn't dosed for all that, and it will be published.

The pilot ran that same afternoon: 210 outputs, thirty questions across seven configurations, each prompt recorded with its checksum.

That left writing down how to conclude. I only did it on November 3, while narrowing the study: without having seen a single label or judge score.

Method · The question under test. "Is a local judge […] in sufficient agreement with a human to serve as an automatic safeguard on a RAG?" "Sufficient" is defined in advance by the table below.

The judge and I don't answer on the same scale. The judge grades each answer from 1 to 5, like a teacher. RAGnarok-AI turns that grade into a verdict with a simple rule: 4 or 5, the answer passes (PASS); 1 or 2, it fails (FAIL); 3, it sits in between (PARTIAL). I answer yes or no. To compare the two, you have to decide which side the 3, the judge's gray zone, falls on. The protocol settles it in advance: an answer needs at least 4 to pass, so a 3 counts as a rejection. As a check, another threshold is searched for on one half of the data, then measured on the other: this shows whether the cutoff at 4 puts the judge at a disadvantage, without judging that threshold on the data that chose it.

The decision is based on faithfulness to the context, the criterion most tied to the risk of letting a wrong answer through, measured on the "test" half:

Result (faithfulness, test half) Conclusion
Kappa ≥ 0.6 and false accepts ≤ 20% The judge can block a continuous integration pipeline
Kappa between 0.4 and 0.6 It can only flag
Kappa < 0.4 Not reliable on its own: human review required
Kappa ≥ 0.6 but false accepts > 20% Not covered by the protocol (gap flagged)

Relevance is analyzed separately, and has no bearing on whether the judge may block. A negative result gets published. The 0.4 and 0.6 bounds are those of the "moderate" and "substantial" categories of Landis and Koch (1977), which the protocol uses to read a kappa.

Why kappa (Cohen, 1960), and not simply the percentage of answers on which the judge and I agree? Because that percentage is misleading: if 80% of the answers are good, a lazy judge that says PASS to everything agrees with me eight times out of ten without reading a thing. Kappa removes the share of agreement you would get by pure chance: that lazy judge drops to 0, a perfect judge reaches 1, and a judge that agrees with me less often than chance falls below 0. The false accept rate, for its part, counts the answers the judge lets through when I rejected them.

In one line: kappa = (po - pe) / (1 - pe), where po is the observed agreement and pe the agreement expected by chance.

Method · The analysis plan. On the test half, for each judge and each criterion: agreement with a 95% confidence interval (Wilson), kappa, false accepts and false rejects, and kappa at the threshold tuned on the other half. On top of that: the "always PASS" baseline, our lazy judge, results per configuration, and every disagreement read and categorized. Everything else is exploratory and doesn't count toward the decision.

4. Annotating: the plan, the failure, and the choice

Measuring a judge means comparing it to human annotations. The question was who would annotate.

My first plan was ambitious: an online annotation platform, and volunteers recruited from several communities, Discord in particular. I put the site online in early September. Status on October 9: six sign-ups, not a single batch completed. Meanwhile, the free database had gone to sleep after seven days of inactivity. The site stayed unreachable for three weeks without my noticing.

This isn't an anecdote, it's a measure of the real cost of human annotation. Even short, even on public documentation, it doesn't get done for free by strangers.

I didn't wait indefinitely. On November 3, I shut the collection down, recorded it in a dated amendment, and decided to annotate alone. The same amendment scaled the study down to what one person can handle: 120 answers out of 210, two criteria out of four.

Annotating alone is a serious limitation, since the annotator is also the tool's author, and I will state it plainly alongside the results. But it can be compensated for:

  • Blinding. 120 answers drawn from the 210 by a public script, seventeen or eighteen per configuration. Opaque identifiers, shuffled order, configuration hidden, no reference answer. While annotating, I didn't know whether an answer came from the healthy system or a broken one.
  • Guidelines frozen before the first annotation: two binary criteria, faithfulness to the context and relevance, with written tie-breaking rules.
  • A second pass, scheduled for November 18, on 20% of the answers, at least fourteen days after the first, without looking at it. It measures my own consistency, and gives an essential point of comparison: if I only agree with myself four times out of five, that's the order of magnitude to keep in mind when judging the judges' agreement.
  • A case log. Every deviation from the protocol, every rule discovered along the way, is dated and recorded in a public file.
  • Annotations frozen before the first score. The 120 labels were recorded in Git with their checksum before any judge ran. The order is attested by the commit dates, and GitHub's activity log shows that the annotations were online on November 4 at 11:37 a.m. at the latest. Correction of November 10, 2026: this bullet claimed that the Git history proved the order; it establishes it only through the commit dates (see section 10 of the next post).

Method · The two criteria (frozen guidelines, version 2.0).

Faithfulness: PASS if every factual claim is supported by the provided context, "not by your own knowledge of the tool"; a single unsupported claim, even an added detail (version, default value, option), and it's a FAIL.

Relevance: PASS if the answer addresses the question actually asked, FAIL otherwise. Correctness isn't judged here.

Tie-breaking rule, for example: an abstention ("the documentation doesn't cover this") is a PASS on relevance if the context genuinely lacks the information, a FAIL otherwise.

To understand Kubernetes concepts, the area I know least, I consulted a French book during annotation: Yannig Perré, Kubernetes : gérez la plateforme de déploiement de vos applications conteneurisées (ENI, 3rd edition). It helped me understand, never to decide; the deviation is logged.

5. Limitations and threats to validity

The November 3 protocol declared the single annotator, the language and the sample size in advance; I add the others.

  • Internal: a single annotator, who wrote the tool. Compensated for by blinding, frozen guidelines, the second pass, the case log and the publication of the data, which anyone will be able to re-annotate. The pace also departed from the plan: most answers were annotated in one go, instead of sessions of about thirty. The deviation is logged; the second pass will measure any drift.
  • Construct: a 1-to-5 grade against a binary verdict. Putting the 3 on the rejection side is a choice, and my guidelines are stricter than the judge's rubric. Compensated for by the rule fixed in advance and the threshold checked on the other half.
  • External: narrow ground. English technical documentation, a single generator, a 16 GB machine, human guidelines in French and judge prompts in English. The conclusions will hold for this setting. The only compensation: everything is published so it can be replayed elsewhere.
  • Statistical: 120 answers. About 60 in the test half, i.e. roughly ±12 points of uncertainty on agreement. Intervals will always be shown.

6. Everything in place

On the morning of November 4, the annotation was done, in two sessions: 120 answers, two criteria. No judge had run yet.

Three local judges were waiting: Prometheus 2 7B, RAGnarok-AI's default judge (Kim et al., 2024); mistral:7b, from the same family, since Prometheus 2 7B derives from Mistral 7B, hence possibly correlated errors; and llama3.1:8b, on an exploratory basis. The pilot's generator was excluded, because it would have graded its own answers. Everything ran on the same machine, at temperature zero, with a fixed seed, enforced by the study kit's client: the tool's default Ollama adapter didn't pass these options.

Reproducibility. Everything is in the RAGnarok-AI repository: study protocol and amendments, calibration protocol, corpus manifests (source commit and SHA-256), sampling script (seed 7), frozen annotations and case log (commit dfe2af3), judge run code (tag study/run-2026-11-04, seed 42).

The next post gives the results. I can already say two things: the very first judge call revealed a bug in my own tool, and what followed was not what I was hoping for.

References

  • Cohen, J. (1960). A coefficient of agreement for nominal scales. Educational and Psychological Measurement, 20(1), 37-46. doi:10.1177/001316446002000104
  • Kim, S., Suk, J., Longpre, S., et al. (2024). Prometheus 2: An Open Source Language Model Specialized in Evaluating Other Language Models. EMNLP 2024. arXiv:2405.01535
  • Landis, J. R., & Koch, G. G. (1977). The measurement of observer agreement for categorical data. Biometrics, 33(1), 159-174. doi:10.2307/2529310
  • Nosek, B. A., Ebersole, C. R., DeHaven, A. C., & Mellor, D. T. (2018). The preregistration revolution. PNAS, 115(11), 2600-2606. doi:10.1073/pnas.1708274114