Skip to main content
PraisonAI integrates chonkie, a high-performance chunking library, to provide flexible document processing strategies.

Quick Start

Available Strategies

Choosing a Strategy

Agent Configuration

Simplest (Default Strategy)

With Chunking Config

All Chunker Options

Strategy Details

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.

Installation

Chunking requires the knowledge extra:
This installs the chonkie library automatically.
If you skip the [knowledge] extra and select a semantic-family chunker (semantic, sdpm, or late β€” semantic is the default), the first Knowledge.add(...) or agent.start(...) call raises:
Fix by installing the extra, or by choosing a chunker that does not need chonkie’s embeddings (sentence, paragraph, fixed, token). Since PraisonAI PR #5105.