Associate a dataset with a model for RAG.
JWT token from Stytch B2B authentication (magic link, SSO, or M2M)
Model ID
"model_abc123"
Schema for associating a dataset with a model.
ID of the dataset to associate with the model
1 - 255"550e8400-e29b-41d4-a716-446655440001"
How the dataset is used with the model. Currently only 'rag' (Retrieval Augmented Generation) is supported.
1 - 20"rag"
Specific dataset version to pin. If null, the model will always use the latest version (dynamic). If set, the model is pinned to that version.
255"550e8400-e29b-41d4-a716-446655440003"
Priority for this dataset when multiple datasets are associated. Higher priority datasets are searched first. Range: 0-100.
0 <= x <= 1000
1
10
Successful Response
Schema for model-dataset association response.
ID of the model
"550e8400-e29b-41d4-a716-446655440000"
ID of the associated dataset
"550e8400-e29b-41d4-a716-446655440001"
How the dataset is used
"rag"
Priority for this dataset
0
1
10
When the association was created
"2025-10-18T06:33:19Z"
When the association was last updated
"2025-10-18T06:33:19Z"
Specific dataset snapshot ID (null = use latest, value = pinned)