Dataset
Adapt a dataset (deprecated)
Changed onDeprecated alias of POST /datasets/{dataset_id}/adapt, kept for existing clients. Use POST /datasets/{dataset_id}/adapt in new code.
post/api/v1/datasets/{dataset_id}/run
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
dataset_idstring required
Request body
Example request
{
"column_mapping": {
"prompt": "instruction",
"completion": "response",
"chat": "messages",
"context": [
"context"
],
"universal_prompt": "Reframe the following passage as a clear, factual question.",
"image": "image_column"
},
"recipe_specification": {
"version": "2026-04",
"recipes": {
"prompt_rephrase": true,
"deduplication": true
}
},
"brand_controls": {
"length": "concise",
"safety_categories": [
"harassment",
"hate"
],
"hallucination_mitigation": true,
"blueprint": "All generated text must be written exclusively in Brazilian Portuguese (pt-BR)."
},
"training_type": "instruction_dataset",
"translate": {
"languages": [
"es",
"fr"
],
"sample_rate": 0.25
},
"localize": {
"pairs": [
{
"country": "ES",
"language": "ca"
}
],
"sample_rate": 0.25
},
"expand": {
"similar_rows": 500,
"domain_rows": 3000,
"general_rows": 1000
},
"language_expansion": {
"type": "translate",
"languages": [
"es",
"fr"
],
"pairs": [
{
"country": "ES",
"language": "ca"
}
],
"sample_rate": 0.25
}
}Response
Example response
{
"run_id": "dataset-550e8400-e29b-41d4-a716-446655440000-1712234567890"
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
request property
deprecated
- info
- info
endpoint deprecated
- info