Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
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
Create a new RetrievalConfig
enable
fn enable(mut self) -> Self
Enable retrieval
source
fn source(mut self, source: impl Into<String>) -> Self
Add a source
Parameters:
| Name | Type |
|---|
source | impl Into<String> |
rag
fn rag(mut self, config: RAGConfig) -> Self
Set RAG config
Parameters:
Source
View on GitHub
praisonai/src/rag/mod.rs at line 294