Skip to main content

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

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

Contributing · Changelog · MIT license

Metadata

Release files for clickhouserag 1.0.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.0.0
File Size Uploaded Provenance Actions
clickhouserag-1.0.0.tar.gz 13.4 kB With provenance Details for clickhouserag-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 24.0 kB

Release files / clickhouserag-1.0.0.tar.gz

Download URL clickhouserag-1.0.0.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ea940e6d18a5fa2cdbcd98b3e6ee3e800f19e98ee0dc7e73ac999fb795dda74e
BLAKE2b-256 checksum
How to use checksums
b0691e62a7684041a121b0ae9bb7a1e89b6e7d1448f0a39873cb7d228c43b7e9
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.0.0-py3-none-any.whl

Download URL clickhouserag-1.0.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bddbd69724a6b46302bbc3c731e73d1342dbd633f4cc9c53e7578cc46c20a0af
BLAKE2b-256 checksum
How to use checksums
c3c172f5dafd41aace698c4c19e824e670134296912b63e6dc5ad34c00d56107
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.0.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.0.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