> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# RAG Result • AI Agent SDK

> RAGResult: Result from a RAG query.

# RAGResult

> Defined in the [**models**](../modules/models) module.

<Badge color="blue">AI Agent</Badge>

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 name="answer" type="str">
  No description available.
</ResponseField>

<ResponseField name="citations" type="List">
  No description available.
</ResponseField>

<ResponseField name="context_used" type="str">
  No description available.
</ResponseField>

<ResponseField name="query" type="str">
  No description available.
</ResponseField>

<ResponseField name="metadata" type="Dict">
  No description available.
</ResponseField>

## Methods

<CardGroup cols={2}>
  <Card title="has_citations()" icon="function" href="../functions/RAGResult-has_citations">
    Check if result has citations.
  </Card>

  <Card title="format_answer_with_citations()" icon="function" href="../functions/RAGResult-format_answer_with_citations">
    Format answer with inline citation references.
  </Card>
</CardGroup>

<Accordion title="Internal & Generic Methods">
  * **from\_dict**: Create from dictionary.
  * **to\_dict**: Convert to dictionary.
</Accordion>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/rag/models.py#L131">
  `praisonaiagents/rag/models.py` at line 131
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="RAG Concept" icon="magnifying-glass" href="/docs/concepts/rag" />

  <Card title="RAG Overview" icon="database" href="/docs/rag/overview" />

  <Card title="Chunking Strategies" icon="scissors" href="/docs/rag/strategies/overview" />
</CardGroup>
