Skip to main content

agrag.common.data_models.provenance.PageProvenance

Bases: BaseModel

The location of a chunk across one or more pages.

A chunk can start on one page and end on the next page. Each entry in page_spans covers one page.

Attributes:

  • kind (Literal['page']) – The literal tag "page". Marks this as page provenance.
  • page_spans (list[PageSpan]) – The page spans for this chunk. Has more than one entry when the chunk crosses a page boundary.

kind​

kind: Literal['page'] = 'page'

page_spans​

page_spans: list[PageSpan]