ChunkingConfig for the settings).
chunking.config
The chunking: section of ladygraph.yaml: how a long, loosely structured text (an OCR’d document, a converted PDF) is cut into passages.
ChunkingConfig
Repair
load_chunking_config
chunking: section of a ladygraph.yaml, or None when the file has none.
chunking.flattener
From a long text to passages: parse, clean, chunk, check. chunk_document is pure; StructuredMarkdownFlattener plugs it into a markdown source.
ChunkOut
chunk_document
chunking.quality
Chunk quality checks. They flag a chunk for review; they never cut or change one.
balanced
failed
z_dips
vectors: unit-length vectors of every text block, in order; sizes: blocks per chunk.
chunking.structure
Structure: a rank-based heading stack turns a long text into chunks that each know their section path.
Chunk
build
clean
parse
stamp_words
chunking.tables
Tables as text a model can read: every cell keeps its column name, and the damage a page break leaves is repaired.
TableRepairer
Keeps the good headers it has seen, in document order.
Construct with TableRepairer(cfg: ChunkingConfig).