create_dataset
create_datasetCreate a new dataset in Langfuse to organize and structure evaluation data for LLM applications. Define schemas for inputs and expected outputs, add metadata, and manage datasets for observability and analysis.
Instructions
Creates a new dataset in Langfuse. name is required. description is optional. metadataJson, inputSchemaJson, and expectedOutputSchemaJson must be valid JSON when provided. Returns the created dataset definition.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Dataset name. Required. | |
| description | Yes | Optional dataset description. | |
| metadataJson | Yes | Optional metadata object as JSON. | |
| inputSchemaJson | Yes | Optional JSON Schema for item inputs, encoded as JSON. | |
| expectedOutputSchemaJson | Yes | Optional JSON Schema for expected outputs, encoded as JSON. |