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"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.