What problem does it solve?
This Skill addresses the challenge of splitting extracted text into manageable chunks for optimal LLM context windows or RAG ingestion, enhancing the efficiency of AI processing.
Core Features & Use Cases
- Text Chunking: Splits text into chunks based on size, overlap, and chunker type (text, markdown, yaml, semantic).
- Token-based Sizing: Allows chunking by tokens for specific models, optimizing for model window size.
- Config File Alternative: Offers configuration via a TOML file for flexible settings.
- Programmatic Access: Provides Python API for programmatic control and integration.
- Use Case: When preparing documents for AI processing, this Skill can be used to split large text files into smaller chunks that fit within the model's context window, improving processing speed and accuracy.
Quick Start
Run the chunk command with the text you want to chunk, specifying the chunk size and overlap. For example: xberg chunk --text "Your text here" --chunk-size 500 --chunk-overlap 100