mirror of
https://github.com/langgenius/dify.git
synced 2025-11-15 02:43:33 +00:00
18 lines
340 B
Python
18 lines
340 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class PreviewDetail(BaseModel):
|
|
content: str
|
|
child_chunks: list[str] | None = None
|
|
|
|
|
|
class QAPreviewDetail(BaseModel):
|
|
question: str
|
|
answer: str
|
|
|
|
|
|
class IndexingEstimate(BaseModel):
|
|
total_segments: int
|
|
preview: list[PreviewDetail]
|
|
qa_preview: list[QAPreviewDetail] | None = None
|