Datasets
Create a dataset
Creates a dataset
POST
/
api
/
datasets
Authorization
Header
Body
curl --request POST \
--url https://app.baseplate.ai/api/datasets \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"columns": [
{}
],
"metadata_cols": [
{}
],
"image_cols": [
{}
],
"hybrid": true
}'
Creates a dataset
The dataset will be created in the organization of the caller.
Parameters
Header
Authorization
string
requiredBaseplate API key. Needs to be in the format βBearer &BASEPLATE_API_KEYβ
Content-Type
string
Use application/json
Body
name
string
Name of the dataset
description
string
Description for the dataset
columns
Array
Array of strings for column names. The default text embedding column will be added if not provided.
metadata_cols
Array
Array of strings for metadata columns.
image_cols
Array
Array of strings for image columns.
hybrid
Boolean
If true, this will create a hybrid search dataset.
π’ 200: OK
π 401: Unauthorized
{
"id": "7a966cc7-62ea-41a7-a3bc-81cba234438f",
"created_at": "2023-03-07T18:34:51.217059+00:00",
"name": "Example Name",
"description": "Example Description",
"columns": ["col1", "col2", "text"],
"metadata_cols": ["date", "time"],
"organization_id": "c86cb775-2d6d-4a77-b119-3bc96e5c7a2e"
}
curl --request POST \
--url https://app.baseplate.ai/api/datasets \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"columns": [
{}
],
"metadata_cols": [
{}
],
"image_cols": [
{}
],
"hybrid": true
}'