Jelajahi Sumber

fix: milvus collection creation issue

Timothy J. Baek 7 bulan lalu
induk
melakukan
719f4da1dc
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      backend/open_webui/apps/rag/vector/dbs/milvus.py

+ 4 - 1
backend/open_webui/apps/rag/vector/dbs/milvus.py

@@ -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(