32 lines
1.1 KiB
Elixir
32 lines
1.1 KiB
Elixir
|
|
# This file is auto-generated by alef — DO NOT EDIT.
|
||
|
|
# alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
|
||
|
|
# To regenerate: alef generate
|
||
|
|
# To verify freshness: alef verify --exit-code
|
||
|
|
# Issues & docs: https://github.com/kreuzberg-dev/alef
|
||
|
|
defmodule Kreuzberg.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: map() | nil,
|
||
|
|
image_indices: [non_neg_integer()]
|
||
|
|
}
|
||
|
|
|
||
|
|
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,
|
||
|
|
image_indices: []
|
||
|
|
end
|