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

# Chat All — Library Search

## What is Chat All?

The **Chat** tab searches across **all your uploaded files** at once. Instead of opening one file at a time, you can ask a question and Knowbase finds the answer from whichever files are most relevant.

## How to use it

1. Click the **Chat** tab in the top navigation
2. Type your question
3. Knowbase searches your entire library and returns an answer with citations from multiple files

## Narrowing the search

You can control what gets searched:

* **Drop files** into the chat input to search only those specific files
* **Toggle Library** on/off using the library icon in the input bar
* The **context label** above the input shows what's currently being searched

{% hint style="info" %}
**Example:** Drop two quarterly reports into the chat, then ask "Compare Q1 and Q2 performance." Knowbase will only search those two files.
{% endhint %}

## Chat All vs File Chat

| Feature          | Chat All               | File Chat              |
| ---------------- | ---------------------- | ---------------------- |
| Searches         | Entire library         | Single file            |
| Opens from       | Chat tab               | Library > click file   |
| Best for         | Cross-document queries | Deep-dive into one doc |
| File attachments | Yes                    | No                     |


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.knowbase.ai/chat/chat-all.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
