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


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