Generate Synthetic Dataset
Generate Synthetic Dataset
POSThttps://lastmileai.dev/api/2/auto_eval/dataset/generate_synthetic
Generate a synthetic dataset from uploaded file contents
Request
- application/json
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
Responses
- 200
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Authorization: http
name: BearerAuthtype: httpscheme: bearerbearerFormat: JWT
- curl
- python
- javascript
- CURL
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"
}
}'
ResponseClear