Feat/dify rag (#2528)

Co-authored-by: jyong <jyong@dify.ai>
This commit is contained in:
Jyong 2024-02-22 23:31:57 +08:00 • committed by GitHub
commit 6c4e6bf1d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
119 changed files with 3181 additions and 5892 deletions

View 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