RetrievalConfig
Defined in the retrieval_config module.Unified configuration for Agent retrieval behavior. This is the SINGLE configuration surface that replaces:
- knowledge_config
- rag_config
Vector store configuration
vector_store_provider: Vector store provider (chroma, mongodb, etc.) vector_store_config: Provider-specific configuration collection_name: Collection/index name persist_path: Path for persistent storageEmbedding configuration
embedder_provider: Embedding provider embedder_model: Embedding model nameAdvanced options
auto_keywords: Keywords that trigger retrieval in auto mode auto_min_length: Minimum query length for auto retrieval context_template: Template for formatting retrieved context system_separation: Whether to use system prompt separation for safetyProperties
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
Methods
get_token_budget()
Get TokenBudget instance for this config.
get_strategy()
Get retrieval strategy based on config and corpus stats.
to_knowledge_config()
Convert to Knowledge-compatible config.
to_rag_config()
Convert to RAG pipeline config.
should_retrieve()
Determine if retrieval should be performed for a query.
Internal & Generic Methods
Internal & Generic Methods
- from_dict: Create from dictionary.
- to_dict: Convert to dictionary.

