浏览代码

fix bug: tencent vdb #5378 (#5408)

quicksand 10 月之前
父节点
当前提交
0105129fa8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/core/rag/datasource/vdb/tencent/tencent_vector.py

+ 1 - 1
api/core/rag/datasource/vdb/tencent/tencent_vector.py

@@ -210,7 +210,7 @@ class TencentVectorFactory(AbstractVectorFactory):
             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(