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

# Dataset Service

> Dataset Service API methods in the Galtea SDK

The Dataset Service in the Galtea SDK allows you to manage [datasets](/concepts/product/dataset) for evaluating your products.
This Service is exposed by the `galtea.datasets` object.

<Info>
  Remember that we will be using the `galtea` object. More information [here](/sdk/api/galtea).
</Info>

## Quick Example

First, initialize the Galtea SDK:

```python theme={"system"}
galtea = Galtea(api_key="YOUR_API_KEY")
```

Create a dataset:

```python theme={"system"}
dataset = galtea.datasets.create(
    name=dataset_name,
    type="ACCURACY",
    product_id=product_id,
    ground_truth_file_path="path/to/knowledge.md",
    language="english",
    max_test_cases=5,
)
```

List datasets for a product:

```python theme={"system"}
datasets = galtea.datasets.list(product_id=product_id, limit=10)
```

Get a dataset by ID:

```python theme={"system"}
dataset = galtea.datasets.get(dataset_id=dataset_id)
```

## Service Methods

* [Create Dataset](/sdk/api/dataset/create)
* [Listing Datasets](/sdk/api/dataset/list)
* [Retrieving Dataset](/sdk/api/dataset/get)
* [Retrieving Dataset By Name](/sdk/api/dataset/get-by-name)
* [Updating Dataset](/sdk/api/dataset/update)
* [Deleting Dataset](/sdk/api/dataset/delete)
* [Downloading Dataset](/sdk/api/dataset/download)

## Related

<Card title="Dataset" icon="clipboard-list" iconType="solid" href="/concepts/product/dataset">
  A dataset of test cases for evaluating product performance
</Card>
