fix: milvus_vector default dataset index_struct type from weaviate to milvus (#5098)

This commit is contained in:
saga.rey 2024-06-14 02:36:01 +08:00 committed by GitHub
parent b85ae146a7
commit edf2047f04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -279,7 +279,7 @@ class MilvusVectorFactory(AbstractVectorFactory):
dataset_id = dataset.id
collection_name = Dataset.gen_collection_name_by_id(dataset_id)
dataset.index_struct = json.dumps(
self.gen_index_struct_dict(VectorType.WEAVIATE, collection_name))
self.gen_index_struct_dict(VectorType.MILVUS, collection_name))
config = current_app.config
return MilvusVector(