Skip to main content

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.

AutoRagAgent

Defined in the specialized module.
Rust AI Agent SDK Auto RAG agent for automatic RAG setup

Fields

NameTypeDescription
configAutoRagConfigConfiguration
sourcesVec<String>Document sources
indexedboolIndexed

Methods

new

fn new(config: AutoRagConfig) -> Self
Create a new AutoRAG agent Parameters:
NameType
configAutoRagConfig

add_source

fn add_source(&mut self, source: impl Into<String>) -> ()
Add a document source Parameters:
NameType
sourceimpl Into&lt;String&gt;

add_sources

fn add_sources(&mut self, sources: impl IntoIterator<Item = impl Into<String>>) -> ()
Add multiple sources Parameters:
NameType
sourcesimpl IntoIterator&lt;Item

index

fn index(&mut self) -> Result<(), String>
Index documents

query

fn query(&self, query: &str) -> Result<Vec<String>, String>
Query the RAG system Parameters:
NameType
query&str

is_indexed

fn is_indexed(&self) -> bool
Check if indexed

sources

fn sources(&self) -> &[String]
Get sources

Source

View on GitHub

praisonai/src/parity/specialized.rs at line 436

Rust Agent

Rust Overview

Rust Quickstart

Rust Installation

Rust Autonomy