Skip to main content
Split long documents into chunks for RAG pipelines and knowledge bases.

Quick Start

1

Simple Usage

2

With Configuration


Basic Usage

Chunking Strategies

By Size

By Sentence

By Paragraph

Semantic Chunking

Chunk Structure

Merge Small Chunks

Factory Function

Integration with Knowledge Base

kb.add('doc.pdf') already chunks internally using the chunker block of KnowledgeStoreConfig. Hand-chunk and store() only when you want to control the chunks yourself.

Chunking CLI

CLI knowledge commands

Knowledge Base

Store chunked documents

RAG Agent

Retrieval workflows