v1

latestOpenAPI 3.0.02026-07-268285163.6 KB
Evaluation Datasets

Create a new dataset

Creates a new dataset with questions and answers for evaluations

post/datasets

Request body

namestring required

Name of the dataset

Example request

{
  "name": "Customer Support Questions",
  "data": [
    {
      "question": "How do I reset my password?",
      "answer": "Go to settings and click on password reset"
    }
  ]
}

Response

Dataset successfully created

messagestring required

Success message

Example response

{
  "dataset": {
    "_id": "672e46edaaaa5b7d9085e852",
    "updatedAt": "2025-03-21T08:05:17.028Z",
    "createdAt": "2024-11-08T17:14:21.989Z",
    "name": "Customer Support Questions",
    "user_id": "5d4ae69ef5dc79b3d4ca5ad3",
    "data": [
      {
        "_id": "3631731086061988123",
        "question": "How do I reset my password?",
        "answer": "Go to settings and click on password reset"
      }
    ]
  },
  "message": "Dataset has been successfully created"
}