mirror of
https://github.com/langgenius/dify.git
synced 2026-01-05 13:01:11 -05:00
12 lines
261 B
Python
12 lines
261 B
Python
"""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
|