dify / api /core /rag /cleaner /cleaner_base.py
Severian's picture
initial commit
a8b3f00
raw
history blame
261 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