RAG Result • AI Agent SDK
RAGResult: Result from a RAG query.
RAGResult
Defined in the models module.
AI Agent
Result from a RAG query.
Attributes: answer: The generated answer text citations: List of source citations context_used: The context string passed to the LLM query: The original query metadata: Additional metadata (timing, model info, etc.)
Properties
ResponseField
strNo description available.
ResponseField
List[Citation]No description available.
ResponseField
strNo description available.
ResponseField
strNo description available.
ResponseField
Dict[str, Any]No description available.
Methods
has_citations()
Check if result has citations.
format_answer_with_citations()Format answer with inline citation references.
Internal & Generic Methods
- from_dict: Create from dictionary.
- to_dict: Convert to dictionary.
Source
View on GitHubpraisonaiagents/rag/models.py at line 131