Back to AI Engineering Mind Map
中文·English
🤖 AI EngineeringID: recursive-character-splitter

Recursive Character Splitter

递归字符切块 (Recursive Splitter)
🎯Core Definition
Recursive Character Text Splitter is a hierarchical text chunking algorithm that recursively evaluates a prioritized delimiter list (e.g., `["\n\n", "\n", ". ", " ", ""]`) to segment long documents; while strictly bounding chunk length within target Token limits (`chunk_size`), it maximizes text preservation at the highest semantic boundaries (such as double newlines `\n\n`) and enforces overlapping context (`chunk_overlap`) between consecutive windows.
💡Use Cases
Universal baseline chunking strategy for general RAG systems, applied across text articles, technical blogs, and documentation.
Key Problems Solved
Naive fixed-length character slicing blindly shears words and sentences midway, creating broken sentence fragments; recursive splitting preserves natural paragraph/sentence integrity, and `chunk_overlap` ensures critical boundary-straddling facts remain intact.
🎯5 High-Frequency Exam Points
1
Analyze the trade-offs of `chunk_size` and `chunk_overlap` on embedding semantic density vs duplicate recall overhead?
2
How to customize delimiter lists for bilingual Chinese-English text to correctly prioritize Chinese punctuation and Markdown headings?
3
Why must chunk length be evaluated using the target embedding tokenizer rather than Python's raw `len()` character count?
4
How to tune `chunk_overlap` to prevent context bloat and LLM attention dilution from redundant duplicated segments?
5
How to apply AST-based code splitters for Python/JS to recursively segment code at class and function boundaries?
Updated 2026-08-14
🎯
Test Your Knowledge: Practice Questions for "Recursive Character Splitter"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardDocument Layout Parsing & OCRNext CardSentence-Window Chunking

🔗 More AI Engineering Knowledge Cards

Vector Distance Metrics & L2 NormalizationScalar Quantization (SQ8/SQ4)Product Quantization (PQ)ADC Asymmetric Distance Computation