Chonkie
AI / ML development tool · Free
A text chunking library for RAG: it helps prepare documents for embeddings using a chosen boundary strategy.
Also known as: chonkie-inc/chonkie; chonkie-text-chunking; chonk; rag-chunking

What you can use for free
A local code pipeline under MIT; rights for the selected models are checked separately.
Paid features and costs
Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights.
Access and limitations
A local code pipeline under MIT; rights for the selected models are checked separately. Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights.
Use cases
- Split documents into chunks for embeddings
- Obtain chunks and check their boundaries/context before generating embeddings
Example workflow
A possible workflow; this is not a report of hands-on testing.
Split documents into chunks for embeddings.
Before you start
- Test documents or tasks, and a quality criterion.
- Models, a runtime, and a computing budget.
Steps
- Choose a chunking strategy suited to the documents' structure and size.
- Obtain chunks and check their boundaries/context before generating embeddings.
- Connect the workflow to the application and make errors observable.
Check your result
- Check the result against reference examples and invalid inputs.
- Inference costs, model rights, and data handling have been established.
Choosing Chonkie
Split documents into chunks for embeddings
Choose this when
- Split documents into chunks for embeddings
- Obtain chunks and check their boundaries/context before generating embeddings
Requirements
- The documented REST server example installs chonkie[api,semantic,code,catsu].
Things to consider
- Costs and limits of free use: Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights.
- Terms of use: MIT for the code; dependencies have separate licenses.
- The README advises against chonkie[all] for production.
Frequently asked questions
What can you use for free in Chonkie?
A local code pipeline under MIT; rights for the selected models are checked separately.
What additional costs might arise with Chonkie?
Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights.
What terms of use matter for Chonkie?
MIT for the code; dependencies have separate licenses.
How do you get started with Chonkie?
Choose a chunking strategy suited to the documents' structure and size. Obtain chunks and check their boundaries/context before generating embeddings. Connect the workflow to the application and make errors observable.
How can I set up text processing without installing every dependency?
The base package is installed with pip/uv, while additional chunkers and integrations are separate extras. A pipeline combines recursive/semantic chunking, overlap, and embeddings; the chonkie serve REST server stores reusable pipeline configurations in local SQLite.
License
MIT for the code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- Chonkie
- ml
- Development