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
Use Semantic Chunking for Documents
Use Semantic Chunking for Documents
Semantic chunking preserves context better than fixed-size chunks, especially for technical documentation.
Enable Reranking for Accuracy
Enable Reranking for Accuracy
Reranking improves retrieval precision by using a cross-encoder to reorder results.
Set Retrieval Threshold
Set Retrieval Threshold
Use
retrieval_threshold to filter low-quality matches and prevent hallucination.Auto-Retrieve by Default
Auto-Retrieve by Default
Keep
auto_retrieve=True to automatically inject relevant context into prompts.Related
Knowledge Overview
Learn about the knowledge system
RAG
RAG configuration and features

