Metadata-Version: 2.4
Name: chowder
Version: 0.1.0
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Requires-Dist: pypdfium2==5.13.0
Requires-Dist: huggingface-hub>=1.6
Requires-Dist: filelock>=3.13
Requires-Dist: httpx>=0.27
Requires-Dist: fsspec[http]>=2024.2
Requires-Dist: onnxruntime>=1.22 ; platform_machine != 'x86_64' or sys_platform != 'linux'
Requires-Dist: onnxruntime-gpu>=1.26,<1.27 ; platform_machine == 'x86_64' and sys_platform == 'linux'
Requires-Dist: numpy>=1.26
Requires-Dist: pillow>=10
Requires-Dist: pyarrow>=15.0
Requires-Dist: polars>=1.0
Requires-Dist: pandas>=2.0
Requires-Dist: boto3>=1.35
Requires-Dist: tqdm>=4.68.4
Requires-Dist: mcp>=2.3,<3
Requires-Dist: anyio>=4.9
Requires-Dist: pydantic>=2.12,<3
Requires-Dist: rich>=14.1,<15
Requires-Dist: onnxruntime-gpu[cuda,cudnn]>=1.26,<1.27 ; platform_machine == 'x86_64' and sys_platform == 'linux' and extra == 'cuda'
Requires-Dist: scipy>=1.13 ; extra == 'dev'
Requires-Dist: rapidocr>=3.8.1 ; extra == 'dev'
Requires-Dist: pytest>=8.0 ; extra == 'dev'
Requires-Dist: pytest-cov>=7.0 ; extra == 'dev'
Requires-Dist: ruff==0.15.16 ; extra == 'dev'
Requires-Dist: mypy>=1.11 ; extra == 'dev'
Requires-Dist: pre-commit>=3.7 ; extra == 'dev'
Requires-Dist: python-dotenv>=1.0 ; extra == 'dev'
Requires-Dist: moto[server]>=5.0 ; extra == 'dev'
Requires-Dist: datafusion==54.1.0 ; extra == 'dev'
Requires-Dist: duckdb>=1.5 ; extra == 'dev'
Provides-Extra: cuda
Provides-Extra: dev
License-File: LICENSE
License-File: NOTICE
License-File: THIRD_PARTY_NOTICES.txt
License-File: vendor/rust-licenses/manifest.json
License-File: python/chowder/runtime/model-notices/bitsy/LICENSE.txt
License-File: python/chowder/runtime/model-notices/bitsy/NOTICE.txt
License-File: python/chowder/runtime/model-notices/docling/LICENSE.txt
License-File: python/chowder/runtime/model-notices/docling/NOTICE.txt
License-File: python/chowder/runtime/model-notices/glancelot/LICENSE.txt
License-File: python/chowder/runtime/model-notices/glancelot/NOTICE.txt
License-File: python/chowder/runtime/model-notices/qwen-embed/LICENSE.txt
License-File: python/chowder/runtime/model-notices/qwen-embed/NOTICE.txt
License-File: python/chowder/runtime/model-notices/qwen-infer/LICENSE.txt
License-File: python/chowder/runtime/model-notices/qwen-infer/NOTICE.txt
License-File: python/chowder/runtime/model-notices/rapidocr/LICENSE.txt
License-File: python/chowder/runtime/model-notices/rapidocr/NOTICE.txt
License-File: python/chowder/runtime/model-notices/whisper/LICENSE.txt
License-File: python/chowder/runtime/model-notices/whisper/NOTICE.txt
License-File: python/chowder/runtime/model-notices/tatr/LICENSE.txt
License-File: python/chowder/runtime/model-notices/tatr/NOTICE.txt
License-File: vendor/datafusion-sql/LICENSE.txt
License-File: vendor/datafusion-sql/NOTICE.txt
License-File: vendor/mnn-3.6.1/LICENSE.txt
License-File: vendor/onnxruntime/LICENSE.onnxruntime
License-File: vendor/whisper-cpp/LICENSE.whisper.cpp
Summary: Chowder is an AI-native SQL engine for multimodal data analytics. Run SQL on documents, text, images, video, audio, and more.
Author-email: Johnson Kuan <johnson@chowder.ai>
License-Expression: Apache-2.0
Requires-Python: >=3.12
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://docs.chowder.ai
Project-URL: Homepage, https://chowder.ai
Project-URL: Issues, https://github.com/chowderai/chowder/issues
Project-URL: Source, https://github.com/chowderai/chowder

<div align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://chowder.ai/assets/chowder-readme-banner-dark.png">
    <source media="(prefers-color-scheme: light)" srcset="https://chowder.ai/assets/chowder-readme-banner.png">
    <img src="https://chowder.ai/assets/chowder-readme-banner.png" alt="Chowder cat mascot and wordmark" width="100%">
  </picture>
  <br>
    <a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-green.svg" alt="License: Apache 2.0" height="20"></a>
    <!-- After publishing 0.1.0, use https://img.shields.io/pypi/v/chowder.svg and link to https://pypi.org/project/chowder/. -->
    <a href="https://docs.chowder.ai/installation"><img src="https://img.shields.io/badge/pypi-v0.1.0%20soon-3776ab.svg" alt="PyPI: v0.1.0 coming soon" height="20"></a>
  <br>
    <a href="https://chowder.ai">Website</a> ·
    <a href="https://docs.chowder.ai">Docs</a> ·
    <a href="https://chowder.ai/blog">Blog</a> ·
    <a href="https://x.com/chowderai">X</a> ·
    <a href="https://www.linkedin.com/company/chowderai">LinkedIn</a> ·
    <a href="https://discord.chowder.ai">Discord</a>
</div>

## Chowder

Chowder is an AI-native SQL engine for multimodal data analytics.

Run SQL on documents, text, images, video, audio, and more. AI inference is part of the query plan.

## Quickstart

Install Chowder with [uv](https://docs.astral.sh/uv/getting-started/installation/) on macOS or Linux.

```bash
uv venv --python 3.12
source .venv/bin/activate
uv pip install chowder
```

Start querying multimodal data with SQL. This example uses `read_documents()` to parse PDF pages and `infer()` to return a `BOOLEAN` answer for each page.

```python
import chowder

SQL = """
SELECT
    source,
    page_number,
    content, -- Parsed PDF page in Markdown
    blocks, -- Layout regions with text and bounding boxes
    infer(
        content,
        'Does this page explain the business reasons behind declining revenue?',
        BOOLEAN -- Return a typed Boolean answer
    ) AS inference
FROM read_documents('hf://buckets/chowderai/chowder-demo/pdf/data/*.pdf')
WHERE source LIKE '%att-management-discussion-and-analysis-2020.pdf'
AND tokens(content) < 2048 -- Filter by model token count
LIMIT 5;
"""

relation = chowder.sql(SQL)  # Executable query plan

# Stream Arrow batches
for batch in relation:
    print(batch)

# Or materialize as a DataFrame
result = relation.to_polars()
```

Define the AI output schema using native SQL types such as `BOOLEAN`, `STRUCT`, `ARRAY`, and `ENUM`.
Results from `infer()` include [field-level confidence scores](https://docs.chowder.ai/concepts/confidence).

```sql
SELECT
    convo_id,
    infer(
        convo_transcript,
        'Analyze this customer support conversation.',
        STRUCT<
            resolution ENUM('resolved', 'unresolved', 'escalated'), -- Constrain the allowed labels
            sentiment ENUM('positive', 'neutral', 'negative'),
            summary VARCHAR,
            action_items ARRAY<VARCHAR>
        >
    ).output AS analysis
FROM read_parquet('hf://datasets/chowderai/cust-convo/data/*.parquet')
WHERE convo_id = 21569;
```

Create embeddings from text and images in a shared vector space with `embed()`.

```sql
SELECT
    title,
    embed(content).output AS embedding
FROM read_parquet('hf://buckets/chowderai/chowder-demo/parquet/data/amazon-reviews/*.parquet')
LIMIT 3;
```

```sql
SELECT
    source,
    embed(image).output AS embedding
FROM read_images('hf://buckets/chowderai/chowder-demo/image/data/amazon-products/drinking-cup/*.jpg')
LIMIT 3;
```

Try Chowder’s [table functions](https://docs.chowder.ai/reference/table-functions/overview) on real datasets.

```sql
SELECT * FROM read_documents('hf://buckets/chowderai/chowder-demo/pdf/data/*.pdf') LIMIT 5;
SELECT * FROM read_images('hf://buckets/chowderai/chowder-demo/image/data/misc/*.jpg') LIMIT 5;
SELECT * FROM read_videos('hf://buckets/chowderai/chowder-demo/video/data/*.mp4') LIMIT 5;
SELECT * FROM read_audio('hf://buckets/chowderai/chowder-demo/audio/data/*.mp3') LIMIT 5;
SELECT * FROM read_mcap('hf://buckets/chowderai/chowder-demo/mcap/data/road-spray-car-following.mcap') LIMIT 5;
SELECT * FROM read_parquet('hf://datasets/chowderai/cust-convo/data/*.parquet') LIMIT 5;
```

Explore Chowder’s [column functions](https://docs.chowder.ai/reference/column-functions/overview) for inference, tokenization, and vector operations, including finding each row’s nearest neighbors and clustering similar rows.

## Command line

Install the Chowder CLI:

```bash
uv tool install chowder
```

Run SQL from a query, file, or piped input:

```bash
chowder sql "SELECT 42 AS answer"
chowder sql --file query.sql --format jsonl
echo 'SELECT 42 AS answer' | chowder sql
```

Run `chowder --help` for available commands and options.

## Local MCP server

[Install the Chowder CLI](#command-line) and add Chowder to your MCP client’s configuration:

```json
{
  "mcpServers": {
    "chowder": {
      "command": "chowder",
      "args": ["mcp"]
    }
  }
}
```

The Chowder MCP `query` tool lets your AI agent run SQL using your local filesystem access and credentials.

## Query data where it lives

Read data directly from local disk or remote storage using your existing credentials and permissions.

Supported remote data sources include:

- Hugging Face datasets and buckets
- Amazon S3
- Google Cloud Storage
- Azure Blob Storage
- Direct HTTPS URLs

See the [data sources documentation](https://docs.chowder.ai/reference/sources/overview) for more details.

## Why Chowder?

Chowder brings AI directly into SQL so you can analyze multimodal datasets with the query language you already know and love.

- AI is part of the query plan — Inference returns native SQL types you can filter, join, and aggregate. Chowder optimizes the query plan to avoid unnecessary AI compute.
- Local first, built to scale — Run on your machine with inference accelerated by Apple Silicon or NVIDIA GPUs. Offload AI compute to Chowder Cloud for fast and cost-efficient inference at scale.
- Your data, your control — Query data where it lives with your existing credentials and permissions. No data migration required.
- Built for analytical inference — Run task-specific models optimized for high-throughput batch inference across large datasets.

## Chowder architecture

Introducing AI-native OLAP for multimodal data. [Explore the architecture](https://docs.chowder.ai/concepts/architecture).

Chowder’s core engine is written in Rust and built on [Apache Arrow](https://arrow.apache.org/) and [Apache DataFusion](https://datafusion.apache.org/).

![Chowder architecture: multimodal data flows through a columnar SQL engine into typed Arrow results, with local or remote AI compute](assets/chowder-architecture.png)

## Chowder SQL functions

### Table functions

| Function | Description |
| --- | --- |
| [`read_documents()`](https://docs.chowder.ai/reference/table-functions/read-documents) | Parse PDFs into Markdown and layout blocks, one row per page |
| [`read_images()`](https://docs.chowder.ai/reference/table-functions/read-images) | Read images and their metadata, one row per image |
| [`read_videos()`](https://docs.chowder.ai/reference/table-functions/read-videos) | Extract video frames and transcribe audio, one row per time window |
| [`read_audio()`](https://docs.chowder.ai/reference/table-functions/read-audio) | Transcribe audio, one row per time window |
| [`read_mcap()`](https://docs.chowder.ai/reference/table-functions/read-mcap) | Read robotics messages and camera frames from MCAP files, one row per message |
| [`read_parquet()`](https://docs.chowder.ai/reference/table-functions/read-parquet) | Read Parquet files, one SQL row per source row |
| [`read_text()`](https://docs.chowder.ai/reference/table-functions/read-text) | Read text and log files, one row per line |
| [`read_json()`](https://docs.chowder.ai/reference/table-functions/read-json) | Read line-delimited JSON (`.json` or `.jsonl`), one row per JSON object |
| [`read_csv()`](https://docs.chowder.ai/reference/table-functions/read-csv) | Read CSV files, one row per record |

### Column functions

| Function | Description |
| --- | --- |
| [`infer()`](https://docs.chowder.ai/reference/column-functions/infer) | Run a prompt on text or images and get typed responses |
| [`embed()`](https://docs.chowder.ai/reference/column-functions/embed) | Embed text and images in a shared vector space |
| [`tokens()`](https://docs.chowder.ai/reference/column-functions/tokens) | Count tokens in text using a model’s tokenizer |
| [`tokenize()`](https://docs.chowder.ai/reference/column-functions/tokenize) | Split text into tokens using a model’s tokenizer |
| [`neighbors()`](https://docs.chowder.ai/reference/column-functions/neighbors) | Find each row’s nearest neighbors in vector space |
| [`clusterize()`](https://docs.chowder.ai/reference/column-functions/clusterize) | Cluster similar rows in vector space |
| [`sim()`](https://docs.chowder.ai/reference/column-functions/sim) | Compute cosine similarity between vectors |

See the [models documentation](https://docs.chowder.ai/concepts/models) for the models used in Chowder.

## Chowder Cloud

Offload AI compute to dedicated GPUs for fast and cost-efficient analytical inference at
scale. SQL execution and result caching stay in your application.

To enable remote compute, use the endpoint and token from your Cloud dashboard.

```bash
export CHOWDER_REMOTE=1
export CHOWDER_API_URL="<your Cloud endpoint>"
export CHOWDER_API_TOKEN="<your Cloud token>"
```

See the [Chowder Cloud documentation](https://docs.chowder.ai/cloud/quickstart) for more details.

## Contributing

See the [contribution guidelines](CONTRIBUTING.md) for source development instructions and the contributor license agreement requirement.

## License and attribution

Chowder is licensed under the
[Apache License 2.0](LICENSE). Redistributed copies must preserve the applicable
license and attribution notices. See [NOTICE](NOTICE) and
[third-party notices](THIRD_PARTY_NOTICES.txt).
Third-party components retain their own copyrights and license terms.

Copyright 2026 Queryboost Inc. DBA Chowder AI

