mirror of https://github.com/open-webui/open-webui
fix: milvus collection creation issue
This commit is contained in:
parent
fbc9634ffc
commit
719f4da1dc
|
@ -98,7 +98,10 @@ class MilvusClient:
|
||||||
|
|
||||||
index_params = self.client.prepare_index_params()
|
index_params = self.client.prepare_index_params()
|
||||||
index_params.add_index(
|
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(
|
self.client.create_collection(
|
||||||
|
|
Loading…
Reference in New Issue