Chunking Strategies
Hystersis uses intelligent chunking to break large text inputs into optimal segments for memory extraction, embedding, and retrieval.Why Chunking Matters
Large text inputs need to be broken into smaller segments because:- LLM context windows have size limits for extraction
- Vector embeddings work best on focused content
- Retrieval accuracy improves with well-scoped chunks
- Compression is more effective on targeted segments
Chunking Methods
Fixed-Size Chunking
Splits text into fixed-size segments with optional overlap:Sentence-Level Chunking
Splits text at sentence boundaries:Paragraph-Level Chunking
Splits text at paragraph boundaries:Semantic Chunking
Groups related sentences into semantically coherent chunks:Recursive Chunking
Combines multiple strategies with fallback:Chunking Configuration
Best Practices
- Use semantic chunking for unstructured content (articles, transcripts)
- Use paragraph chunking for well-structured documents
- Set overlap to 10-20% for retrieval continuity
- Keep chunks between 200-1000 tokens for optimal embedding quality
- Avoid very small chunks (under 100 tokens) as they lack context
See Also
- Compression for memory compression
- Memory Types for memory model