RAG Builder • Rust AI Agent SDK
RAGBuilder: Builder for RAG
RAGBuilder
Defined in the RAG module.
Rust AI Agent SDK
Builder for RAG
Fields
| Name | Type | Description |
|---|---|---|
config | RAGConfig | – |
model | Option<String> | – |
sources | Vec<String> | – |
Methods
config
fn config(mut self, config: RAGConfig) -> SelfSet the configuration
Parameters:
| Name | Type |
|---|---|
config | RAGConfig |
model
fn model(mut self, model: impl Into<String>) -> SelfSet the model
Parameters:
| Name | Type |
|---|---|
model | impl Into<String> |
source
fn source(mut self, source: impl Into<String>) -> SelfAdd a source
Parameters:
| Name | Type |
|---|---|
source | impl Into<String> |
build
fn build(self) -> Result<RAG>Build the RAG pipeline
Source
View on GitHubpraisonai/src/rag/mod.rs at line 564