For the complete documentation index, see llms.txt. This page is also available as Markdown.

Evaluate a project before rollout

Check a workflow against representative cases before relying on it more widely. Generate the outputs, score them, and inspect individual failures as well as summary scores.

Understand the parts

Term
Meaning

Dataset

A collection of input cases, optionally with expected outputs.

Evaluator

A rule or model that scores an output.

Experiment

A fixed copy of dataset rows associated with a project version.

Node contract

The input keys and output-node IDs that the dataset and evaluator expect.

Generate

Run the workflow for the cases; optionally score the new outputs.

Score

Evaluate outputs that already exist, without generating them again.

Before you start

You need access to the project, dataset, and compatible evaluators, plus permission to execute the experiment. Generation runs the workflow and can call its integrations. Start with a small set of cases. LLM judges can incur model usage charges.

Prepare the cases and scoring rule

  1. Read the project and identify its input keys and output-node IDs.

  2. Create a dataset with evals_datasets_create, using a matching node_contract. Add rows with evals_dataset_rows_add if you did not include them at creation.

  3. Use evals_evaluators_list with compatible_with_dataset_id to find an existing scoring rule. Do not also supply an experiment compatibility filter.

  4. To create a rule, start with evals_evaluator_templates_list, preview the configuration on 1–3 samples, and save it with evals_evaluators_create. A scored verdict means scoring completed; it does not necessarily mean the answer passed your rule.

Create the experiment

Call evals_experiments_create with the dataset ID and a published project-version number:

Replace 1 with the intended published version. The dataset rows are copied into the experiment. Selecting draft instead creates a warning because the draft can still change. Evaluator definitions can also change; record which versions/configurations you use when comparing results.

Generate and score

For a new experiment, call evals_experiments_run in generate mode:

Supply evaluator IDs for this call even if you selected them when creating the experiment. An empty list generates outputs without scoring.

Keep the returned job_id. Poll evals_experiments_status using the same experiment and job IDs:

Read the result

Status
Next step

queued or running

Wait and poll the same job.

completed

Read the results and scores.

completed_with_failures

Inspect failed rows and scoring errors.

failed or cancelled

Inspect the job error and existing rows before deciding what to run next.

Unavailable status

Retry the status read, not the execution call.

Call evals_experiments_get with expand: ["rows"]. Follow rows_pagination.next_cursor until all results have been read. Compare scores with generated outputs, expected outputs, and error fields. Row counts alone do not establish job completion.

Score existing outputs again

Use mode: "score" only after outputs exist, for example to apply another compatible evaluator. Supply at least one evaluator ID and follow the new accepted job. This does not regenerate the workflow outputs.

Tool reference

Was this helpful?