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

# Hugging Face datasets

> Query Hugging Face dataset repositories by file or by split.

Use the synthetic customer-service dataset `chowderai/cust-convo` for conversation analytics. It contains 71,314 rows with `convo_id` and `convo_transcript`, released under CC BY-NC 4.0.

## Query declared Parquet files

This form reads the dataset's existing files directly:

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    convo_id,
    convo_transcript
FROM read_parquet('hf://datasets/chowderai/cust-convo/data/*.parquet')
LIMIT 3;
```

## Query a hosted split

A bare Hugging Face dataset URI resolves a hosted tabular view. This example queries the public upstream Amazon review dataset from which the 1,000-row demo sample was selected:

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    title,
    tokens(content) AS token_count
FROM 'hf://datasets/fancyzhx/amazon_polarity/train'
LIMIT 5;
```

No DataFrame registration is required. Chowder uses the Hub's converted Parquet files when they're available. Otherwise, it reads the repository's own Parquet files, following the dataset's data-file layout.

## URI form

```text theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
hf://datasets/<owner>/<repository>
hf://datasets/<owner>/<repository>/<subset-or-split>
hf://datasets/<owner>/<repository>/<subset>/<split>
```

A single segment names a split, or a subset that has only one split. Otherwise use `<subset>/<split>`, such as `hf://datasets/nyu-mll/glue/mrpc/train`. A bare repository works when the subset and split are unambiguous. When a dataset has several subsets, Chowder uses the one named `default` if it exists. When it has several splits, Chowder reports the choices rather than picking one. Use an explicit reader such as `read_parquet` for file paths, and the bare form for subsets and splits.

## Authentication

Public datasets can be queried anonymously when Hugging Face permits it. For private or gated data, set `HF_TOKEN` or authenticate with:

```bash theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
hf auth login
```

Accept any gated access conditions first. Keep tokens outside your SQL. Dataset-specific licenses still apply when an object is publicly accessible.


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