Skip to content

Guides

Jev as a judge

An LLM judge reads a trace, writes its reasoning, then gives a verdict you parse. Jev, TypeSafe AI’s decision model, skips the writing: you ask a typed question about the trace and get a probability back. Here’s how that compares with LLM-as-a-judge, what the first tests found, how to set it up, and where it falls short.

The short answer

  • Jev judges narrow checks: pass or fail, a level on a rubric, a label. Each check is one question, and each answer is a probability.
  • Early tests are promising. On small labeled sets it matched GPT-5.6 judges, for a few cents per 1,000 judgments and a few hundred milliseconds each.
  • It gives no reasons, reads questions literally, and can be swayed by text in the output it judges.
  • Use both. Run Jev on every trace, and send the unsure cases and the failures to an LLM judge or a person.

How Jev judges

With LLM-as-a-judge, you prompt a model with the trace and a rubric, it reasons in text, and you parse a verdict from what it wrote. With Jev, the trace is the state and each check is a question whose answers you define. It answers with probabilities, so there’s nothing to parse, and it can’t answer outside your options.

  • A Noul for pass or fail. “The answer addresses the question that was asked.” You get the probability it’s true.
  • A Score for a rubric. Up to 10 levels, lowest first. You get the expected level and each level’s probability.
  • A Choice for a label. Which kind of failure, which policy applies. You get each option’s probability.

Keep each check to one thing. Jev reads questions literally, and TypeSafe and Promptfoo both advise splitting a judgment that weighs several things into separate questions. Ask them all in one call: Jev answers each independently, and an extra question adds little time.

What the first tests found

TestWhat was judgedJevThe LLM judges
MLflow, September 22, 2026Whether 30 answers to questions about MLflow were correct, against human labels30 of 30. 369 ms median, about $0.025 per 1,000 judgmentsGPT-5.6 Terra and Luna 30 of 30, Claude Opus 4.8 28, Claude Sonnet 4.6 27. Luna about $0.09 and Terra about $0.90 per 1,000
Comet, September 29, 2026Whether 1,000 real turns of an AI assistant answered the question askedAgreed with the gpt-4o-mini judge on 897. 253 ms median, $0.0285 per 1,000gpt-4o-mini: 958 ms median, $0.0993 per 1,000
LangSmith, September 20, 2026Five replies from a weather agent, each judged 100 times, against a human reviewer500 of 500 pass or fail calls right, with the least variance. $0.34 in allGPT-5.6 Terra 99.8%, Luna 96.4%, Claude Sonnet 4.6 80.0%. Claude cost $28.17
TypeSafe, at launchFour decision workflows, scored against other models’ probabilities, not human labels68%. $0.0004 and 0.4 s a caseGPT-5.6 Terra 68%, $0.03 and 10 s. Opus 5 73%, $0.18 and 38 s

Read these as early signs. Each test is small and asks one or two questions. Comet measured agreement with another judge, not accuracy, and TypeSafe’s own benchmark scores against other models’ probabilities rather than human labels.

Comet’s test shows why Jev’s probabilities matter. Where Jev was sure, the two judges almost always agreed: on every trace Jev scored below 0.2, and on 95.6% of those above 0.8. Between 0.4 and 0.6, they agreed on only 63.5%. The probability tells you which traces to look at again.

Where it falls short

  • No reasons. You learn that a trace failed, not why, which makes it harder to fix what you’re judging.
  • Literal reading. “Correct and concise” is two questions. A rubric that weighs several things gets a muddier answer.
  • Numbers and dates. TypeSafe lists arithmetic, counting and date comparisons among Jev’s weak spots. Check them in code.
  • Outputs that argue their case. Promptfoo warns that an output claiming to meet the rubric can inflate its score. Don’t use Jev alone to judge red-team tests.
  • No “unsure”. A yes or no can’t abstain. Use a Choice with an unsure option, as MLflow suggests, or route the middle band of probabilities.
  • Scores move with versions. jev-latest changes when TypeSafe ships a release. Pin a version, such as jev-1.14.0, before you set thresholds.

Set it up

With TypeSafe’s Python SDK, a judge is a few questions about a trace. Send the question, the context and the answer as the state:

judge.py
from typesafe_sdk import Noul, TypeSafeClient

CHECKS = {
    "answers_question": Noul(instructions="The answer addresses the question that was asked"),
    "grounded": Noul(instructions="Every claim in the answer is supported by the context"),
    "polite": Noul(instructions="The answer is polite to the customer"),
}

with TypeSafeClient(model="jev-1.14.0") as client:  # reads TYPESAFE_API_KEY
    response = client.system_one(
        state={"question": question, "context": context, "answer": answer},
        questions=CHECKS,
    )

scores = {name: response.nouls[name].noul for name in CHECKS}  # the probability each one holds
unsure = [name for name, p in scores.items() if 0.3 < p < 0.7]  # send these to a person or an LLM judge

In Promptfoo, make Jev the grading provider. Each llm-rubric assertion becomes a yes or no question, and passes when the probability meets the threshold, 0.5 unless you set one:

promptfooconfig.yaml
# an excerpt
defaultTest:
  options:
    provider: typesafe:jev-1.14.0  # Jev grades every llm-rubric assertion
tests:
  - vars:
      ticket: "My invoice shows the wrong company name."
    assert:
      - type: llm-rubric
        value: The reply tells the customer how to change the company name
        threshold: 0.7
  • Langfuse. Add a connection with the TypeSafe adapter, pick TypeSafe, Vercel’s AI Gateway or OpenRouter as the upstream, and create a decision-model evaluator. Each question becomes a score on the observation, and a yes or no is stored as the probability of yes.
  • MLflow. Pass a TypeSafe model, such as typesafe:/jev-1.13.0, to make_judge with a boolean feedback type. MLflow asks a yes or no, passes at 0.5 and keeps the probability with the feedback.
  • LangSmith. LangChain’s test called Jev through the langchain-typesafe package.

New to the API? How to use Jev covers keys, question types and thresholds.

Jev or an LLM judge?

JevAn LLM judge
What it returnsA probability for each answer you definedText, with a verdict to parse
Explains itselfNoYes
Open-ended qualityNo: only questions whose answers you defineYes
Price$0.042 per 1M input tokens, output freeThe model’s input and output prices
Speed in the tests aboveAbout 250 to 450 msAbout 1 to 2 seconds
Best forNarrow checks on every traceA sample, and the cases that need a reason

Most teams that try it will want both: Jev on every trace for coverage, and an LLM judge on a sample, on the failures, and on the traces Jev isn’t sure about. That’s the pattern Langfuse, Arize and MLflow each describe.

Train a judge of your own

The labels you collect to check a judge are training data. When one check runs on every trace, a decision model trained on those labels learns your edge cases, answers with probabilities you’ve calibrated on traces it never saw, and runs where you choose. Comet’s write-up makes the same point: the labeled set you build to test a judge can train your own.

Train it on your own labels, not on Jev’s answers: read TypeSafe’s terms first, and Safeguard’s listing marks Jev as not distillable. How to train your own Jev shows the steps, and the decision model example on GitHub trains one and scores it the same way as Jev.

Questions people ask

What is Jev as a judge?

Using TypeSafe’s Jev, a decision model, in place of an LLM judge for narrow checks. The trace is the state, each check is a typed question, and Jev returns a probability instead of a written verdict. Langfuse, Promptfoo and MLflow support it.

Is Jev better than an LLM judge?

For narrow checks, early tests found it as accurate as GPT-5.6 judges for far less: 30 of 30 on MLflow’s labeled answers, and agreement with a gpt-4o-mini judge on 897 of 1,000 turns in Comet’s test. The samples are small, so test it against labels on your own traces before you switch.

How much does Jev cost per judgment?

Jev costs $0.042 per million input tokens, and output is free. In MLflow’s test that came to about 2.5 cents per 1,000 judgments, and in Comet’s, 2.85 cents.

Can Jev explain its score?

No. It returns probabilities and nothing else. When someone needs to read why a trace failed, send the failures and the unsure cases to an LLM judge.

Which question type should a Jev judge use?

A Noul, which is a yes or no, for pass or fail. A Score for a rubric with up to 10 levels. A Choice for a label, such as which kind of failure. Keep each question to one thing.

Which eval tools support Jev?

Langfuse runs it as a decision-model evaluator, Promptfoo as a grader for llm-rubric and classifier assertions, and MLflow through make_judge. LangChain’s LangSmith test used the langchain-typesafe package.

Sources

Train your first model

Wrap your client and keep calling your model. Sous trains a small one on your calls and switches you over when it’s ready. Every account starts with $20 of credit, and a training that fails costs nothing.

Four steps, from your app’s calls to a small model

  1. 1Make a model and an API keyin the app
  2. 2Wrap your clientSous(OpenAI(), model=…)
  3. 3Use your app as usualSous keeps each call
  4. 4Let it switchwhen a student is ready