Parameter | Description | Default Value |
---|---|---|
collection_name | The name of the collection | mem0 |
path | Path to store FAISS index and metadata | /tmp/faiss/<collection_name> |
distance_strategy | Distance metric strategy to use (options: ‘euclidean’, ‘inner_product’, ‘cosine’) | euclidean |
normalize_L2 | Whether to normalize L2 vectors (only applicable for euclidean distance) | False |
cosine
or inner_product
with normalized vectors, you may want to set normalize_L2=True
for better results.