mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 19:06:51 +08:00
13 lines
266 B
Python
13 lines
266 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
|
|
|