Selaa lähdekoodia

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 kuukautta sitten
vanhempi
commit
deea07e905
No account linked to committer's email address
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1
    0
      api/core/rag/index_processor/index_processor_base.py

+ 1
- 0
api/core/rag/index_processor/index_processor_base.py Näytä tiedosto

def load(self, dataset: Dataset, documents: list[Document], with_keywords: bool = True, **kwargs): def load(self, dataset: Dataset, documents: list[Document], with_keywords: bool = True, **kwargs):
raise NotImplementedError raise NotImplementedError


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



Loading…
Peruuta
Tallenna