Add rows to a dataset from the curated pool
POST/api/v1/datasets/{dataset_id}/augment
Retrieves additional rows matching this dataset and returns them as a new dataset, leaving this one unchanged. The new dataset carries this dataset’s rows alongside the retrieved ones, so it can be trained on or downloaded directly. Poll GET /datasets/{dataset_id}/status on the returned id until it reaches succeeded. Set estimate=true to price the request without starting a run.
Body ParametersJSON
domain_rows: optional number
How many additional rows to retrieve from topics matching this dataset. Defaults to 0.
minimum0
maximum100000
general_rows: optional number
How many additional rows to retrieve from other topics, to broaden the dataset. Defaults to 0.
minimum0
maximum100000
Add rows to a dataset from the curated pool
curl https://api.prod.adaptionlabs.ai/api/v1/datasets/$DATASET_ID/augment \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $ADAPTION_API_KEY" \
-d '{
"domain_rows": 3000,
"general_rows": 1000,
"training_type": "instruction_dataset"
}'{
"dataset_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "running",
"estimated_credits_consumed": 40,
"estimate": true
}Returns Examples
{
"dataset_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "running",
"estimated_credits_consumed": 40,
"estimate": true
}