v4
latestOpenAPI 3.1.02026-08-01207318738.7 KBAI Eval
Create an eval prompt set
Create a new eval prompt set bound to a shared model. Initial prompts can be supplied; additional prompts can be added later via PATCH.
post/api/v1/ai/eval/prompt-sets
Request body
Example request
{
"description": "Regression suite for the orders topic",
"model_id": "880e8400-e29b-41d4-a716-446655440003",
"name": "Orders regression",
"prompts": [
{
"expectation": "The top product by revenue should be Aniseed Syrup.",
"prompt_text": "What are the top 5 products by revenue?"
}
],
"slug": "orders-regression"
}Response
Prompt set created successfully.
Example response
{
"prompt_set": {
"created_at": "2025-01-15T10:00:00.000Z",
"description": "Regression suite for the orders topic",
"id": "550e8400-e29b-41d4-a716-446655440000",
"model_id": "880e8400-e29b-41d4-a716-446655440003",
"name": "Orders regression",
"prompts": [
{
"created_at": "2025-01-15T10:00:00.000Z",
"expectation": "The top product by revenue should be Aniseed Syrup.",
"id": "770e8400-e29b-41d4-a716-446655440002",
"prompt_text": "What are the top 5 products by revenue?",
"updated_at": "2025-01-15T10:00:00.000Z"
}
],
"slug": "orders-regression",
"updated_at": "2025-01-15T10:00:00.000Z"
}
}