浏览代码

fix: init qdrant vector max recursion (#2909)

Qiwen Tong 1 年之前
父节点
当前提交
180775a0ec
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/core/rag/datasource/vdb/vector_factory.py

+ 1 - 1
api/core/rag/datasource/vdb/vector_factory.py

@@ -66,7 +66,7 @@ class Vector:
                     raise ValueError('Dataset Collection Bindings is not exist!')
                     raise ValueError('Dataset Collection Bindings is not exist!')
             else:
             else:
                 if self._dataset.index_struct_dict:
                 if self._dataset.index_struct_dict:
-                    class_prefix: str = self.dataset.index_struct_dict['vector_store']['class_prefix']
+                    class_prefix: str = self._dataset.index_struct_dict['vector_store']['class_prefix']
                     collection_name = class_prefix
                     collection_name = class_prefix
                 else:
                 else:
                     dataset_id = self._dataset.id
                     dataset_id = self._dataset.id