latent.rag.chunking¶
Native markdown chunker — replaces langchain-text-splitters.
Classes¶
MarkdownChunker¶
Split markdown text on headers, tracking hierarchical section paths.
Parameters¶
max_chunk_size: Maximum characters per chunk. Sections longer than this are split on paragraph boundaries. Must be > 0. chunk_overlap: Number of characters to overlap between consecutive sub-chunks produced when a section exceeds max_chunk_size. Must be >= 0 and < max_chunk_size.
Methods¶
MarkdownChunker.chunk¶
Split text into DocumentChunk objects.