From daccc3d1752725eeaf79bdc943c42bf06894c586 Mon Sep 17 00:00:00 2001 From: quicksand Date: Thu, 20 Jun 2024 10:37:39 +0800 Subject: [PATCH] fix bug: tencent vdb #5378 (#5408) --- api/core/rag/datasource/vdb/tencent/tencent_vector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/rag/datasource/vdb/tencent/tencent_vector.py b/api/core/rag/datasource/vdb/tencent/tencent_vector.py index 2372976bad3770..3af85854d27f41 100644 --- a/api/core/rag/datasource/vdb/tencent/tencent_vector.py +++ b/api/core/rag/datasource/vdb/tencent/tencent_vector.py @@ -210,7 +210,7 @@ def init_vector(self, dataset: Dataset, attributes: list, embeddings: Embeddings dataset_id = dataset.id collection_name = Dataset.gen_collection_name_by_id(dataset_id).lower() dataset.index_struct = json.dumps( - self.gen_index_struct_dict(VectorType.TIDB_VECTOR, collection_name)) + self.gen_index_struct_dict(VectorType.TENCENT, collection_name)) config = current_app.config return TencentVector(