> ## 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.

# Choose a data source

> Choose the reader that defines row grain and the location that supplies the data.

Most examples use the centralized `chowderai/chowder-demo` bucket. The customer-service examples deliberately use `chowderai/cust-convo`. Each dataset retains its own license and attribution.

Every Chowder source has two independent parts:

1. The **reader** determines the table’s schema and what each row represents.
2. The **location** determines where the data lives and how Chowder accesses it.

For example, `read_documents` always produces one row per PDF page whether the file is local, in object storage, or in a Hugging Face bucket.

## Query a path directly

Put a file path or glob in single quotes after `FROM`. Chowder selects the reader from the extension:

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    title,
    content
FROM 'hf://buckets/chowderai/chowder-demo/parquet/data/amazon-reviews/*.parquet'
LIMIT 5;
```

The same syntax works for local files and supported remote file URIs, including PDFs, images, video, and audio. Use a glob with a recognized extension, such as `*.pdf` or `*.jpg`. Use an explicit reader for a directory, an extensionless path, or reader-specific parameters. See [automatic reader selection](https://docs.chowder.ai/reference/table-functions/overview.md#automatic-reader-selection).

## Choose a reader

| Data | Reader | Row grain |
| - | - | - |
| PDF documents | [`read_documents`](https://docs.chowder.ai/reference/table-functions/read-documents) | Page |
| Images | [`read_images`](https://docs.chowder.ai/reference/table-functions/read-images) | Encoded image |
| Video | [`read_videos`](https://docs.chowder.ai/reference/table-functions/read-videos) | Sampled time window |
| Audio | [`read_audio`](https://docs.chowder.ai/reference/table-functions/read-audio) | Time window |
| Text and logs | [`read_text`](https://docs.chowder.ai/reference/table-functions/read-text) | Line |
| JSON | [`read_json`](https://docs.chowder.ai/reference/table-functions/read-json) | JSON object |
| CSV | [`read_csv`](https://docs.chowder.ai/reference/table-functions/read-csv) | Record |
| Parquet | [`read_parquet`](https://docs.chowder.ai/reference/table-functions/read-parquet) | Row |
| MCAP | [`read_mcap`](https://docs.chowder.ai/reference/table-functions/read-mcap) | Message |

Use an explicit reader when you want the format and row grain to remain clear:

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    source,
    page_number,
    content
FROM read_documents('hf://buckets/chowderai/chowder-demo/pdf/data/att-management-discussion-and-analysis-2020.pdf')
WHERE page_number <= 5;
```

## Choose a location

| Location | URI form | Reference |
| - | - | - |
| Local files | `demo/amazon-reviews.parquet` | [Local files](https://docs.chowder.ai/reference/sources/local-files.md) |
| Amazon S3 | `s3://bucket/key` | [Amazon S3](https://docs.chowder.ai/reference/sources/amazon-s3.md) |
| Google Cloud Storage | `gs://bucket/key` | [Google Cloud Storage](https://docs.chowder.ai/reference/sources/google-cloud-storage.md) |
| Azure Blob Storage | `az://container/key` | [Azure Blob Storage](https://docs.chowder.ai/reference/sources/azure-blob-storage.md) |
| Hugging Face dataset files | `hf://datasets/org/repo/path` | [Hugging Face datasets](https://docs.chowder.ai/reference/sources/hugging-face-datasets.md) |
| Hugging Face bucket objects | `hf://buckets/org/bucket/path` | [Hugging Face buckets](https://docs.chowder.ai/reference/sources/hugging-face-buckets.md) |
| HTTP object | `https://host/object` | [HTTP and HTTPS](https://docs.chowder.ai/reference/sources/http.md) |

Start with a hosted demo query:

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    title,
    content
FROM read_parquet('hf://buckets/chowderai/chowder-demo/parquet/data/amazon-reviews/*.parquet')
LIMIT 5;
```

To run the same data locally or on another provider, follow the download and mirror setup in the source references above. Local and cloud mirror paths are user-owned locations, not additional public Chowder datasets. Keep credentials outside SQL.

## Query a hosted Hugging Face table

You can also put a hosted Hugging Face dataset URI directly in `FROM`. This names a dataset split rather than a file, so no file extension is needed:

```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;
```

To query specific repository files, use a path with a recognized extension or an explicit reader, such as `read_parquet`. See [Hugging Face datasets](https://docs.chowder.ai/reference/sources/hugging-face-datasets.md) for split and file URI forms.

> [card] [Table functions](https://docs.chowder.ai/reference/table-functions/overview.md)
>
> Compare reader inputs, row grains, and planning behavior.

> [card] [Sources](https://docs.chowder.ai/reference/sources/overview.md)
>
> Review URI forms, authentication, and source compatibility.


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