v1

latestOpenAPI 3.0.02026-07-268285163.6 KB
Evaluation Datasets

Add question to dataset

Adds a new question-answer pair to an existing dataset

post/datasets/{dataset_id}

Path parameters

dataset_idstring required

ID of the dataset to add the question to

Request body

questionstring required

The question text

answerstring required

The expected answer

Example request

{
  "question": "What are your business hours?",
  "answer": "We are open Monday to Friday, 9am to 5pm"
}

Response

Question successfully added

messagestring required

Response message

Example response

{
  "message": "Operation completed successfully"
}