# 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 [Question Types](http://localhost:3000/docs/using-lumi/question-types).
{% endhint %}

{% hint style="info" %}
Learn more about [Prompting Best Practices](https://docs.lumi-ai.com/using-lumi/best-practices/prompting-best-practices) and [Limitations](https://docs.lumi-ai.com/product-features/broken-reference).
{% 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%2FvQhaMPsDZCpljNqRYvlP%2FChatStart1.png?alt=media&#x26;token=a333e9f8-f3cf-419b-86cf-f5ab8f6369cb" 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&#x26;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&#x26;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&#x26;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&#x26;token=2f12de38-15b1-423b-9482-e1689ca20f94" alt=""><figcaption></figcaption></figure>

<br>
