Current section
Files
Jump to
Current section
Files
lib/xberg/chunk_metadata.ex
# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:b2c29ab80fb9cdb8c5190a7808ad862ad890f416ad887092447b282a5b1b69e0
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule Xberg.ChunkMetadata do
@moduledoc "Metadata about a chunk's position in the original document."
@typedoc "Metadata about a chunk's position in the original document."
@type t :: %__MODULE__{
byte_start: non_neg_integer(),
byte_end: non_neg_integer(),
token_count: non_neg_integer() | nil,
chunk_index: non_neg_integer(),
total_chunks: non_neg_integer(),
first_page: non_neg_integer() | nil,
last_page: non_neg_integer() | nil,
heading_context: Xberg.HeadingContext.t() | nil,
heading_path: [String.t()],
image_indices: [non_neg_integer()],
node_ids: [String.t()],
page_spans: [Xberg.PageSpan.t()],
classifications: [Xberg.ClassificationLabel.t()]
}
defstruct byte_start: 0,
byte_end: 0,
token_count: nil,
chunk_index: 0,
total_chunks: 0,
first_page: nil,
last_page: nil,
heading_context: nil,
heading_path: [],
image_indices: [],
node_ids: [],
page_spans: [],
classifications: []
end