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

ResponseField int

No description available.

ResponseField float

No description available.

ResponseField int

No description available.

ResponseField bool

No description available.

ResponseField RetrievalStrategy

No description available.

ResponseField bool

No description available.

ResponseField int

No description available.

ResponseField Optional[str]

No description available.

ResponseField str

No description available.

ResponseField Optional[str]

No description available.

ResponseField bool

No description available.

Internal & Generic Methods
  • from_dict: Create from dictionary.
  • to_dict: Convert to dictionary.

Source

View on GitHub

praisonaiagents/rag/models.py at line 188


Related Documentation