Browse Source

fix: milvus usage with create_collection (#3683)

Bowen Liang 1 year ago
parent
commit
2867d29021
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/core/rag/datasource/vdb/milvus/milvus_vector.py

+ 1 - 1
api/core/rag/datasource/vdb/milvus/milvus_vector.py

@@ -232,7 +232,7 @@ class MilvusVector(BaseVector):
 
                 # Create the collection
                 collection_name = self._collection_name
-                self._client.create_collection_with_schema(collection_name=collection_name,
+                self._client.create_collection(collection_name=collection_name,
                                                            schema=schema, index_param=index_params,
                                                            consistency_level=self._consistency_level)
             redis_client.set(collection_exist_cache_key, 1, ex=3600)