Kreuzberg.PageBoundary (kreuzberg v4.4.2)

Copy Markdown View Source

Byte offset boundary for a page.

Tracks where a specific page's content starts and ends in the main content string. Matches the Rust PageBoundary struct.

Fields

  • :byte_start - Byte offset where this page starts (inclusive)
  • :byte_end - Byte offset where this page ends (exclusive)
  • :page_number - Page number (1-indexed)

Summary

Types

t()

@type t() :: %Kreuzberg.PageBoundary{
  byte_end: non_neg_integer(),
  byte_start: non_neg_integer(),
  page_number: non_neg_integer()
}

Functions

from_map(data)

@spec from_map(map()) :: t()

to_map(b)

@spec to_map(t()) :: map()