mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 02:42:59 +00: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 | ||
|  | 
 |