Datasets
Manage datasets, file uploads, direct/streaming downloads, dataset planning, and synthetic dataset generation using the Knowledgator TypeScript SDK.
Available Modules
- List Datasets — Retrieve a paginated list of datasets.
- Create Dataset — Create a new dataset record with optional file upload.
- Get Dataset — Get metadata and status for a specific dataset.
- Update Dataset — Update dataset name or short description.
- Delete Dataset — Delete a dataset permanently.
- Upload Dataset File — Upload an annotation file to an existing dataset.
- Download Dataset — Download a dataset directly to disk, parse into memory, or stream chunk-by-chunk.
- List Formats — List supported dataset formats.
- Generate Dataset Plan — Generate a structured schema and sample plan from a prompt.
- Generate Dataset — Start an asynchronous synthetic dataset generation pipeline.
Quickstart
import { createClient } from '@knowledgator/typescript-sdk';
const kg = createClient('YOUR_API_KEY');
const datasets = await kg.datasets.list();
console.log(datasets);