Introducing Confident Voice: Watch the Launch Video Now

JevEval

Score with questions a decision model answers the same way every time

Overview

JevEval is a custom scorer that asks a decision model a set of questions you write. Each answer is worth 0 to 1, and the score is their weighted average.

Use it when you already know exactly what you want checked, and want it decided the same way on every run.

Why JevEval?

G-Eval asks an LLM judge to come up with a score from your criteria. JevEval never asks for a score:

  • Consistent — the decision model picks between fixed answers and returns how likely each one is, so there's no generated text to vary between runs
  • Explainable — the reason lists each question's answer and how it moved the score
  • No judge LLM — it runs on your project's decision model, so it doesn't need an evaluation model

Use G-Eval when you'd rather describe a criteria in plain language than write the questions yourself.

Question Types

TypeThe answerWhat it's worth
NoulTrue or falseThe probability that it's true
ScoreOne of 2–10 levels, worst firstWhere the answer falls between the worst level (0) and the best (1)
ChoiceOne of the options you defineThe credit from 0 to 1 that you give each option

For example, a scorer that checks how a support agent handled a refund could ask:

  • Noul — "Did the assistant verify the order before acting on the refund?"
  • Score — "How fully was the request settled?", from "Not addressed" to "Partly settled" to "Fully resolved"
  • Choice — "What did the assistant say about the refund amount?", with "Stated it" worth 1, "Deferred it" worth 0.5 and "Ignored it" worth 0

How Is It Calculated?

  1. Confident AI sends all of your questions, with each {{token}} filled in from the test case, to the decision model
  2. Each answer becomes a value from 0 to 1
  3. The score is the average of those values, weighted by each question's Weight

With strictness on in a collection, the score is 1 only if every question that applies gets its best answer, and 0 otherwise.

Create a JevEval Scorer via the UI

JevEval scorers can be created under Evals > Evaluators, with Add JevEval.

Evaluators page with cards for adding an evaluator above a list grouped into scorers and classifiersEvaluators page with cards for adding an evaluator above a list grouped into scorers and classifiers
The Evaluators page
  1. Pick JevEval

    Under Choose your output, pick Score, then pick JevEval under Pick your eval method. Turn on Entire conversation to create a multi-turn scorer instead of a single-turn one.

  2. Write your questions

    Billing Answer Completeness evaluator with a JevEval question and its parameter tokens beside a playground traceBilling Answer Completeness evaluator with a JevEval question and its parameter tokens beside a playground trace
    A JevEval scorer's questions

    For each question, set:

    • Type — Noul, Score or Choice
    • Weight — how much it counts towards the score, compared with the other questions
    • Question — what the decision model should answer

    Write each test case parameter a question is about as a token, such as {{actual_output}}, or click a token under the question to insert it where your cursor is. The tokens your questions use decide what the scorer reads, and each one is filled in from the test case before the questions are asked. On a single-turn scorer, {{trace}} reads the whole trace, and so do questions that use no token at all.

    Then fill in the answers: optional descriptions of true and false for Noul, the levels for Score, or the options and their credit for Choice.

  3. Name and create

    Give the scorer a name, and optionally a description, then click Create.

Create a JevEval Scorer via the API

Use Create Metric, with algorithm set to JEVAL and the questions the scorer asks.

To run JevEval locally instead, see JevEval in DeepEval.

Scaling beyond prototype?For teams evaluating Confident AI in productionTalk to us

Last updated on

Built byConfident AI