dify / api /core /rag /cleaner /cleaner_base.py
kikuepi's picture
Upload 4913 files
4304c6d verified
raw
history blame contribute delete
278 Bytes
"""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