浏览代码

make clean() function in index_processor_base abstractmethod (#24959)

Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
tags/1.8.1
湛露先生 2 个月前
父节点
当前提交
deea07e905
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      api/core/rag/index_processor/index_processor_base.py

+ 1
- 0
api/core/rag/index_processor/index_processor_base.py 查看文件

@@ -30,6 +30,7 @@ class BaseIndexProcessor(ABC):
def load(self, dataset: Dataset, documents: list[Document], with_keywords: bool = True, **kwargs):
raise NotImplementedError

@abstractmethod
def clean(self, dataset: Dataset, node_ids: Optional[list[str]], with_keywords: bool = True, **kwargs):
raise NotImplementedError


正在加载...
取消
保存