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.
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
With
generateNewConversations set to true, each data item produces numSamplesPerItem new conversations. Each one keeps the original’s subject but makes a different request, and the assistant avoids the original’s mistakes. With false, each data item produces one corrected version of itself, and numSamplesPerItem is ignored. See Generate from failure modes.
Data items that called tools are skipped unless agenticInferenceConfig sets tool implementations.
AGENTICINFERENCECONFIG
Makes the synthesis model call tools and, optionally, continue each conversation with a simulated user. Omit it for plain single-turn synthesis. Generate completions and evaluation requests take the same object. For how-tos, see synthesis and evaluations.
An empty
agenticInferenceConfig behaves the same as omitting it.
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.- Each tool name can be served by at most one tool implementation in
agenticInferenceConfig.toolImplementations. - Document Q&A synthesis does not accept tool implementations.
maxUserTurnsrequiresuserModelSpec.- A job that attaches an interactive tool implementation must set
userModelSpec. - When tool implementations are attached, the synthesis model must support tool calling.
guidedDecodingis not supported for synthesis.