Skip to main content
Open on GitHub

ClickHouse

ClickHouse is the fast and resource efficient open-source database for real-time apps and analytics with full SQL support and a wide range of functions to assist users in writing analytical queries. It has data structures and distance search functions (like L2Distance) as well as approximate nearest neighbor search indexes That enables ClickHouse to be used as a high performance and scalable vector database to store and search vectors with SQL.

安装与设置

我们需要安装 clickhouse-connect 个 Python 包。

pip install clickhouse-connect

向量存储

查看一个 使用示例

from langchain_community.vectorstores import Clickhouse, ClickhouseSettings