> ## Documentation Index
> Fetch the complete documentation index at: https://benchgen.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add a Dataset

> Register a training dataset by importing it from HuggingFace or uploading your own file.

Every training run needs a dataset. Adding one is a quick two-part flow: give the dataset a name, then choose where its data comes from. You can import a public dataset from HuggingFace or upload your own file.

## Two ways to add a dataset

| Source | Use when | What you provide |
| - | - | - |
| **From HuggingFace** | You want a public dataset from the Hub. | A search term, then pick the dataset from the results. |
| **Upload File** | You have your own data. | Your dataset file. |

> [!NOTE]
>
> Datasets exported from an Eval benchmark run show up automatically under the **Fine-tune** filter, so you don't need to add those by hand. See [Export datasets to Train](https://benchgen.com/docs/eval/export-datasets.md).

> [!NOTE]
>
> A dataset can also be built from an OpenClaw agent's own traces instead of HuggingFace or a file upload, see [Build a dataset from OpenClaw agent traces](#build-a-dataset-from-openclaw-agent-traces) below.

## Steps

### 1. Open the Datasets page and click Add Dataset

In the **Train** tab, click **Datasets** in the left sidebar. The **AI Datasets** page lists your datasets, filterable by **Public Library**, **My Datasets**, and **Fine-tune**. Click **+ Add Dataset** in the top right.

![The AI Datasets page with the Add Dataset button](https://mintcdn.com/benchgen-8fc81371/JrpW9W5H7MKVocNa/images/train/dataset/01-datasets-list.jpg?fit=max\&auto=format\&n=JrpW9W5H7MKVocNa\&q=85\&s=4a9b65c3e9889bda9230121ec72b1976)

The AI Datasets page with the Add Dataset button

### 2. Enter the basic details

The **Add Dataset** panel slides in. Give the dataset a **name** (for example `my-math-dataset`) and, optionally, a short **description**. You can edit the description later.

Click **Add Dataset** to continue. You'll choose where the data comes from on the next step.

![The Add Dataset panel with the dataset name and description fields](https://mintcdn.com/benchgen-8fc81371/JrpW9W5H7MKVocNa/images/train/dataset/02-basic-details.jpg?fit=max\&auto=format\&n=JrpW9W5H7MKVocNa\&q=85\&s=88159da9507f7540be73ab853b7b77f7)

The Add Dataset panel with the dataset name and description fields

> [!TIP]
>
> Use a name you'll recognize later when selecting a dataset for a training run. Avoid throwaway names like `test1`.

### 3. Choose where the data comes from

The dataset is created in a **Draft** state and opens to its card. The **Add Dataset** card prompts you to choose a source. Pick one of the two tabs.

#### Option A — Import from HuggingFace

On the **From HuggingFace** tab, type a dataset name into **Search HuggingFace datasets**. Matching datasets appear with their download count, language, and license tags. Click the one you want.

![Searching HuggingFace for a dataset](https://mintcdn.com/benchgen-8fc81371/FddC5uLEIMRz8cT0/images/train/dataset/03-source-huggingface.jpg?fit=max\&auto=format\&n=FddC5uLEIMRz8cT0\&q=85\&s=da6258cbac41bd88db6f5f92d2480b5c)

Searching HuggingFace for a dataset

The selected dataset shows as a chip, and the **Add dataset** button becomes active. Click **Add dataset** to import it.

![A HuggingFace dataset selected with the Add dataset button enabled](https://mintcdn.com/benchgen-8fc81371/JrpW9W5H7MKVocNa/images/train/dataset/04-dataset-selected.jpg?fit=max\&auto=format\&n=JrpW9W5H7MKVocNa\&q=85\&s=67323bf8a60d3049443c90061cf4bfe7)

A HuggingFace dataset selected with the Add dataset button enabled

#### Option B — Upload a file

On the **Upload File** tab, upload your own dataset file, then click **Add dataset**. The upload flow is the same drag-and-drop area used to [add a model](https://benchgen.com/docs/eval/add-a-model.md#option-a-%E2%80%94-upload-a-file), just for a dataset file instead of a model archive.

### 4. Confirm the dataset is ready

BenchGen registers the dataset and fills in its card with details such as **Rows**, **Columns**, **Splits**, download size, and update dates. The status badge reflects the source (for example **HuggingFace**).

![The dataset card after import, showing row, column, and split details](https://mintcdn.com/benchgen-8fc81371/FddC5uLEIMRz8cT0/images/train/dataset/05-dataset-ready.jpg?fit=max\&auto=format\&n=FddC5uLEIMRz8cT0\&q=85\&s=1ea40da9d5e16b1cccb94c8a4bf6eab2)

The dataset card after import, showing row, column, and split details

Open the **Data** tab to preview the actual rows before using the dataset in a training run.

![The Data tab showing a paginated table of question and answer columns for the gsm8k dataset](https://mintcdn.com/benchgen-8fc81371/JrpW9W5H7MKVocNa/images/train/dataset/06-dataset-preview.jpg?fit=max\&auto=format\&n=JrpW9W5H7MKVocNa\&q=85\&s=a3db60e17e25b956a2305f70279e024f)

The Data tab previewing rows and columns for the gsm8k dataset

Your dataset now appears in the **Datasets** list and is available to select when you configure a training run.

## Build a dataset from OpenClaw agent traces

Datasets don't only come from HuggingFace or a file upload. If you've [connected an OpenClaw agent](https://benchgen.com/docs/agentspace/connect-openclaw-agent.md), its real conversation turns are raw material too: select the ones you want on the agent's **Traces** tab and click **Add to dataset**, picking an existing dataset or naming a new one.

![Three chat turns selected on the Traces tab with the Add to dataset dialog open, naming a new dataset agent-chat-demo](https://mintcdn.com/benchgen-8fc81371/oXzVpf1EVd5pntSt/images/agentspace/openclaw/06-traces-add-to-dataset.png?fit=max\&auto=format\&n=oXzVpf1EVd5pntSt\&q=85\&s=3c8596ff900093696e20464276cbfd51)

Three chat turns selected on the Traces tab, with Add to dataset open and a new dataset being created

Each selected trace becomes one dataset item, and the dataset is catalogued here under **Datasets** with a **Traces** badge, one **Data** row per trace, and a link back from every item to the trace it came from. It's pickable in the training form exactly like any other dataset on this page.

See [Datasets from an OpenClaw Agent](https://benchgen.com/docs/agentspace/datasets-openclaw-agent.md) for the full walkthrough.

## Next Steps

> [card] [Fine-tune a Model](https://benchgen.com/docs/train/fine-tune-a-model.md)
>
> Use your dataset in a training run.

> [card] [Export Datasets → Train](https://benchgen.com/docs/eval/export-datasets.md)
>
> Turn benchmark failures into training data.

> [card] [Datasets from an OpenClaw Agent](https://benchgen.com/docs/agentspace/datasets-openclaw-agent.md)
>
> Build a dataset straight from an agent's real traces.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.