Experiments
Create an experiment
Runs a pinned dataset snapshot through a target and scores every item with pinned evaluator versions, in the background. Everything that decides what the run means is resolved and pinned here: the snapshot (@latest may cut one), each evaluator version and judge model, and the target (a deployment; a model version, resolved to the fleet adapter’s versioned internal name or the single-model deployment serving exactly those weights; or none, which scores recorded outputs). Poll GET /v1/experiments/, or subscribe to the experiment.completed webhook.
POST
/
v1
/
experiments
Create an experiment
curl --request POST \
--url https://api.veri.studio/v1/experiments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"dataset": "<string>",
"target": {
"deployment_id": "<string>",
"kind": "deployment",
"model": "<string>"
},
"evaluators": [
"<string>"
],
"bindings": "<unknown>",
"generation": {
"temperature": 123,
"max_tokens": 123
},
"trials": 123,
"baseline_experiment_id": "<string>"
}
'import requests
url = "https://api.veri.studio/v1/experiments"
payload = {
"name": "<string>",
"dataset": "<string>",
"target": {
"deployment_id": "<string>",
"kind": "deployment",
"model": "<string>"
},
"evaluators": ["<string>"],
"bindings": "<unknown>",
"generation": {
"temperature": 123,
"max_tokens": 123
},
"trials": 123,
"baseline_experiment_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
dataset: '<string>',
target: {deployment_id: '<string>', kind: 'deployment', model: '<string>'},
evaluators: ['<string>'],
bindings: '<unknown>',
generation: {temperature: 123, max_tokens: 123},
trials: 123,
baseline_experiment_id: '<string>'
})
};
fetch('https://api.veri.studio/v1/experiments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"name": "<string>",
"status": "<string>",
"dataset_id": "<string>",
"dataset_snapshot_id": "<string>",
"target": {},
"evaluators": [
{
"evaluator_id": "<string>",
"version": 123,
"name": "<string>",
"scope": "<string>",
"method": "<string>",
"judge_model": "<string>"
}
],
"bindings": {},
"generation": {
"temperature": 123,
"max_tokens": 123
},
"trials": 123,
"items_total": 123,
"items_done": 123,
"created_at": "2023-11-07T05:31:56Z",
"target_deployment_id": "<string>",
"target_model": "<string>",
"target_model_version_id": "<string>",
"target_served_model": "<string>",
"aggregates": {},
"passed": true,
"baseline_experiment_id": "<string>",
"diff": {},
"error": "<string>",
"created_by": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z"
}Authorizations
Body
application/json
Response
Accepted (status queued); items are materialized
One experiment.
Create an experiment
curl --request POST \
--url https://api.veri.studio/v1/experiments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"dataset": "<string>",
"target": {
"deployment_id": "<string>",
"kind": "deployment",
"model": "<string>"
},
"evaluators": [
"<string>"
],
"bindings": "<unknown>",
"generation": {
"temperature": 123,
"max_tokens": 123
},
"trials": 123,
"baseline_experiment_id": "<string>"
}
'import requests
url = "https://api.veri.studio/v1/experiments"
payload = {
"name": "<string>",
"dataset": "<string>",
"target": {
"deployment_id": "<string>",
"kind": "deployment",
"model": "<string>"
},
"evaluators": ["<string>"],
"bindings": "<unknown>",
"generation": {
"temperature": 123,
"max_tokens": 123
},
"trials": 123,
"baseline_experiment_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
dataset: '<string>',
target: {deployment_id: '<string>', kind: 'deployment', model: '<string>'},
evaluators: ['<string>'],
bindings: '<unknown>',
generation: {temperature: 123, max_tokens: 123},
trials: 123,
baseline_experiment_id: '<string>'
})
};
fetch('https://api.veri.studio/v1/experiments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"name": "<string>",
"status": "<string>",
"dataset_id": "<string>",
"dataset_snapshot_id": "<string>",
"target": {},
"evaluators": [
{
"evaluator_id": "<string>",
"version": 123,
"name": "<string>",
"scope": "<string>",
"method": "<string>",
"judge_model": "<string>"
}
],
"bindings": {},
"generation": {
"temperature": 123,
"max_tokens": 123
},
"trials": 123,
"items_total": 123,
"items_done": 123,
"created_at": "2023-11-07T05:31:56Z",
"target_deployment_id": "<string>",
"target_model": "<string>",
"target_model_version_id": "<string>",
"target_served_model": "<string>",
"aggregates": {},
"passed": true,
"baseline_experiment_id": "<string>",
"diff": {},
"error": "<string>",
"created_by": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z"
}
