# Chat Table

{% embed url="<https://www.jamaibase.com/_app/immutable/assets/Chat-Table.149z18hV.mp4>" %}
Demo of Chat Table Usage
{% endembed %}

## Basic Usage

1. Every chat table needs a LLM Agent. Let's create our agent. **>> Chat Table >> Agents >> New Agent.**

<figure><img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2Fkl4Y0TAO3Ks8gQqfYaM7%2FScreenshot%20(257).png?alt=media&#x26;token=8e99e909-cf0f-4e11-a1bb-9aac32267522" alt=""><figcaption></figcaption></figure>

2. Let's add and configure our LLM Agent.

<figure><img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2FeKuXWtehflaH2wvODFuh%2FScreenshot%20(256).png?alt=media&#x26;token=31149c42-9da5-4c1f-90f6-14315519ef44" alt=""><figcaption></figcaption></figure>

Configuration Parameters:

* Agent ID: Name of your agent.
* Models: LLM Model.
* Temperature:
* Max tokens:
* Top-p:
* Customize system prompt (<mark style="color:orange;">optional</mark>): Define the behaviour of your LLM Agent.
* User message (<mark style="color:orange;">optional</mark>): Set a first reply to your LLM Agent.
* AI response (<mark style="color:orange;">optional</mark>): Conversational opener by your LLM Agent.

3. Select the **LLM Agent** that you have created and create a **new conversation.**

<figure><img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2F3bp3rF8fnKg4YRKOcdMo%2FScreenshot%20(257).png?alt=media&#x26;token=ff2990ed-b904-4fe6-87d6-0205ce219159" alt=""><figcaption></figcaption></figure>

4. You will be brought to the **Chat Table** interface.

<figure><img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2FnBqOkSZbBQgjGmFQF646%2FScreenshot%20(261).png?alt=media&#x26;token=0e2b27c3-4983-49c8-82df-ce85c8167a00" alt=""><figcaption></figcaption></figure>

5. Toggle between **Conversation Mode** and **Table Mode** using the toggle bar on the top right of the interface.

<figure><img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2FLwbxJ5Opfo3rwrUUNZaP%2FToggleChat-Table.png?alt=media&#x26;token=22f878c5-79c8-47cf-8446-bc5fc56ea951" alt=""><figcaption><p>Toggle button is circled in Orange.</p></figcaption></figure>

6. Start chatting with your LLM Agent.

<figure><img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2FCoO3HtRrL79y7yHYftSs%2FScreenshot%20(266).png?alt=media&#x26;token=4f141db2-11ce-4e2d-90a4-fd649fb90901" alt=""><figcaption></figcaption></figure>

<figure><img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2FOeKnsVAMhf4eNDJNry8T%2FScreenshot%20(267).png?alt=media&#x26;token=f46ecc14-df91-4a5a-90cc-c2eff1b6bed3" alt=""><figcaption></figcaption></figure>

## Advanced Usage: Chat with your Knowledge Table

1. After creating your LLM Agent, select it. Click on the LLM Agent. You will be brought to a **Table View**.
2. Update the LLM Agent configuration to use RAG.
   1. If you are in **Table View. Click on the** <img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2Fzt91xt8QdMURiy4elkEa%2Fmore.png?alt=media&#x26;token=699bac55-a55c-4448-9f62-5682c8516163" alt="" data-size="line">  of **AI** (<mark style="color:orange;">output</mark> column)and **open settings.**
   2. If you are in **Conversation View. Click** <img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2FjbPAdx9ZUzUSjRVu5FXT%2Fsettings.png?alt=media&#x26;token=0f8efd18-a9a3-437d-ba59-89f230375670" alt="" data-size="line"> to bring up the Model setting.
3. There are a few settings to configure:

* **k**: The number of maximum Knowledge Row that can be fetched as references during RAG.
* **Reranking Model** (<mark style="color:orange;">optional</mark>): Reranking the Knowledge Row retrieved before passing it into LLM Agent.
* **Knowledge Table**: The table to search for Knowledge Rows as references.

<figure><img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2FfXFLWABieezcO1u7D9uh%2FScreenshot%20(263).png?alt=media&#x26;token=53d66901-c75c-4ab3-abdf-a9562feed182" alt=""><figcaption></figcaption></figure>

4. Start chatting.
