Run evaluators on an experiment’s results.
Authentication
- API key:
Authorization: Bearer <API key>
Path Parameters
The ID of the experiment to run evaluations on.
Request Body
{
"evaluator_slugs": [
"is_english"
]
}
Examples
import requests
experiment_id = "experiment_id_123"
url = f"https://api.keywordsai.co/api/experiments/{experiment_id}/run-evals"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"evaluator_slugs": [
"is_english"
]
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
Response
{
"status": "running",
"experiment_id": "experiment_id_123"
}