dify / api /core /rag /cleaner /cleaner_base.py
CatPtain's picture
Upload 1150 files
bcc0d8a verified
"""Abstract interface for document cleaner implementations."""
from abc import ABC, abstractmethod
class BaseCleaner(ABC):
"""Interface for clean chunk content."""
@abstractmethod
def clean(self, content: str):
raise NotImplementedError