Skip to main content
ClickHouse RAG logo

ClickHouse RAG

ClickHouse RAG is a Python framework for finding and citing evidence in ClickHouse. Use one collection for document updates, hybrid text and vector search, and relationship traversal. Compose local and hosted models for embeddings, graph extraction, planning, reranking and cited answers.

  • 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.
  • Follow relationships across documents. Graph search adds cited paths and corpus overviews. Typed knowledge queries can require multiple paths to reach the same answer.

Version 1.0 replaces the old managers and requires a new table. See the migration guide for an existing setup.

GitHub Releases · Documentation · PyPI

Quickstart

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

python -m pip install clickhouserag

Follow the 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:

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

For document indexing, GraphRAG, KAG and evaluation, use the framework walkthrough. The model provider guide shows how to mix backends. The optional PostgreSQL add-on delivers document revisions to ClickHouse.

See the API reference, operations guide, benchmark and design.

Contributing · Changelog · MIT license

Metadata

Release files for clickhouserag 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clickhouserag 1.2.0
File Size Uploaded Provenance Actions
clickhouserag-1.2.0.tar.gz 117.1 kB With provenance Details for clickhouserag-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clickhouserag 1.2.0
File Interpreter ABI Platform Actions
clickhouserag-1.2.0-py3-none-any.whl Python 3 none any Details for clickhouserag-1.2.0-py3-none-any.whl

Total release size: 167.5 kB

Release files / clickhouserag-1.2.0.tar.gz

Download URL clickhouserag-1.2.0.tar.gz
Size 117.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a80382882a0a6386860c2355dfb944f6773973bd110978a253fb294eeb8df878
BLAKE2b-256 checksum
How to use checksums
281e7e498da4dc112d66f7b3bf30de771b1566069eb1852d05a0a4b7b7b821c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / clickhouserag-1.2.0-py3-none-any.whl

Download URL clickhouserag-1.2.0-py3-none-any.whl
Size 50.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60f8744978d45140da400b76e41b7ee3b65f6d7fedebb9632f25c535791a84d8
BLAKE2b-256 checksum
How to use checksums
774071ccca074789f5dd76cc5dc0cdf3433fd5b16b4d5a50cc5aae49d4839211
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for clickhouserag 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for clickhouserag-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page