Split a document into chunks
Document to chunk
Chunked documents with metadata
Split multiple documents into chunks
Documents to chunk
Array of chunk results
Estimate the number of chunks that will be created
Document to estimate
Estimated number of chunks
Markdown-aware chunking strategy.
Splits markdown documents while respecting document structure:
The chunker splits on markdown headers (# ## ### etc.) and tries to keep content under each header as a coherent unit.
Example