Online LLM evals and prompt A/B tests without an LLM judge

Online LLM evals without an LLM judge: nine deterministic CEVAL checks on every output, plus CPROMPT versioning and sticky A/B tests. With limits.

Online LLM evals without an LLM judge are deterministic checks that score every model output in the request path, with no second model call. Prompt A/B testing then splits traffic between prompt versions so their scores can be compared. In Crowkis, CEVAL runs nine model-free evaluators and CPROMPT versions prompts and assigns sticky A/B variants.

In plain words. Use cheap, repeatable checks on every answer, and keep the expensive judge for a sample. A check you can afford to run on all traffic catches the regression the day a prompt change ships.

Why not use an LLM as the judge for everything?

Calling a second model to grade the first is the default way to evaluate LLM output. It works, and it has three costs when you try to run it on every production request: a second bill, a second wait, and a second copy of the user's data sent to a provider.

It also has known weaknesses as a measuring instrument. The paper that introduced MT-Bench examined LLM judges and lists position bias, verbosity bias, self-enhancement bias and limited reasoning ability among their limitations (Zheng et al.). And because a judge is itself a sampled model, the same output can get a different score on a second run, which makes a time series noisy.

Anthropic's evaluation guide gives a rule for choosing a grading method: pick the method that is quick, reliable and scalable enough for the job. It puts code-based grading first on speed and reliability, and notes that it lacks nuance for complex judgements. LLM-based grading is flexible, and the guide says to test its reliability before you scale it (develop tests).

That suggests a split. Run deterministic checks on all traffic, online. Keep an LLM judge or a human for a sample, where nuance matters.

Deterministic evaluatorsLLM judge
Cost per checkno model callone model call
Same input, same scoreyesnot guaranteed
Data leaves your networknoyes, unless the judge is self-hosted
Reads nuance, tone, factual accuracynoyes, with the biases above
Sensible coverageevery requesta sample

What do the nine CEVAL evaluators check?

text
CEVAL <evaluator> <input> <output> [EXPECT t] [THRESHOLD f]
CEVAL SUITE <input> <output> [EXPECT t]

CEVAL takes an evaluator name, the input the model received and the output it produced. Each run returns [name, score, pass|fail, detail]. CEVAL SUITE runs the evaluators in one call. All of them are model-free and none makes an outbound call.

EvaluatorThe question it answers
non_emptyDid the model return anything at all?
json_validIs the output valid JSON?
toxicityDoes the output contain toxic language?
pii_leakDoes the output contain personal data?
injection_safeIs the text free of prompt-injection patterns?
answeredDid the model answer the question?
exact_matchDoes the output equal the text given in EXPECT?
containsDoes the output contain the text given in EXPECT?
relevanceIs the output related to the input?
text
CEVAL relevance "how do refunds work?" "Refunds take 5 to 7 business days." THRESHOLD 0.7
CEVAL contains "how do refunds work?" "Refunds take 5 to 7 business days." EXPECT "business days"
CEVAL SUITE "how do refunds work?" "Refunds take 5 to 7 business days."

THRESHOLD moves the pass bar for an evaluator that produces a score. EXPECT supplies the reference text for the evaluators that compare against one. The detail field in each reply says what the evaluator found, which is the part to log.

Two neighbouring commands do related work at the edges of a request. CGUARD <text> scans input for prompt injection, jailbreaks and code injection. COUTCHECK <text> [JSON] scans output for personal data and toxicity, with optional JSON validation. They return a verdict meant to block or allow a single request, where CEVAL produces scores meant to be tracked. Both are covered in LLM guardrails at the cache layer.

How do you track eval results over time?

Every CEVAL run is recorded on the Prometheus endpoint, /metrics, in series whose names start with crowkis_eval_. The endpoint uses the text exposition format, and it is served by the management server on the port one above the cache port. On a server with an admin key, send the key in the X-Crowkis-Admin-Key header.

Because the evaluators are deterministic, the series are clean. The same output always gets the same score, so a change in the pass rate means the outputs changed. Prometheus counters only go up (metric types), so chart the rate of passes against the rate of runs, and alert when the ratio drops. A prompt change that starts producing invalid JSON, or an upstream model update that makes answers drift off topic, shows up as a step in that line.

How does prompt versioning work with CPROMPT?

A prompt is production logic. It deserves the same history and rollback as code. CPROMPT stores named templates and creates a new version on every write.

text
CPROMPT SET <name> <template>
CPROMPT GET <name> [version]
CPROMPT LIST
CPROMPT VERSIONS <name>
CPROMPT ROLLBACK <name> <version>
CPROMPT RENDER <name> [version] [VARS k=v ...]
CPROMPT DEL <name>
CPROMPT ABSET <name> [<v> <w> ...]
CPROMPT AB <name> [SUBJECT id]
SubcommandUse it to
SETSave a template. Each write creates a new version
GET, LIST, VERSIONSRead one template, list the names, or list the history of one name
RENDERFill {{k}} placeholders from VARS and get the finished prompt
ROLLBACKReturn to an earlier version
ABSETSet a weighted split across versions. With no pairs it clears the split
ABPick a version for a request. Returns [version, template]
DELRemove a named template

Templates are stored durably in the Crowkis storage engine, so they survive a restart. You can roll back or start a test without a code deploy.

How do you A/B test two prompts?

An A/B test is a randomized experiment with two variants (Wikipedia). For prompts, the variants are two versions of one template, and the outcome you compare is an eval score.

  1. Save both versions. Two SET calls on one name give you two versions, and VERSIONS lists their numbers.
  2. Define the split with ABSET. The pairs are a version and a weight.
  3. On each request, call AB with a SUBJECT, usually the user id. The reply is the version and its template.
  4. Render the template, call your model, and run CEVAL SUITE on the output.
  5. Record the version next to the eval result in your own logs.
  6. When one version is clearly ahead, clear the split with ABSET and no pairs, or ROLLBACK.
text
CPROMPT SET support "You are concise. Answer: {{q}}"
CPROMPT SET support "You are warm and concise. Answer: {{q}}"
CPROMPT ABSET support 1 50 2 50
CPROMPT AB support SUBJECT user_42
CPROMPT RENDER support 2 VARS q="where is my order?"

The assignment is sticky per subject. The same subject always gets the same version, so a user does not flip between two prompt styles from one message to the next, and their results are not spread across both arms.

Step 5 matters. The CEVAL syntax has no argument for a prompt version, so nothing ties an eval run to the variant that produced the output. Keep that link in your application logs or your own metric labels. The statistics are yours too: Crowkis assigns variants and scores outputs, and it does not tell you when a difference is significant.

When are model-free evals not enough?

  • Factual accuracy. No evaluator in the list checks whether an answer is true. relevance tells you the answer is about the question, not that it is right.
  • Tone and helpfulness. These need a reader. Use an LLM judge or a person on a sample.
  • Personal data in unusual forms. Crowkis detects personal data with cue-driven patterns. Its capability notes say that detection misses a bare name with no surrounding cue and misses non-ASCII scripts entirely. Read a pii_leak pass as "nothing matched", not "nothing leaked". More in PII in an LLM cache.
  • Subtle toxicity. A check that uses no model cannot read intent or sarcasm.
  • Small experiments. Sticky assignment and a score are not a verdict. With little traffic, an A/B difference is noise.

The pattern that works is layered. Deterministic checks run on everything and guard the floor. A sampled judge measures quality. A confidence score on each cache hit covers the answers that never reached the model at all.

Common questions

Can evals run on every production request?

That is what they are built for. The evaluators use no model and make no network call, so a check does not add a provider round trip or a token charge. Measure the latency on your own hardware before you put the full suite in a hot path.

Does CEVAL send my data to another service?

No. The command reference describes the evaluators as model-free and zero-egress. The input and output you pass stay inside the Crowkis process.

Do prompt versions and A/B splits survive a restart?

Named templates are versioned on every write and stored durably, so they survive a restart. You can roll back to any earlier version by number.

Where do the commands fit with the rest of Crowkis?

CEVAL and CPROMPT run in the same server as the cache, so there is no extra service to deploy. Every command and its syntax is in the Crowkis command reference.

Filed under Features. Published .

Book your demo today.

A 30 minute call. Bring your stack and your questions.

Pick a time

Or write to us.