mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 10:53:02 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			375 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			375 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from typing import Optional
 | |
| 
 | |
| from pydantic import BaseModel
 | |
| 
 | |
| 
 | |
| class PreviewDetail(BaseModel):
 | |
|     content: str
 | |
|     child_chunks: Optional[list[str]] = None
 | |
| 
 | |
| 
 | |
| class QAPreviewDetail(BaseModel):
 | |
|     question: str
 | |
|     answer: str
 | |
| 
 | |
| 
 | |
| class IndexingEstimate(BaseModel):
 | |
|     total_segments: int
 | |
|     preview: list[PreviewDetail]
 | |
|     qa_preview: Optional[list[QAPreviewDetail]] = None
 | 
