# Creating Knowledge Bases

#### Step 1 — Create a New Knowledge Base

1. Open the **Knowledge Base panel** from the left navigation panel
2. Click **Create New**
3. Enter a clear, descriptive name for your Knowledge Base — e.g., `Competitor Research – Q2 2026`
4. Click **Proceed**

***

#### Step 2 — Add Files

You will be prompted to add files immediately after creation. There are two ways to do this:

***

**Option A: Upload New Files**

Drag and drop files or click **Browse** to select from your system.

**Supported formats:** PDF, DOCX, TXT, Images

**Upload limits:**

| File Type | Limit                              |
| --------- | ---------------------------------- |
| Images    | Max 20 MB per image                |
| Documents | Max 1,000 pages or 200 MB per file |

> **Note:** Credits are consumed when uploading documents. Larger files cost more credits to process.

***

**Option B: Choose From Upload History**

Select previously uploaded files from your workspace without re-uploading them. Use the **Filter** option to narrow results by:

* Files
* URLs
* Images

**Selection limits:**

| Type           | Limit             |
| -------------- | ----------------- |
| Files and URLs | Max 20 selections |
| Images         | Max 10 selections |

***

#### Step 3 — Review and Confirm

Once files are selected, they appear at the top of the selection panel. Remove any incorrect selections using the **✕ icon**, then click **Add to Knowledge Base**.

Your Knowledge Base is now created and ready to use in any chat.


---

# Agent Instructions: 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:

```
GET https://docs.qolaba.ai/chatbot/adding-context-and-resources/knowledge-bases/creating-knowledge-bases.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
