Platform Docs
Try DatumoEval

Evaluation

LLM evaluation with DATUMO: define criteria, score AI agent responses repeatedly, and confirm each prompt or model change actually improved quality.

DATUMO Evaluation lets you define which criteria, which data, and which methods to evaluate your AI service (Application) with, and then run that evaluation.

In short

For each Application, you create Criteria, a set of evaluation criteria, and build Tasks inside it by evaluation area. A Task consists of one Benchmark Set (the evaluation data) and multiple Metrics (the scoring methods). Evaluations run per Task.


Evaluation structure

Diagram
UnitRoleContains
ApplicationThe AI service being evaluatedMultiple Criteria
CriteriaA set of evaluation criteria4 evaluation areas (General Performance, Policy & UX, Safety, Module Performance). Shown as Task Group in the UI.
SubgroupA group that organizes Tasks by topic within an Application-level evaluation areaMultiple Tasks
ModuleA Module configured on the Application, shown under Module PerformanceMultiple Tasks
TaskThe unit that defines what to evaluate and runs the evaluation1 Benchmark Set + multiple Metrics
Benchmark SetThe collection of data used to evaluate a TaskMultiple data items
MetricA method that scores Output by calculating or judging it-

Group Tasks with Subgroups

In General Performance, Policy & UX, and Safety, you create Subgroups to group Tasks by topic. Module Performance groups Tasks by the Modules configured on the Application instead of Subgroups.

Diagram

See an example

Take evaluating a financial advisory chatbot before launch as an example.

Diagram
Example Task setup

Each Task has one Benchmark Set and multiple Metrics, as shown below.

TaskBenchmark SetMetric
Financial product lookup200 product inquiry questionsAnswerAccuracy, Similarity, ExactMatch
Product terms comparison80 product comparison questionsAnswerAccuracy, Similarity
Financial term explanations120 financial term questionsAnswerAccuracy, Similarity
Financial regulation guidance100 financial regulation questionsAnswerAccuracy, Similarity
Deposit interest calculation50 interest calculation problemsExactMatch, AnswerAccuracy
Loan repayment calculation50 repayment calculation problemsExactMatch, AnswerAccuracy
Answer completeness100 advisory scenario questionsAnswer completeness (Custom)
Plain-language explanations100 advisory scenario questionsEase of understanding (Custom)
Investment solicitation compliance80 investment advisory questionsSolicitation rule compliance (Custom)
Duty-to-explain compliance80 product sign-up consultationsDuty-to-explain compliance (Custom)
Consistent advisory tone100 advisory conversationsTone consistency (Custom)
Complaint handling tone60 complaint conversationsEmpathy (Custom)
Harmful request refusal150 harmful questionsrefusal label, response harmfulness score
Illegal transaction refusal100 illegal finance questionsrefusal label, response harmfulness score
Personal data leak prevention100 personal data elicitation questionsrefusal label, Personal data exposure (Custom)
Third-party data lookup refusal80 third-party data requestsrefusal label, Personal data exposure (Custom)
Jailbreak refusal120 jailbreak promptsrefusal label, response harmfulness score
Prompt injection defense100 injection promptsrefusal label, response harmfulness score
Question type classification100 question · answer type pairsExactMatch
Agent handoff decision80 handoff request questionsExactMatch
Intent-based document retrieval100 question · answer document pairsContext Relevancy, Precision@k
Latest-document-first retrieval80 question · answer document pairsContext Relevancy, Precision@k
Grounded answer generation100 question · retrieved document pairsFaithfulness, Response Relevancy
Answer source citation80 question · retrieved document pairsSource citation (Custom)
Example Benchmark Set setup

The example Benchmark Sets consist of Input, Reference, and Metadata Keys. Which Keys you include depends on what you evaluate. Below, the same question is used to build Benchmark Sets for three Tasks.

Financial product lookup (200 product inquiry questions): Checks whether the final answer matches the expected answer. Put the expected answer in Reference.

idquery
(Input)
expected_response
(Reference)
source
(Metadata)
human_reviewed
(Metadata)
1What happens to the interest if I close my Sample Term Deposit early?The early withdrawal rate applies instead of the contracted rate.Product FAQY

Intent-based document retrieval (100 question · answer document pairs): Checks whether the Retriever found documents that match the question. Put the documents it should find in Reference.

idquery
(Input)
reference_context
(Reference)
source
(Metadata)
1What happens to the interest if I close my Sample Term Deposit early?Sample Term Deposit product description (early withdrawal clause)Product description

Grounded answer generation (100 question · retrieved document pairs): Checks whether the Generator based its answer on the retrieved documents. Include the retrieved documents as Input. This Task's Metrics score without a Reference, so no Reference is included.

idquery
(Input)
retrieved_context
(Input)
source
(Metadata)
1What happens to the interest if I close my Sample Term Deposit early?Sample Term Deposit product description (early withdrawal clause)Product description

Metadata isn't used for evaluation. Use it to manage data, such as review status or source. Don't include Output that's generated during evaluation, such as response.

The Criteria, Subgroup, and Task names and the data counts in the example are illustrative. A Custom Metric is a Metric you create yourself.


Criteria

Criteria is a set that defines which criteria to evaluate an Application against. You can create multiple Criteria for one Application, so you can manage evaluation criteria separately by purpose, such as pre-launch validation and routine checks.

Criteria is divided into 4 evaluation areas. Create Tasks in the areas you want to check. Here are examples using the Tasks from the financial advisory chatbot above.

Evaluation areaWhat it checksExample Task
General PerformanceDoes it have the basic knowledge and abilities it needs?Financial product lookup
Policy & UXDoes it follow internal policies and guidelines and respond in a way that fits the user experience?Answer completeness
SafetyDoes it avoid potentially dangerous responses?Harmful request refusal
Module PerformanceDoes each Module in the Application do its job well?Intent-based document retrieval (Retriever)
Grounded answer generation (Generator)
  • Application-level evaluation (General Performance, Policy & UX, Safety): Treats the whole Application as one evaluation target and evaluates the final response. Create multiple Subgroups under each evaluation area to group Tasks by topic.

  • Module-level evaluation (Module Performance): Evaluates individual Modules in the Application (e.g., Retriever, Generator) separately. Module Performance lists the Modules configured on the Application, and you build Tasks for each Module.

Module-level evaluation example

In a RAG-based Application, the Retriever finds documents and the Generator writes the answer.
Application-level evaluation scores only the final answer.
Module-level evaluation scores each Module's results separately. So when the final answer scores low, you can find which Module caused the problem.

Diagram

When you evaluate only the Generator, include the retrieved documents in the Benchmark Set too.

The Modules shown in Module Performance follow the Application settings. To set up an Application, see G-5. Create an Application.


Task

A Task defines what to evaluate and is the unit that actually runs the evaluation. A Task consists of two things:

  • One Benchmark Set: the data used for evaluation
  • Multiple Metrics: the methods that score the results generated from the data

Example Tasks: Financial product lookup, Intent-based document retrieval

Because one Benchmark Set is scored by multiple Metrics at once, you can evaluate the same data from several angles.

When you first create an Application, Tasks that match the Application details you entered (Type, Domain, Language, and so on) are automatically recommended from templates and set up.

You can start Safety Tasks right away with templates made by DATUMO. Templates include evaluation data and Metrics. You don't have to design safety evaluations, such as harmful request handling, from scratch.


Benchmark Set

A Benchmark Set is the collection of reference data used to evaluate a Task.
It consists of multiple data items suited to the evaluation's purpose.

Columns

Each column in a Benchmark Set has a defined role in the evaluation.

Diagram
Sample data
idquery (Input)expected_response (Reference)source (Metadata)
1What happens to the interest if I close my Sample Term Deposit early?The early withdrawal rate applies instead of the contracted rate.Product FAQ
2What's the minimum to open a Sample Savings Account?You can start from $10 per month.Product description
3What terms are available for the Sample Term Deposit?You can choose 6, 12, or 24 months.Product description

Common Keys

DATUMO defines common column names as standard Keys. If your Benchmark Set column names match the standard Keys, connecting Metrics to columns (Key Mapping) is easier.

KeyMain useDescription
queryInputUser question
retrieved_contextInput, OutputList of documents the Retriever retrieved
responseOutputAnswer from the Application or Module
expected_responseReferenceExpected answer (ground truth). For multiple-choice questions, the correct option
reference_contextReferenceList of ground-truth documents that should be retrieved

Metric

A Metric defines how to calculate or judge the Output of an Application or Module. You can attach multiple Metrics to one Task.

Metric types

Diagram

There are 5 Metric types.

TypeHow it scoresExamples
LLM as Judge (LLM judgment)A Judge model judges using a set prompt and rubric.Faithfulness, Context Relevancy
Rule-Based (rule-based)Calculates a score with set rules or formulas (match, word overlap, ranking).ExactMatch, BLEU, ROUGE, Precision@k
Embedding (embedding)Converts sentences to vectors and calculates how close their meanings are.BERT Precision
Statistical Metric (statistical)Collects per-item judgments across the whole Benchmark Set and calculates ratios.F1 Score, Recall
Custom (user-defined)A Judge model judges using criteria you define. Choose a Generative Model or a Decision Model.Answer completeness, Refund policy accuracy
  • Pick the first four types from templates provided by DATUMO.
  • Create Custom Metrics yourself on the Task's Metric settings screen (+ Add Metric › Custom).
  • You can also edit the prompt and rubric of an LLM as Judge Metric to change its evaluation criteria.
  • If there's no ground truth (Reference), use an LLM as Judge or Rule-Based Metric.
  • Choose the Judge model from the models registered in G-4. Register Gen & Judge Models. Embedding Metrics use the Embedding models registered on the same screen. Decision Models (Davi, Jev) are provided as DATUMO models.
  • Custom Metrics can define additional result columns to return alongside Score (e.g., Reason, Risk Level).

End-to-end evaluation flow

An evaluation feeds Benchmark Set data into an Application or Module, then scores the generated Output with Metrics to produce an Eval Result.

Diagram
  1. The Input values from the Benchmark Set are passed to the Application or Module.
  2. The Application or Module generates Output.
  3. Metrics score the Output. Depending on the Metric, Input and Reference are used too. Key Mapping specifies which columns feed into the Metric.
  4. The score and judgment rationale for each data item are saved as the Eval Result.

Example: how one data item is scored

Diagram
Data and scoring results

This shows how one data item in the Financial product lookup Task is evaluated.

ItemValue
query (Input)What happens to the interest if I close my Sample Term Deposit early?
response (Output)If you close it early, interest is calculated at the early withdrawal rate, not the contracted rate.
expected_response (Reference)The early withdrawal rate applies instead of the contracted rate.
MetricScoring criteriaResult
ExactMatch (Rule-Based)1.0 if the sentence exactly matches the ground truth, otherwise 0.00.0: wording differs, so no match
Similarity (LLM as Judge)Judges whether the core meaning matches the ground truth beyond wording differencesHigh score: same meaning

The answer means the same as the ground truth, but ExactMatch gives it 0 because the wording differs. Because the same answer can be scored differently depending on the Metric, choose Metrics that fit your evaluation's purpose, and attach several if needed.

Eval Results are saved with the values at evaluation time. Changing the Benchmark Set's Input or Reference or the Metric settings after an evaluation doesn't change existing results. Metadata, however, is shown with its latest values in Eval Result and the Dashboard.


Next steps

DocumentWhat it covers
E-1. Create & manage CriteriaHow to set up Criteria, Subgroups, and Tasks
E-2. Manage TasksHow to manage Task basics, Schema, Metrics, and Benchmark Sets
E-3. Manage Benchmark SetsHow to upload Benchmark Sets and generate data with AI
E-4. Add & manage MetricsDefault and Custom Metric types and how to add them, Key Mapping, Preview
E-5. Run EvalHow to run evaluation Runs and view their history
E-6. Eval HistoryHow to view evaluation results and manage Errors and Retries
E-7. DashboardHow to visualize and analyze evaluation results

Last updated