Chonkie
Lightweight chunking library for RAG pipelines with token, sentence, semantic, code, and table chunkers.
About
Chunking is the unglamorous center of every RAG pipeline, and Chonkie packs the common strategies into one small dependency. Chunkers include token, fast, sentence, recursive, semantic, code, neural, table, late chunking, and an LLM-driven slumber chunker, with refineries that merge overlapping chunks or attach embeddings afterward. More than 32 integrations plug in across tokenizers, embedding providers such as OpenAI and Cohere, LLMs, and vector databases, while the purely structural chunkers run with no network access at all. The library is deliberately lean, about a 505 KB wheel and a 49 MB installed footprint versus 80 to 171 MB for comparable frameworks, and installs with pip install chonkie. A REST API server with Docker support opens it to non-Python consumers, documentation lives at docs.chonkie.ai, and the maintainers run a hosted cloud alongside the library. The core is MIT licensed with about 4,600 stars, and the repository now sits under the feyninc organization as the company behind it operates as Feyn Labs. RAG developers reach for it when heavyweight frameworks are overkill and tested chunking primitives are enough.
Should you use Chonkie?
Pick it when
Use Chonkie when you are writing your own RAG pipeline and only need solid chunking, such as semantic, code, or table splits, without pulling a full framework into a container or serverless function where install size matters.
Look elsewhere when
Skip it if you already build on LlamaIndex or LangChain and their splitters are good enough, or if your real problem is getting clean text out of PDFs and layouts; Docling or Unstructured handle that extraction step.
Alternatives to Chonkie
- LlamaIndex
Node parsers come bundled with loaders, indexes, and query engines, so no extra dependency if you already use it, but a much larger install than Chonkie.
- Unstructured
Partitions 60+ file formats into typed elements and includes chunking, covering the extraction step before chunking, but with a heavier install and system dependencies.
- Docling
Converts PDFs and Office files to Markdown with layout and table recognition; it solves extraction rather than chunking, so it pairs with Chonkie more than it replaces it.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Category
- RAG & Document Retrieval
- Price
- Freemium
- Platform
- Hybrid
- Difficulty
- Easy (2/5)
- License
- MIT
- Added
- Jul 29, 2026