Skip to main content
Score existing answers with a released dataset and a Python evaluator, then export a verifiable CSV report. This example uses Data mode and requires no deployed runtime. Use an account with evaluation permissions, Bash and jq. Configure CLI credentials for the account and set ACCOUNT_ID to its main account ID. Run these commands in the same Bash session and working directory.

Choose a workspace

Set WORKSPACE_ID to an authorized workspace ID from the results. The remaining steps create resources in this workspace.

Create and publish a dataset

Uploaded cases are stored in the evaluation workspace. Use data approved for evaluation.
Writing cases requires the schema revision. Publishing requires the content revision read after the write. The experiment uses the resulting fixed version ID.

Publish a Python evaluator

Save the following evaluator as judge.py. It checks whether an answer is nonempty and returns a score, a label and a reason.

Create and start an experiment

Map the dataset field answer to the evaluator parameter with the same name. Pin both releases so future runs use the same inputs and scoring rule.
Starting a run consumes evaluation resources. Agent evaluators and inference mode also call the model or target service and may incur charges.

Check results and export CSV

Repeat the report query at intervals until the status is Succeeded, Failed or Stopped and IsPartial is false. Inspect individual scores with a case ID and experiment run case get. Failed runs can also be exported.
The download and verification use curl and shasum. Download before ExpiresAt and protect the response containing the signed URL. After verification, report.csv holds the snapshot for that run.
Last modified on November 30, 2026