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 See createEvalSet.
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.3
Run it
4
Get the runs
5
Read the results
Pass a run ID to evaluationRun to get the score and result for each turn.
Optional features
- Drafts: Pass
draftIdtocreateEvalSetto stage the set on a domain draft, or torunEvaluationto run against the draft version of the domain. - Selected cases: Pass
evaluationCaseIdstorunEvaluationto run only some cases. Use the IDs fromcaseIdson the evaluation set. - Custom grading: Set
customGradingInstructionson the set, orgradingInstructionson a turn. Addassertionsto 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.