Fixed-size: split every N tokens or characters; simple, but can cut sentences and ideas in half.
Recursive character or token splitting: try paragraph breaks, then line breaks, then sentences, then words, keeping pieces under the size limit; a strong default for plain text.
Sentence or paragraph-based, and structure-aware splitting by headings, sections, list items or HTML and Markdown structure.
Semantic chunking: start a new chunk where the meaning shifts, detected by embedding similarity between neighboring sentences.
Document-specific: AST-based splitting for code, row or section-level for tables, and LLM-based (agentic) chunking for messy documents.
Loading…