> ## 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.

# Citation • AI Agent SDK

> Citation: Source citation for RAG answers.

# Citation

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

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

Source citation for RAG answers.

Attributes:
id: Unique citation identifier (e.g., "\[1]", "\[2]")
source: Source document path or URL
text: Text snippet from the source
score: Relevance score (0-1)
doc\_id: Optional document identifier
chunk\_id: Optional chunk identifier within document
offset: Optional character offset in source
metadata: Additional metadata

## Properties

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

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

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

<ResponseField name="score" type="float">
  No description available.
</ResponseField>

<ResponseField name="doc_id" type="Optional">
  No description available.
</ResponseField>

<ResponseField name="chunk_id" type="Optional">
  No description available.
</ResponseField>

<ResponseField name="offset" type="Optional">
  No description available.
</ResponseField>

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

<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#L21">
  `praisonaiagents/rag/models.py` at line 21
</Card>
