Optional targetTarget chunk size in characters. Default: 1000.
Optional maxMaximum chunk size — hard limit before forced splitting. Default: 2000.
Optional minMinimum chunk size — fragments below this merge with previous. Default: 200.
Optional overlapOverlap characters from previous chunk prepended for context. Default: 100.
Optional preserveWhether to detect and preserve fenced code blocks intact. Default: true.
Optional respectWhether to detect markdown headings as chunk-start boundaries. Default: true.
Configuration for the semantic chunker.
Interface
SemanticChunkerConfig