RAG Config • AI Agent SDK
RAGConfig: Configuration for RAG pipeline.
RAGConfig
Defined in the models module.
AI Agent
Configuration for RAG pipeline.
Attributes: top_k: Number of chunks to retrieve min_score: Minimum relevance score threshold max_context_tokens: Maximum tokens for context include_citations: Whether to include citations in result retrieval_strategy: Strategy for retrieval (basic, fusion, hybrid) rerank: Whether to rerank results rerank_top_k: Number of results after reranking template: Prompt template with {context} and {question} placeholders system_prompt: Optional system prompt for LLM stream: Whether to stream responses
Properties
intNo description available.
floatNo description available.
intNo description available.
boolNo description available.
RetrievalStrategyNo description available.
boolNo description available.
intNo description available.
Optional[str]No description available.
strNo description available.
Optional[str]No description available.
boolNo description available.
Internal & Generic Methods
- from_dict: Create from dictionary.
- to_dict: Convert to dictionary.
Source
View on GitHubpraisonaiagents/rag/models.py at line 188