Skip to main content
Configure knowledge sources, embedding, chunking, and retrieval settings for RAG-powered agents.

Quick Start

1

Simple Usage

Add knowledge sources directly:
2

With Configuration

Configure retrieval settings:

Configuration Options


Common Patterns

Pattern 1: High-Precision Retrieval

Pattern 2: Custom Chunking

Pattern 3: External Vector Store

chroma is the shipped default. Providers like qdrant are plugin adapters — register them first.
Only chroma ships as a top-level Knowledge adapter. qdrant, pinecone, weaviate, and similar stores need register_knowledge_adapter(name, adapter_cls) first — see Custom Knowledge Adapters. For a copy-paste-runs example, use "provider": "chroma".

Best Practices

Semantic chunking preserves context better than fixed-size chunks, especially for technical documentation.
Reranking improves retrieval precision by using a cross-encoder to reorder results.
Use retrieval_threshold to filter low-quality matches and prevent hallucination.
Keep auto_retrieve=True to automatically inject relevant context into prompts.

Knowledge Overview

Learn about the knowledge system

RAG

RAG configuration and features