POST
/
api
/
datasets
curl --request POST \
  --url https://app.baseplate.ai/api/datasets \
  --header 'Authorization: Bearer <token>' \
  --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

Authorization
string
required

Baseplate 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.

{
  "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"
}