Run evaluators on a dataset

Create dataset evaluation tasks for one or more evaluators.

Authentication

AuthorizationBearer

Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.

Path parameters

dataset_idstringRequired
Dataset ID.

Request

This endpoint expects an object.
evaluator_idslist of stringsRequired
Evaluator IDs to run against the dataset.
experiment_idstringOptional
Optional experiment to associate with the evaluation runs.
generation_methodstringOptional

Optional generation strategy. Defaults to auto.

Response

Evaluation tasks created.
created_taskslist of objects
errorsmap from strings to any
experiment_updatedboolean
experiment_evaluator_idslist of strings

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error