Metadata-Version: 2.5
Name: clickhouserag
Version: 1.0.1
Summary: Dense, lexical and hybrid retrieval for RAG applications on ClickHouse
Project-URL: Changelog, https://github.com/RebelRaider/ClickhouseRAG/blob/main/CHANGELOG.md
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,embeddings,full-text-search,hybrid-search,information-retrieval,rag,retrieval-augmented-generation,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: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Text Processing :: Indexing
Classifier: Typing :: Typed
Requires-Python: <3.16,>=3.11
Requires-Dist: clickhouse-connect<2,>=1.12
Description-Content-Type: text/markdown

<img src="https://rebelraider.github.io/ClickhouseRAG/assets/clickhouserag-icon.png" width="96" height="96" alt="ClickHouse RAG logo">

# 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](https://rebelraider.github.io/ClickhouseRAG/migration/) for an existing setup.

[GitHub Releases](https://github.com/RebelRaider/ClickhouseRAG/releases/latest) ·
[Documentation](https://rebelraider.github.io/ClickhouseRAG/) ·
[PyPI](https://pypi.org/project/clickhouserag/)

## Quickstart

The 1.x line targets CPython 3.11–3.15 and ClickHouse 26.3 or 26.8 LTS.
Install the library with pip.

```sh
python -m pip install clickhouserag
```

Follow the [quickstart](https://rebelraider.github.io/ClickhouseRAG/quickstart/)
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](https://rebelraider.github.io/ClickhouseRAG/api/), [operations guide](https://rebelraider.github.io/ClickhouseRAG/operations/),
[benchmark](https://rebelraider.github.io/ClickhouseRAG/benchmark/) and [design](https://rebelraider.github.io/ClickhouseRAG/maintainer/design/).

[Contributing](https://github.com/RebelRaider/ClickhouseRAG/blob/main/CONTRIBUTING.md) · [Changelog](https://github.com/RebelRaider/ClickhouseRAG/blob/main/CHANGELOG.md) · [MIT license](https://github.com/RebelRaider/ClickhouseRAG/blob/main/LICENSE)
