> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://humanloop.com/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://humanloop.com/docs/_mcp/server.

> Learn how to create Datasets in Humanloop to define fixed examples for your projects, and build up a collection of input-output pairs for evaluation and fine-tuning.

[Datasets](/docs/explanation/datasets) are a collection of input-output pairs that can be used to evaluate your Prompts, Tools or even Evaluators.

This guide will show you how to create Datasets in Humanloop from your Logs.

### Prerequisites

You should have an existing [Prompt](/docs/explanation/prompts) on Humanloop and already generated some [Logs](/docs/explanation/logs).
Follow our guide on [creating a Prompt](../prompts/create-prompt).

## Steps

To create a Dataset from existing Logs:

### Navigate to the **Logs** of your Prompt

Our Prompt in this example is a Support Agent that answers user queries about Humanloop's product and docs:

![Navigate to the Logs table of your Prompt.](/docs/_fern-img/5a7fe5792bd9cc5c4853d28dd06314822b615caf3cf0f865c13d7e40442b2e4d.webp)

### Select a subset of the Logs to add

Filter logs on a criteria of interest, such as the version of the Prompt used, then multi-select Logs.

In the menu in the top right of the page, select **Add to Dataset**.

![Filter and select logs of interest.](/docs/_fern-img/07482afa1f6a4330a08fe232bce34dc4fcc30e2cf356dd0d9db10e4126b48269.webp)

### Add to a new Dataset

Provide a name for the new Dataset and click **Create** (or you can click **add to existing Dataset** to append the selection to an existing Dataset).
Then you can optionally add a version name. A description is pre-filled with details from the source Logs — you can edit this to add more context about
the new version if you’d like.

![Create a new dataset from logs.](/docs/_fern-img/0c5ffa7ec4fd14d32c3498753252ad00ec27c561acab743c1d79bf2a24e8ac8a.webp)

You will then see the new Dataset appear at the same level in the filesystem as your Prompt.

## Next steps

🎉 Now that you have Datasets defined in Humanloop, you can leverage our [Evaluations](./overview) feature to systematically measure and improve the performance of your AI applications.
See our guides on [setting up Evaluators](./llm-as-a-judge) and [Running an Evaluation](/docs/guides/evals/run-evaluation-ui) to get started.

For different ways to create datasets, see the links below:

* [Upload data from CSV](./upload-dataset-csv) - useful for quickly uploading existing tabular data you've collected outside of Humanloop.
* [Upload via API](./create-dataset-api) - useful for uploading more complex Datasets that may have nested JSON structures, which are difficult to represent in tabular .CSV format, and for integrating with your existing data pipelines.