Skip to main content

Create Finetuning Dataset

POST 

/projects/:project_id/finetuning/datasets

Create a new Finetuning Dataset. The schema for the source data is as follows:

CHAT_REPOSITORY_SCHEMA: RecordType = {
"type": "record",
"name": "ChatFormat",
"fields": [
{
"name": "messages",
"type": {
"type": "array",
"items": {
"type": "record",
"name": "Message",
"fields": [
{
"name": "role",
"type": {
"type": "enum",
"name": "Role",
"symbols": ["user", "assistant", "system"],
},
},
{"name": "content", "type": "string"},
],
},
},
}
],
}

Request

Responses

Successful Response