How It Works
Quick Start
1
Simple Usage
Strategy selection is automatic when you attach knowledge to an agent:
2
With Configuration
Override the auto-selected strategy via
KnowledgeConfig.config:Strategy Selection
Configuration Options
CLI Usage
Best Practices
Start with auto-selection
Start with auto-selection
Let the SDK pick the strategy from corpus size unless you have measured latency or quality requirements.
Enable rerank for large corpora
Enable rerank for large corpora
Set
rerank=True when retrieval_k is high — reranking improves relevance on noisy result sets.Use hybrid for mixed terminology
Use hybrid for mixed terminology
Technical docs with exact identifiers benefit from
strategy="hybrid" or hybrid=True.Profile before overriding
Profile before overriding
Run a few queries with auto-selection first; only pin a strategy when benchmarks show a clear win.
Related
Retrieval Configuration
Configure retrieval behaviour on agents
Vector Store
Pluggable embedding store with namespace support

