Skip to main content
Optimise how documents are split into chunks for better retrieval quality.
The user uploads documents; they are chunked and embedded, and the agent retrieves the best slices for each question. Optimize how documents are split into chunks for better retrieval quality.

Chunking Options

Strategies

Fixed Size (Default)

Semantic

Sentence-Based

Best Practices

Technical docs: 500–800 tokens with 50–100 overlap (semantic). FAQs: 200–400 with 20–50 overlap (fixed).
Use 800–1200 token chunks with 100–200 overlap and semantic splitting for narrative content.
Keep code chunks around 300–500 tokens with ~50 overlap; prefer fixed splitting for source files.

Knowledge Base

Build a knowledge base

Knowledge Module

Full API reference