> For the complete documentation index, see [llms.txt](https://docs.lumi-ai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lumi-ai.com/product-features/chat.md).

# Chat

## Overview[​](http://localhost:3000/docs/product-features/chat#overview) <a href="#overview" id="overview"></a>

The ‘Chat’ module is the primary interface to query your data.

* Simply ask questions in plain language.
* Latency depends on your connection type and query complexity.
  * Simple questions: \~10-15 seconds
  * Complex queries: up to 30-45 second

{% hint style="info" %}
To learn more about the types of questions that can be asked, view [Lumi Use Cases](/using-lumi/lumi-use-cases.md).
{% endhint %}

{% hint style="info" %}
Learn more about [Prompting Best Practices](/using-lumi/best-practices/prompting-best-practices.md).
{% endhint %}

{% embed url="<https://youtu.be/nAHdDgPXG2U>" %}

## Start Chat[​](http://localhost:3000/docs/product-features/chat#start-chat) <a href="#start-chat" id="start-chat"></a>

To start a chat, you must first select the knowledge base.

<figure><img src="https://1092914297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbsNNtXffkOLYrtYRQIcx%2Fuploads%2F5OkIk6RPCijk9TTOxzzU%2Fimage.png?alt=media&amp;token=6a16f9ae-83ac-4d90-b8b2-53f170f70c4b" alt=""><figcaption></figcaption></figure>

### Analysis​ and Contextualization

A key capability Lumi provides is transparency into how it performs structured, data-driven decision-making. It begins by translating your question into a form the LLM can interpret, then identifies and isolates the exact data needed to run the analysis.

<figure><img src="https://1092914297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbsNNtXffkOLYrtYRQIcx%2Fuploads%2FHGXls84xLdLmQE2yweTp%2FChatStart11.png?alt=media&amp;token=2a21f99f-5609-4d83-82fc-572873749a4a" alt=""><figcaption></figcaption></figure>

### Explained Overview

Explanation is a very helpful view of the steps that Lumi took to generate the returned data. This is useful to check overall logic.

<figure><img src="https://1092914297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbsNNtXffkOLYrtYRQIcx%2Fuploads%2FezHbju39XfMq5eyRWrDp%2Fchatstart12.png?alt=media&amp;token=da931b4e-9b7b-44b6-8bef-089f9f08940a" alt=""><figcaption></figcaption></figure>

### SQL Code

Local Code defines the query that was run to generate the returned data. This is critical for technical understanding and validating the returned data.

<figure><img src="https://1092914297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbsNNtXffkOLYrtYRQIcx%2Fuploads%2FByzKOT9LqNGpM3NwV597%2Fimage.png?alt=media&amp;token=44a5f4f1-e5eb-4f9e-a26a-ee6ca65e1e3e" alt=""><figcaption></figcaption></figure>

## Data Display (Tables and Charts) <a href="#start-chat" id="start-chat"></a>

Upon returning data from a given query, an interactive display is available to understand returned data. Data can be viewed in both a Table or Chart form. Data can also be downloaded for full accessibility as well as copied to clipboard.

<figure><img src="https://1092914297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbsNNtXffkOLYrtYRQIcx%2Fuploads%2FrGScFcJCGpTUnOMKmKMi%2FChatStart10.png?alt=media&amp;token=2f12de38-15b1-423b-9482-e1689ca20f94" alt=""><figcaption></figcaption></figure>

<br>
