Skip to main content

Overview

Recursive splitter intelligently splits text using a prioritized list of separators. It tries the first separator, and if segments are still too large, recursively applies the next separator. Highly effective for structured text like code and markdown, ensuring logical units stay together. Splitter Class: RecursiveChunker Config Class: RecursiveChunkingConfig

Dependencies

No additional dependencies required. Uses standard library.

Examples

Parameters