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.
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) -> Self
Set the configuration
Parameters:
model
fn model(mut self, model: impl Into<String>) -> Self
Set the model
Parameters:
| Name | Type |
|---|
model | impl Into<String> |
source
fn source(mut self, source: impl Into<String>) -> Self
Add a source
Parameters:
| Name | Type |
|---|
source | impl Into<String> |
build
fn build(self) -> Result<RAG>
Build the RAG pipeline
Source
View on GitHub
praisonai/src/rag/mod.rs at line 558