Create a dataset by uploading a file. See ['Dataset Creation'](https://docs.cohere.com/docs/datasets#dataset-creation) for more information.
Query parameters
namestringRequired
The name of the uploaded dataset.
typeenumRequired
The dataset type, which is used to validate the data. The only valid type is embed-input used in conjunction with the Embed Jobs API.
keep_original_filebooleanOptional
Indicates if the original file should be stored.
keep_fieldslist of stringsOptional
List of names of fields that will be persisted in the Dataset. By default the Dataset will retain only the required fields indicated in the [schema for the corresponding Dataset type](https://docs.cohere.com/docs/datasets#dataset-types). For example, datasets of type `embed-input` will drop all fields other than the required `text` field. If any of the fields in `keep_fields` are missing from the uploaded file, Dataset validation will fail.
optional_fieldslist of stringsOptional
List of names of fields that will be persisted in the Dataset. By default the Dataset will retain only the required fields indicated in the [schema for the corresponding Dataset type](https://docs.cohere.com/docs/datasets#dataset-types). For example, Datasets of type `embed-input` will drop all fields other than the required `text` field. If any of the fields in `optional_fields` are missing from the uploaded file, Dataset validation will pass.
text_separatorstringOptional
Raw .txt uploads will be split into entries using the text_separator value.
csv_delimiterstringOptional
The delimiter used for .csv uploads.
Request
This endpoint expects a multipart form with multiple files.
datafileRequired
The file to upload
eval_datafileOptional
An optional evaluation file to upload