Skip to main content

Overview

The create() method allows you to create a new dataset for organizing and managing collections of logs. Datasets serve as containers for grouping related conversations and interactions.

Method Signature

Synchronous

Asynchronous

Parameters

str
required
The name of the dataset. Should be descriptive and unique.
str
A detailed description of the dataset’s purpose and contents.
Dict[str, Any]
Additional metadata to store with the dataset for organization and filtering.

Returns

Returns a Dataset object with the following structure:

Examples

Basic Dataset Creation

Dataset with Metadata

Multiple Dataset Creation

Async Dataset Creation

Batch Async Creation

Domain-Specific Examples

Customer Support Dataset

Educational Content Dataset

Product Documentation Dataset

A/B Testing Dataset

Error Handling

Basic Error Handling

Comprehensive Error Handling

Validation and Best Practices

Input Validation

Naming Conventions

Template-Based Creation

Common Use Cases

Research Dataset

Production Monitoring Dataset

Compliance Dataset