errorbar for rag and knowledge assistants

Know when the answer left the context behind

Grounding in the retrieved context, and every part of the question answered.

What goes wrong here

None of these throw an error

Every one returns 200, reads well, and passes a schema check. Status codes and latency dashboards cannot see any of it.

Claims the retrieved passages do not support, stated with confidence

Half an answer: three things asked, one answered, two dropped silently

Quality that moves when the index is rebuilt and nobody notices

Retrieval returning nothing, and the model answering anyway

The judges that ship for this

Not a rubric. One binary question, and the prompt that asks it

These are the real templates, verbatim — every one states what makes a response FAIL, because vague virtues make judges nobody can calibrate. A template is a starting point, not a truth: it still has to be measured against your own grades before its verdicts earn a correction.

Grounded in provided context

Faithfulness: every claim must be supported by the retrieved/provided context, not general knowledge.

The conversation includes reference context (retrieved documents, pasted material, or a knowledge section). FAIL the response if any factual claim it makes is not supported by that context, or contradicts it — even when the claim happens to be true in the real world. Answering from outside the context is the failure mode this criterion exists to catch.

PASS responses whose claims all trace to the context, and PASS responses that say the context does not contain the answer when it doesn't.

Answers every part of the question

Completeness: grounded-but-half-answered is still a failure. Pairs with 'Grounded in provided context'.

FAIL the response if the user asked for multiple things (several questions, a list of items, steps, or comparisons) and the response addresses only some of them, silently dropping the rest.

PASS responses that address every part — including parts answered with an honest "I don't know" or "the provided material doesn't cover this". Explicitly declining a part is complete; ignoring it is not.

And on any traffic

Finishes what it starts

Semantic completeness: catches answers that trail off, stop mid-structure, or promise content that never arrives. (The mechanical finish_reason=length check is the 'completed' assertion; this judge catches the cases the flag can't.)

What the first week looks like

Day one

Point your existing OpenTelemetry at us, swap a base URL, or import a JSONL export. Two of the four paths never touch your request path, and none of them moves your inference.

Day two

Grade real exchanges pass/fail in a keyboard queue that puts the highest-signal traffic first — abandoned streams, answers cut off at the token limit, questions re-asked within minutes. Aim for about a hundred; stop when twenty in a row teach you nothing.

Day three

Calibrate. You get the judge's true-positive and true-negative rates with intervals, Cohen's κ, and a verdict: trustworthy, or exactly how many more grades of which class it needs.

From then on

The judge scores a sample of live traffic continuously, corrected rates go on a dashboard with their intervals, alerts fire on your floor, and one HTTP call gates the next release.

Know when the answer left the context behind

Keep the stack you have. Send us the same traces and find out what your evaluator is actually worth on this traffic.

$5 of credit on a verified email. No card.