ParameterTypeDefaultDescription
table_namestrNoneName of the table to store vectors and metadata in Clickhouse
hoststrNoneHostname of the Clickhouse server
usernameOptional[str]NoneUsername for Clickhouse authentication
passwordstr""Password for Clickhouse authentication
portint0Port number for Clickhouse connection
database_namestr"ai"Name of the database to use in Clickhouse
dsnOptional[str]NoneDSN string for Clickhouse connection
compressstr"lz4"Compression algorithm to use
clientOptional[Client]NoneOptional pre-configured Clickhouse client
embedderOptional[Embedder]OpenAIEmbedder()Embedder instance to generate embeddings
distanceDistanceDistance.cosineDistance metric to use for similarity search
indexOptional[HNSW]HNSW()HNSW index configuration for vector similarity search