RetrievalConfig
Defined in the RAG module.Rust AI Agent SDK Unified retrieval configuration (Agent-first).
Fields
| Name | Type | Description |
|---|---|---|
enabled | bool | Enable RAG |
rag | RAGConfig | RAG configuration |
sources | Vec<String> | Knowledge sources |
auto_retrieve | bool | Auto-retrieve on every query |
Methods
new
enable
source
| Name | Type |
|---|---|
source | impl Into<String> |
rag
| Name | Type |
|---|---|
config | RAGConfig |
Source
View on GitHub
praisonai/src/rag/mod.rs at line 294
