Skip to content

ChunkOut

Base classes

Name Children Inherits
BaseModel
pydantic.main
!!! abstract "Usage Documentation"

⋔ Inheritance diagram

graph TD
  2077187575["models.ChunkOut"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3879467795 --> 2077187575
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseModel

A chunk of the document; its images are in the response's images.

Source code in src/docler_api/models.py
class ChunkOut(BaseModel):
    """A chunk of the document; its images are in the response's `images`."""

    content: str
    chunk_index: int
    page_number: int | None = None
    image_ids: list[str] = Field(default_factory=list)
    metadata: dict[str, Any] = Field(default_factory=dict)

:fa-brands-github: Show source on GitHub