Skip to main content
ClickHouse stores knowledge embeddings for fast vector search at scale — ideal for large document collections and analytics workloads.
The user asks from your knowledge base; ClickHouse vector search retrieves relevant chunks at scale.

Quick Start

1

Simple Usage

2

With Configuration

Create the store directly for full control:

How It Works

ClickHouse is a knowledge store (vector search), not a primary conversation backend. Pair it with SQLite or PostgreSQL for chat history via db().

Configuration Options

Environment variables: CLICKHOUSE_HOST, CLICKHOUSE_PORT, CLICKHOUSE_USER, CLICKHOUSE_PASSWORD.

Docker Setup


Best Practices

Store embeddings and retrieval in ClickHouse; keep conversation history in PostgreSQL, MySQL, or SQLite.
Insert documents in batches of 1000+ rows for better write performance on large corpora.
Use PARTITION BY toYYYYMM(timestamp) when logging retrieval events for analytics.
Enable TLS and authentication when connecting to remote ClickHouse clusters.

Database Persistence

Compare all persistence backends

Persistence Backend Plugins

Register custom storage backends