Skip to main content
PraisonAI integrates chonkie for high-performance document chunking.
The user queries long sources; chunking controls what reaches retrieval. PraisonAI integrates chonkie for high-performance document chunking.

Quick Start

1

Default chunking on an agent

Available Strategies

Token Chunking

Fixed-size token chunks. Fast and predictable.

Sentence Chunking

Split at sentence boundaries. Natural flow.

Recursive Chunking

Hierarchical splitting. Great for markdown.

Semantic Chunking

Similarity-based splits. Topic coherence.

Chunker Configuration

All Parameters

Strategy Examples

Which Strategy Should I Use?


How It Works

The user adds documents; the chunking engine splits them by the chosen strategy, embeds each chunk, and stores it for retrieval.

Installation

This installs the chonkie library automatically.

Best Practices

Smaller chunks improve precision for Q&A; larger chunks preserve narrative for summarisation tasks.
Run pip install "praisonaiagents[knowledge]" so chonkie and indexing backends load only when needed.
Tune overlap on a representative document before indexing an entire corpus.
Combine chunking with hybrid search and reranking for better recall on long knowledge bases.

Knowledge Base

Configure knowledge sources and retrieval

RAG Agents

Build retrieval-augmented agents

Bot Platform Capabilities

How platform capabilities drive this feature