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

# Chat Interface

> The core analytical workspace for natural language queries

<Frame>
  <img src="https://mintcdn.com/arivu/piekGGEpY74vFGfF/images/arivu-chat-dash.png?fit=max&auto=format&n=piekGGEpY74vFGfF&q=85&s=22cbfaba2f9c3a4f3a5d609dd39988d9" alt="Chat Interface" className="rounded-xl" width="1916" height="912" data-path="images/arivu-chat-dash.png" />
</Frame>

The Chat interface is the heart of the Arivu Dashboard. It transforms natural language into verified SQL, executes it against your connected database, and returns rich, interactive results.

## Response Modes

Every assistant response supports three distinct views, organized in a tabbed card:

<Tabs>
  <Tab title="Response">
    The LLM's natural language summary of the data, rendered in Markdown. Includes reasoning and contextual explanations.

    <img src="https://mintcdn.com/arivu/piekGGEpY74vFGfF/images/chat-res.png?fit=max&auto=format&n=piekGGEpY74vFGfF&q=85&s=c5eb0e3f70ba1fdb0c94cf2b07e35d6e" alt="Chat Dark Mode" className="hidden dark:block rounded-xl" width="1401" height="805" data-path="images/chat-res.png" />
  </Tab>

  <Tab title="Visualize">
    Interactive, theme-aware charts generated using **Thesys C1 Generative UI**. This tab triggers the visualization API only when you switch to it, saving cost.

    <img src="https://mintcdn.com/arivu/piekGGEpY74vFGfF/images/chat-chart.png?fit=max&auto=format&n=piekGGEpY74vFGfF&q=85&s=2c685e6855299e331b675d1d6efe765f" alt="Chat Dark Mode" className="hidden dark:block rounded-xl" width="1541" height="816" data-path="images/chat-chart.png" />
  </Tab>

  <Tab title="Data Table">
    A scrollable table showing the raw SQL result rows. Includes a one-click **Export CSV** button for instant file downloads.

    <img src="https://mintcdn.com/arivu/piekGGEpY74vFGfF/images/chat-table.png?fit=max&auto=format&n=piekGGEpY74vFGfF&q=85&s=905afab7b381316d8f44a6882edc79a3" alt="Chat Dark Mode" className="hidden dark:block rounded-xl" width="1499" height="818" data-path="images/chat-table.png" />
  </Tab>
</Tabs>

## Smart Features

<AccordionGroup>
  <Accordion title="Follow-Up Suggestions" icon="lightbulb">
    After every response, Arivu generates 3 contextual follow-up questions as clickable bubbles. These are schema-aware and guide you deeper into your data.
  </Accordion>

  <Accordion title="Semantic Caching" icon="bolt">
    If you ask the same question twice within 5 minutes, Arivu instantly returns the cached result without re-running the pipeline.
  </Accordion>

  <Accordion title="Self-Healing SQL" icon="wand-magic-sparkles">
    If the generated SQL has a syntax error, the `query_verifier` loops back to the `sql_generator` automatically. Up to 3 retries before escalating to the error boundary.
  </Accordion>
</AccordionGroup>
