Metadata-Version: 2.5
Name: clickhouserag
Version: 1.0.0
Summary: Filter-scoped retrieval for RAG applications backed by ClickHouse
Project-URL: Documentation, https://rebelraider.github.io/ClickhouseRAG/
Project-URL: Repository, https://github.com/RebelRaider/ClickhouseRAG
Project-URL: Issues, https://github.com/RebelRaider/ClickhouseRAG/issues
License-Expression: MIT
License-File: LICENSE
Keywords: clickhouse,hybrid-search,rag,retrieval,vector-search
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Database
Classifier: Typing :: Typed
Requires-Python: <3.16,>=3.11
Requires-Dist: clickhouse-connect<2,>=1.12
Description-Content-Type: text/markdown

# ClickHouse RAG

ClickHouse RAG is a Python retrieval layer for teams that already run ClickHouse.
Store passages and embeddings together. Search by meaning, term match, or both,
with namespace and metadata filters and a source pointer on every result.

- **Use your own embeddings.** Pass vectors directly or supply a Python provider.
- **Keep the latest revision searchable.** The same identity and payload can be
  retried and higher revisions replace earlier passages.
- **Return evidence for any RAG stack.** Typed search results carry stable
  chunk IDs, document IDs, sources and metadata.

Version 1.0 replaces the old managers and requires a new table. See the
[migration guide](docs/migration.md) for an existing setup.

## Quickstart

The 1.x line targets CPython 3.11–3.15 and ClickHouse 26.3 or 26.8 LTS.
Follow the [quickstart](docs/quickstart.md) to start a local server and run hybrid
retrieval without a model service. To run the example from a checkout with an
existing local server:

```sh
uv sync --locked
uv run --locked python examples/basic_usage.py
```

See the [API reference](docs/api.md), [operations guide](docs/operations.md),
[benchmark](docs/benchmark.md) and [design](docs/maintainer/design.md).

[Contributing](CONTRIBUTING.md) · [Changelog](CHANGELOG.md) · [MIT license](LICENSE)
