Kreuzberg.HierarchicalBlock (kreuzberg v4.4.2)

Copy Markdown View Source

A hierarchical block within a page, representing heading-level structure.

Matches the Rust HierarchicalBlock struct.

Fields

  • :text - The text content of this block
  • :font_size - The font size of the text
  • :level - Hierarchy level ("h1"-"h6" or "body")
  • :bbox - Optional bounding box as [left, top, right, bottom]

Summary

Types

t()

@type t() :: %Kreuzberg.HierarchicalBlock{
  bbox: [float()] | nil,
  font_size: float(),
  level: String.t(),
  text: String.t()
}

Functions

from_map(data)

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

to_map(block)

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