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 str

No description available.

ResponseField List[Citation]

No description available.

ResponseField str

No description available.

ResponseField str

No description available.

ResponseField Dict[str, Any]

No description available.

Methods

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

Source

View on GitHub

praisonaiagents/rag/models.py at line 131


Related Documentation