Skip to main content
Use the GraphQL API to create evaluation sets, run them, and read the results. Evaluation sets use the same endpoint and API key authentication as the rest of the GraphQL API.
The WisdomAI SDK does not support evaluation sets. To manage evaluation sets in the WisdomAI UI instead, see Use Evaluations Sets and Runs.

Create, run, and read results

The caller needs evaluation permissions on the domain. See Permissions.
1

Get a token

Exchange your access key for a JWT token. See Exchange Access Token for details.
2

Create an evaluation set

Send the token in the Authorization header. Every other request on this page uses the same endpoint and headers, so the steps below show only the GraphQL operation and its variables.
See createEvalSet.
3

Run it

The mutation returns a run group ID. See runEvaluation.
4

Get the runs

See evaluationRunGroup.
5

Read the results

Pass a run ID to evaluationRun to get the score and result for each turn.

Optional features

  • Drafts: Pass draftId to createEvalSet to stage the set on a domain draft, or to runEvaluation to run against the draft version of the domain.
  • Selected cases: Pass evaluationCaseIds to runEvaluation to run only some cases. Use the IDs from caseIds on the evaluation set.
  • Custom grading: Set customGradingInstructions on the set, or gradingInstructions on a turn. Add assertions to a turn to grade plain-language criteria.
  • Scheduling: Use scheduleEvalSet to run a set on a cron schedule, and pauseScheduledEval to pause it.
  • Locking: Use setEvalSetLocked to lock a set against changes.

Permissions

These permissions typically match write access to the domain.

Operations

For the objects, input types, and enums, see Evaluation data types.