# Action Table

{% embed url="<https://www.jamaibase.com/_app/immutable/assets/Action-Table.CsAFJSZa.mp4>" %}
Demo on Action Table Usage
{% endembed %}

1. Go to **>> Project >> Action Table**

<figure><img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2F0m3lUA4ZvySHNPfAHO1M%2FScreenshot%20(270).png?alt=media&#x26;token=e6ee7b2a-a6fc-4ccc-8ca7-2809b67aa0ce" alt=""><figcaption></figcaption></figure>

2. Create a **New Action Table**. Define the **Column ID** and the **Data Type**. Each column can be specified as **Output** ( :heavy\_check\_mark: ) or **Input. Every Output Column is an LLM Agent.**

<figure><img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2FlKHXVsD5e5DHEJKD2fvW%2FScreenshot%20(272).png?alt=media&#x26;token=6329ba7c-eef8-4310-9705-40749c23f81c" alt=""><figcaption></figcaption></figure>

3. Open up the created table.
4. Configure all the **Output Columns,** by c**licking 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 the **Output Column** and **open settings.**

* Under **Prompt** tab, you can write the prompt of the LLM Agent. You can referenced any of the column to the left of the current column. E.g. In this case. **Malay** Output Column can reference the Fruit Name Column as an input in its prompt, but not any other columns (Chinese, Arabic, etc,) which are to the right of the **Malay** Output Column.

<figure><img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2FdFGmR2IwNzKscdh0Oqlw%2FScreenshot%20(274).png?alt=media&#x26;token=8eaa711a-34d7-48a9-8be3-98c9257d7fab" alt=""><figcaption><p>Specify your prompt</p></figcaption></figure>

<figure><img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2F3wLgoyYpZpR2QDlYhHyK%2FScreenshot%20(275).png?alt=media&#x26;token=9da9b8ca-ad11-4954-85ec-ef0bf887d767" alt=""><figcaption><p>Define your LLM Agent Parameters</p></figcaption></figure>

5. **Click** **Update.**
6. Start using the table!
   1. On the **app.jamaibase.com,** in the table view, click <img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2FjibSYo6Gn7zIgWkFn21S%2FScreenshot%20(278)-AddRow.png?alt=media&#x26;token=7fa157f1-3827-4ed9-99cf-f157f51a95b4" alt="" data-size="line">

      <figure><img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2FPDenTqgOr76DMzWlHUFd%2FScreenshot%20(277).png?alt=media&#x26;token=7b29da14-a81e-4ce7-8073-4817663fd9c0" alt=""><figcaption></figcaption></figure>
   2. You can also add row through our SDK [Broken link](https://docs.jamaibase.com/using-the-platform/broken-reference "mention"). at endpoint app.jamaibase.com with auth.

## Advanced Usage: Give your LLM Agent Knowledge

1. When you are updating the configuration  <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 the Output Column, enable the **RAG.**
2. 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 where LLM Agent will search for Knowledge Rows and use it as references.

<figure><img src="https://949944545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRNnvWSkFcg9eUeFklENf%2Fuploads%2F0yvHjh0aeO9jvX0d7s1a%2FScreenshot%20(279).png?alt=media&#x26;token=d2f943aa-84d0-4e7a-84dd-0bf83e35fa56" alt=""><figcaption></figcaption></figure>
