OVERVIEW
A synthesis recipe defines how Oumi generates a dataset. This page describes the request body used to create one. For complete general and improved-sample requests, see Synthesis recipes.REQUEST
RECIPECONFIG
When
datasetId is set, the validation and test fractions must be 0. Each item in environments contains an environmentId. Environment tools require general synthesis with a multiturnAttributes entry.
MODELIDENTIFIER
Synthesis accepts hosted models.modelType accepts ANTHROPIC_API, OPENAI_API, GEMINI_API, VERTEX_API, or OUMI_API.
INFERENCECONFIG
SYNTHESISCONFIG
synthesisType selects one of the following configurations.
GENERAL
strategyParams supports these fields:
Each
inputData item contains either datasetId or datasourceId. It may also contain attributeMap.
DOCUMENT Q&A
segmentationConfig accepts segmentationType, tokenizer, segmentSize, and segmentOverlap. The only current segmentation type is tokens.
IMPROVED SAMPLES
When
generateNewConversations is false, numSamplesPerItem is ignored.
DATASETDISTRIBUTION
The three fractions must sum to
1.0.
DOCUMENT Q&A EXAMPLE
VALIDATION RULES
- Synthesis accepts hosted model identifiers only.
- Positive integer IDs and sample counts must be greater than
0. numSamplesmust cover every nonzero dataset split.combinationSamplingrates must sum to no more than1.0.- Environment tool names must be unique across selected environments.
guidedDecodingis not supported for synthesis.