12
api/core/rag/cleaner/cleaner_base.py
Normal file
12
api/core/rag/cleaner/cleaner_base.py
Normal file
@@ -0,0 +1,12 @@
|
||||
"""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
|
||||
|
||||
Reference in New Issue
Block a user