# Local Knowledge Base Tutorial

Chatbox version 1.15 introduced the local knowledge base feature. Users can create knowledge bases in settings and import documents. After documents are successfully imported, you can select the knowledge base in the conversation interface for Q\&A. Below is the detailed usage process.

### Creating a Knowledge Base

Go to **Settings - Knowledge Base** page, click Create Knowledge Base, enter the knowledge base name, and select the models required for the knowledge base.

For Chatbox AI paid users, you can choose Chatbox AI as the model provider for the knowledge base. Free users can also use their own API.

**Embedding Model:** Used to convert documents into vectors

**Rerank Model:** Optional. When configured, you can get more accurate search results, which helps improve answer quality

**Vision Model:** Optional. When configured, you can add images to the knowledge base, and text in images will be extracted and indexed

<figure><img src="/files/015Ag5D37qDHluFNzwnT" alt=""><figcaption><p>Create Knowledge Base</p></figcaption></figure>

### Adding Documents to the Knowledge Base

Drag in or click to browse files, wait for file processing to complete.

{% hint style="info" %}
Due to local parsing limitations, some files may fail to parse, such as PDFs with complex content layouts. In such cases, you can use other professional software to extract PDF content to text files, or you can ignore the failure and continue importing other files.
{% endhint %}

<figure><img src="/files/ZB6WqiRmEuBiiTDLBjZs" alt=""><figcaption><p>Add Files</p></figcaption></figure>

### Querying the Knowledge Base

Create a new conversation, select the knowledge base you just created from the toolbar in the input box

<figure><img src="/files/8ulWM1BlRICO83ridzR8" alt=""><figcaption><p>Select Knowledge Base</p></figcaption></figure>

Then you can ask questions freely

<figure><img src="/files/3KtI82yZDnhQrdoPZoWF" alt=""><figcaption></figcaption></figure>


---

# 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.chatboxai.app/en/guides/knowledge-base.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.
