# Re-train Your Chatbot

## 1. Introduction

Our chatbot is designed to answer user queries using imported documents, web pages, and other relevant information. While it generally provides accurate responses, there are instances where its answers may fall short of expectations.

To address this issue, we've introduced a new feature called Q\&A data source. This feature empowers users to directly edit the chatbot's responses during testing and import them into the chatbot for optimization. Essentially, users can refine the chatbot's responses in real-time, ensuring they are more accurate and tailored to the specific context.

## 2. How to retrain your chabot?

There are three ways to help you retrain your chatbot for more tailored responses:

1. When you want to add more accurate Q\&A pairs, [import the Q\&A Corpus in the Data Source Management Panel](#id-2.1-importing-q-and-a-corpus-in-the-data-source-management-panel).&#x20;
2. When debugging your chatbot, consider [re-editing answers in the Chatbot Interface](#id-2.2-re-editing-answers-in-the-chatbot-interface).&#x20;
3. When reviewing chatbot interactions with users, [edit answers in your chatbot's Dashboard](#id-2.3-editing-answers-in-your-chatbots-dashboard).

Next, please refer to the detailed operational instructions below. 👇

### **2.1 Importing Q\&A Corpus in the Data Source Management Panel**

1. Navigate to the management panel of the chatbot.
2. Under the Data Source section, locate the Q\&A corpus option.
3. Click on the import button and input your questions and answers.
4. Upon completion, import them into the chatbot.

<figure><img src="/files/ECbgl4RwQchvvLQ9u1mW" alt=""><figcaption><p>Select the Q&#x26;A panel</p></figcaption></figure>

<figure><img src="/files/7uDvjTtEkivbyGRFTB5f" alt=""><figcaption><p>Add Q&#x26;A pair</p></figcaption></figure>

### **2.2 Re-editing Answers in the Chatbot Interface**

* While testing the chatbot's response effectiveness in its interface:
  * If you find yourself unsatisfied with the provided answer, simply click on the edit button beneath the answer.
  * Re-edit the answer as necessary and import it back into the chatbot.

<figure><img src="/files/pf9urlQzI74dFVYEQ7U4" alt=""><figcaption><p>Edit your chatbot's answer when debugging</p></figcaption></figure>

### **2.3 Editing Answers in your chatbot's Dashboard**:

1. Access the Dashboard interface.
2. Under each question and answer pair, you'll find a small edit button.
3. Click on it to edit both the question and answer.
4. After making the necessary adjustments, click save to import the question and answer corpus into the chatbot.

<figure><img src="/files/9k4EbGNxbzgtZLus2THk" alt=""><figcaption><p>Edit your chatbot's answer when monitoring its performance</p></figcaption></figure>

It's important to note that this edit button is specifically meant for retraining the chatbot and will not modify the history of that particular conversation.


---

# 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.chatof.ai/getting-started/re-train-your-chatbot.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.
