Signature
Method signature onclient.datasets:
Parameters
string
required
Project ID with prefix
pp..string
Name of the dataset; defaults to
New Dataset."instruction" | "chat-sft"
Create typed fields and upload mappings with “chat-sft” (messages, tools, split, assistant, source_ref) or “instruction” (prompt, completion, split). Without a profile, uploaded rows are stored in the “uploaded” field.
Returns
Promise<Dataset>
A dataset within a project.
DatasetId
required
Dataset ID with prefix
ds..ProjectId
required
Project ID with prefix
pp..string
required
Name of the dataset.
Whether the dataset is hidden from ordinary dataset lists.
DatasetProfileStamp | null
required
Profile used to create the dataset fields, or null for a dataset without a profile.
string
required
Time the dataset was created, as an ISO 8601 timestamp.
Errors
HTTP errors throwPotatoApiError. The endpoint documents these error responses:
HTTP endpoint:
POST /projects/{projectId}/datasets.