HeaderBasedTextSplitter
Models & Types ยท AiDotNet.RetrievalAugmentedGeneration.ChunkingStrategies
Splits structured documents based on header tags (H1, H2, H3, etc.).
Inheritance: ChunkingStrategyBase โ HeaderBasedTextSplitter
How It Works
Ideal for Markdown and HTML documents where headers provide natural semantic boundaries. Preserves document structure and hierarchy.
Constructors
| Constructor | Summary |
|---|---|
HeaderBasedTextSplitter(int chunkSize, int chunkOverlap, int minChunkSize, bool combineSmallChunks) |
Initializes a new instance of the HeaderBasedTextSplitter class. |