Chonkie
A RAG ingestion library for Python and JavaScript that processes documents locally and supports a self-hosted REST API under the MIT license.

Chonkie is a library for developers preparing documents for retrieval-augmented generation (RAG). It brings document preparation and ingestion into one pipeline, with optional components to keep dependencies small.
- Document preparation: Load text from files or directories, clean it, and process structured Markdown or CSV and Excel tables.
- Text chunking: Split multilingual text by tokens or sentences, use semantic chunking, or choose an accelerated byte-based splitter.
- Chunk refinement: Merge overlapping chunks based on similarity and attach embeddings through a chosen provider.
- Storage and export: Send chunks to vector databases or export them as JSON files and HuggingFace datasets.
- Reusable pipelines: Connect processing stages into workflows available through the library or its REST API.
Chonkie is open source under the MIT license, with Python and JavaScript support. It can process data locally or run in the cloud, and its self-hosted API supports Docker. External services affect where data goes: the optional Mistral OCR integration sends images and PDFs to Mistral's API for text extraction. It also provides coding-agent skills for Claude Code, Cursor and Copilot.