Skip to main content

RAGConfig

Defined in the RAG module.
Rust AI Agent SDK Configuration for RAG pipeline.

Fields

Methods

new

Create a new RAGConfig

top_k

Set top_k Parameters:

score_threshold

Set score threshold Parameters:

max_context_tokens

Set max context tokens Parameters:

strategy

Set retrieval strategy Parameters:

citations_mode

Set citations mode Parameters:

rerank

Enable reranking Parameters:

compress

Enable compression Parameters:

Source

View on GitHub

praisonai/src/rag/mod.rs at line 202

Rust Configuration

Rust Installation

Rust RAG

Rust Retrieval

Rust Vector Store