create_dataset
Create datasets to store evaluation test cases with input and expected output pairs for LLM applications.
Instructions
Create a new dataset in the project.
Datasets are used to store evaluation test cases with input/expected output pairs.
Args:
ctx: Context object containing lifespan context with Langfuse client
name: Name for the new dataset (must be unique)
description: Optional description
metadata: Optional custom metadata
Returns:
A dictionary containing the created dataset details:
- id: Unique dataset identifier
- name: Dataset name
- description: Dataset description
- metadata: Custom metadata
- createdAt: Creation timestamp
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new dataset (must be unique in project) | |
| description | No | Optional description of the dataset | |
| metadata | No | Optional custom metadata as key-value pairs |