Splits text and documents into chunks for RAG, embedding preparation, and vector database ingestion.

Description

Chonkie is an open-source Python library for splitting text and documents into chunks before indexing them in retrieval-augmented generation systems. It prepares content for search and subsequent language-model processing. It supports token-based, sentence-based, hierarchical, and semantic chunking. Developers can chain processing steps into pipelines and send resulting chunks to supported vector databases. Chonkie is used to ingest knowledge bases, documents, and source code. It installs as a Python package, with optional dependencies for particular chunkers and integrations. The core library is free and can run locally. Retrieval quality depends on chunking choices, embeddings, and input data; external models, databases, and infrastructure may have separate costs.