Experiments
Create an experiment
Create a new experiment. Empty experiments are not allowed.
An experiment belongs to a space and may optionally be associated with a dataset.
Experiments are composed of "runs". Each experiment run (JSON object) must include an output field containing the task's output. When the experiment is associated with a dataset, each run must also include an example_id referencing an example in that dataset.
Payload Requirements
- Provide exactly one of dataset_id or space_id.
- The name must be unique within the dataset it's associated with, or within the space when it isn't associated with a dataset.
- Provide at least one run in experiment_runs.
- Each run must include:
- output -- model/task output for the run
- example_id -- the ID of an existing example in the dataset, required only when the experiment is associated with a dataset
- You may include any additional fields per run that can be used for analysis or filtering. For example: model, latency_ms, temperature, prompt, tool_calls, etc.
<Note>This endpoint is in beta, read more here.</Note>
post/v2/experiments
Request body
Response
An experiment object