Spaces:
Sleeping
Sleeping
| from dataclasses import dataclass | |
| from io import BytesIO | |
| from typing import Any | |
| class ChunkWithMetadata: | |
| content: str | |
| metadata: dict[str, Any] # pyright: ignore[reportExplicitAny] | |
| class ChunkDocumentResult: | |
| filename: str | |
| chunks: list[str] | list[ChunkWithMetadata] | |
| class DocumentStreamGeneric: | |
| name: str | |
| stream: BytesIO | |