Parameter | Description | Default Value |
---|---|---|
connection_string | PostgreSQL connection string (required) | None |
collection_name | Name for the vector collection | Zentry |
embedding_model_dims | Dimensions of the embedding model | 1536 |
index_method | Vector index method to use | auto |
index_measure | Distance measure for similarity search | cosine_distance |
auto
: Automatically selects the best available index methodhnsw
: Hierarchical Navigable Small World graph index (faster search, more memory usage)ivfflat
: Inverted File Flat index (good balance of speed and memory)cosine_distance
: Cosine similarity (recommended for most embedding models)l2_distance
: Euclidean distancel1_distance
: Manhattan distancemax_inner_product
: Maximum inner product similarityhnsw
for fastest search performance when memory is not a constraintivfflat
for a good balance of search speed and memory usageauto
if unsure, it will select the best method based on your datacosine_distance
for most embedding models (OpenAI, Hugging Face, etc.)max_inner_product
if your vectors are normalizedl2_distance
or l1_distance
if working with raw feature vectorspostgresql://user:password@host:port/database