fix: milvus collection creation issue

This commit is contained in:
Timothy J. Baek 2024-09-26 22:59:09 +02:00
parent fbc9634ffc
commit 719f4da1dc

View File

@ -98,7 +98,10 @@ class MilvusClient:
index_params = self.client.prepare_index_params()
index_params.add_index(
field_name="vector", index_type="HNSW", metric_type="COSINE", params={}
field_name="vector",
index_type="HNSW",
metric_type="COSINE",
params={"M": 16, "efConstruction": 100},
)
self.client.create_collection(