SemanticChunker
An implementation of a document chunking strategy that splits content according to Markdown heading levels and paragraph semantics, controls token counts while retaining overlapping windows, and stores header_path in metadata to preserve contextual information.
Timeline (last 90 days)
SemanticChunker splits documents by Markdown heading hierarchy, preserves header_path metadata, and each chunk carries 50 tokens of overlap.
In document ingestion, using semantic chunking (first splitting by Markdown heading levels, then aggregating by paragraph, keeping tokens under 512 and retaining 50 tokens of overlap) preserves header_path metadata and improves retrieval quality.
LangChain's SemanticChunker and LlamaIndex's SemanticSplitterNodeParser provide out-of-the-box semantic chunking implementations.
All Facts (3)
SemanticChunker splits documents by Markdown heading hierarchy, preserves header_path metadata, and each chunk carries 50 tokens of overlap.
50%UnverifiedIn document ingestion, using semantic chunking (first splitting by Markdown heading levels, then aggregating by paragraph, keeping tokens under 512 and retaining 50 tokens of overlap) preserves header_path metadata and improves retrieval quality.
50%UnverifiedLangChain's SemanticChunker and LlamaIndex's SemanticSplitterNodeParser provide out-of-the-box semantic chunking implementations.
50%