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

# Citations

> Trace every answer back to its source

<div style={{position: 'relative', paddingBottom: '56.25%', height: 0}}>
  <iframe src="https://www.youtube.com/embed/dAdeK38ZD9k" style={{position: 'absolute', top: 0, left: 0, width: '100%', height: '100%', border: 0}} allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />
</div>

Ana displays inline citations alongside its answers. Hover over any key number, name, or claim to see exactly where it came from — and click through to explore further.

## <Icon icon="diagram-project" iconType="solid" /> Data Lineage

Citations don't just show a source — they show the full chain of how a result was produced:

<Frame>
  <img src="https://cdn-landing.textql.com/blog-assets/inline-citations/data-lineage.png" alt="Citations data lineage in Ana" />
</Frame>

<Steps>
  <Step title="Connector">
    The data source Ana pulled from.
  </Step>

  <Step title="Tables">
    The specific tables accessed in your warehouse.
  </Step>

  <Step title="SQL Query">
    The exact query used to retrieve and aggregate the data.
  </Step>

  <Step title="Python Transform">
    Any transformations applied after the initial query.
  </Step>

  <Step title="Answer">
    The final value surfaced in Ana's response.
  </Step>
</Steps>

This lineage view lets you inspect each step — so when a number needs defending or something looks off, you know exactly where to look.

## <Icon icon="circle-check" iconType="solid" /> Benefits

<CardGroup cols={2}>
  <Card title="Auditability" icon="magnifying-glass">
    Every number traces back to its original source in your warehouse.
  </Card>

  <Card title="Transparency" icon="eye">
    See the complete derivation chain in one view without leaving the chat.
  </Card>

  <Card title="Faster Debugging" icon="bug">
    When something looks wrong, the lineage chain shows you exactly which step to investigate.
  </Card>

  <Card title="Defensible Answers" icon="shield-check">
    Share results with confidence — anyone can follow the citation back to the raw data.
  </Card>
</CardGroup>

## <Icon icon="gear" iconType="solid" /> Enabling Citations

Enable the **Citations** toggle in **Settings** to turn on inline citations for your workspace.
