Skip to main content

Generate Synthetic Dataset

Generate Synthetic Dataset

POST 

https://lastmileai.dev/api/2/auto_eval/dataset/generate_synthetic

Generate a synthetic dataset from uploaded file contents

Request

Body

    datasetId stringrequired

    The ID of the dataset to generate data for

    uploadId stringrequired

    The ID of the upload created for the file

    config

    object

    required

    baseEvaluationMetric BaseEvaluationMetric (string)required

    Keep in sync with www/prisma/schema.prisma:AEBaseEvaluationMetric

    Possible values: [BASE_EVALUATION_METRIC_UNSPECIFIED, BASE_EVALUATION_METRIC_FAITHFULNESS, BASE_EVALUATION_METRIC_RELEVANCE, BASE_EVALUATION_METRIC_TOXICITY, BASE_EVALUATION_METRIC_QA, BASE_EVALUATION_METRIC_SUMMARIZATION]

Responses

Successful operation

Schema

    object

Authorization: http

name: BearerAuthtype: httpscheme: bearerbearerFormat: JWT
curl -L 'https://lastmileai.dev/api/2/auto_eval/dataset/generate_synthetic' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"datasetId": "string",
"uploadId": "string",
"config": {
"baseEvaluationMetric": "BASE_EVALUATION_METRIC_UNSPECIFIED"
}
}'
Request Collapse all
Base URL
https://lastmileai.dev
Auth
Body
{
  "datasetId": "string",
  "uploadId": "string",
  "config": {
    "baseEvaluationMetric": "BASE_EVALUATION_METRIC_UNSPECIFIED"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!