Kreuzberg.PageHierarchy (kreuzberg v4.4.2)

Copy Markdown View Source

Hierarchy information for a page, containing heading-level blocks.

Matches the Rust PageHierarchy struct.

Fields

  • :block_count - Number of hierarchy blocks on this page
  • :blocks - List of hierarchical blocks

Summary

Types

t()

@type t() :: %Kreuzberg.PageHierarchy{
  block_count: non_neg_integer(),
  blocks: [Kreuzberg.HierarchicalBlock.t()]
}

Functions

from_map(data)

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

to_map(h)

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