> For the complete documentation index, see [llms.txt](https://docs.tonic.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tonic.ai/fabricate/data-agent-chat/data-agent-db-chat-memory.md).

# Managing Data Agent chats

Data Agent chats have a size limit. As you interact with the Data Agent, Fabricate updates the percentage of the size limit that you have used.

As you get closer to the limit, the response time can slow down.

To prevent response time issues, and to keep your chats focused, you can create multiple chats. For example, for a more complex database, you might use different chats to manage different areas of the data.

## Viewing the chat usage <a href="#view-chat-usage" id="view-chat-usage"></a>

To display a summary of the chat usage, hover over the usage icon.

<figure><img src="https://4109733485-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmoU4gTR9LxlzHeWmQCUZ%2Fuploads%2F0cFvlpHj5N50hnxihJqT%2FDataAgent_UsageTooltip.png?alt=media&amp;token=a47192ab-b1ee-4bf7-bd97-f23bf09f30d1" alt=""><figcaption><p>Data Agent usage tooltip with the chat usage summary</p></figcaption></figure>

To add the token count to the cost breakdown, press the Shift key.

<figure><img src="https://4109733485-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmoU4gTR9LxlzHeWmQCUZ%2Fuploads%2F295lqDd9L66dJBnhK4iI%2FDataAgent_UsageTooltipWithTokenCounts.png?alt=media&amp;token=8290a14c-e67e-48f1-ac47-7af2de04ebba" alt=""><figcaption><p>Usage tooltip with token counts</p></figcaption></figure>

To display additional details about the chat caching:

1. Click the usage icon. This pins the panel open.
2. Click **Show more**.

<figure><img src="https://4109733485-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmoU4gTR9LxlzHeWmQCUZ%2Fuploads%2FHPLBkYNMuBWRcPWOvW93%2FDataAgent_UsageTooltipShowMore.png?alt=media&amp;token=2e291052-323d-4b9c-8d1d-e041be7e45d2" alt=""><figcaption><p>Usage tooltip that is pinned open with Show more selected</p></figcaption></figure>

To hide the additional details, click **Show less**.

To unpin the panel, click the icon again.

## Creating a new chat

To start a new chat, at the top of the Data Agent:

1. Click the + icon.

<figure><img src="https://4109733485-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmoU4gTR9LxlzHeWmQCUZ%2Fuploads%2FK5D8xRdiTNexKuksAu4s%2FDataAgent_NewChatIcon.png?alt=media&amp;token=7eee85d4-d7f7-4753-9248-3f23e753cfc1" alt=""><figcaption><p>New chat menu</p></figcaption></figure>

2. From the dropdown:
   1. To create a completely new empty chat, select **New Chat**.
   2. To create a new chat that starts with a summary of the current chat, select **Summarize and fork**.

## Renaming a chat

To rename a chat:

1. Double-click the chat name.
2. In the field, type the new name.

<figure><img src="https://4109733485-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmoU4gTR9LxlzHeWmQCUZ%2Fuploads%2FnS0q0qhSFTEwuko9N3rV%2FDataAgent_ChatRename.png?alt=media&amp;token=b6327f35-2fc7-4e1a-a56c-6d0f558dd884" alt=""><figcaption></figcaption></figure>

3. Press Enter.

## Deleting a chat

To delete a chat:

1. Hover over the chat name.
2. Click the delete icon.

<figure><img src="https://4109733485-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmoU4gTR9LxlzHeWmQCUZ%2Fuploads%2FBRVnqNbVcnjXWK02uTH7%2FDataAgent_DeleteChat.png?alt=media&amp;token=dd41e7a5-4708-41f4-848e-f8da6bd54e50" alt=""><figcaption><p>Delete icon for a Data Agent chat</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.tonic.ai/fabricate/data-agent-chat/data-agent-db-chat-memory.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
