aiChunk
Syntax
aiChunk(text, options)Parameters
Parameter
Type
Required
Default
Description
Options Structure
Option
Type
Default
Description
Chunking Strategies
Returns
Examples
Basic Chunking
Custom Chunk Size
Word-Based Strategy
Sentence-Based Strategy
Paragraph-Based Strategy
Recursive Strategy (Default)
Processing Large Documents
For Vector Search
Estimate Before Chunking
Chunk and Embed
Overlapping Context
Notes
Related Functions
Best Practices
Last updated