Chunks the provided content string according to the given options.
All strategy implementations are async to accommodate the optional
embedFn used by the semantic strategy.
Full document text to split.
Chunking strategy and tuning parameters.
Ordered array of DocumentChunk objects with sequential indices.
Splits raw document text into an ordered array of
DocumentChunkobjects suitable for embedding and storage in a vector index.Example