# Training Data

## Manual entry method

How does it work?

You can manually add training data by creating individual **key-value pairs** directly in the knowledge base interface.

**Process:**

1. **Navigate to the Knowledge Base:** Open your created knowledge base.
2. **Add Key-Value Pairs:** Click **“Add New Entry.”**
3. **Enter Information:**
   * **Key:** The topic or question (e.g., “iPhone 16 Pro price”)
   * **Value:** The answer or information (e.g., “$999 starting price”)
4. **Save Entry:** Confirm and save each pair.
5. **Repeat:** Continue adding entries one by one.

**Recommended for:**

* Small amounts of data
* Quick updates
* Simple question-answer pairs
* Initial setup with basic information

{% hint style="info" %}
**Translation to English:**

**Key:** "Return Policy"\
**Value:** "30-day return policy with receipt"

**Key:** "Shipping Cost"\
**Value:** "Free delivery on orders over $50"

**Key:** "Support Hours"\
**Value:** "24/7 chat support, phone support from 9:00 to 21:00"
{% endhint %}

## **JSON ატვირთვის მეთოდი**

How does it work?

Upload a structured **JSON file** that contains all your training data at once. The system will process the entire file and automatically import all key-value pairs.

**Process:**

1. **Prepare the JSON File:** Create a properly formatted JSON file.
2. **Navigate to the Knowledge Base:** Open your knowledge base.
3. **Upload Option:** Select **“Upload JSON.”**
4. **Select File:** Choose your JSON file from your computer.
5. **Import:** The system will automatically process all entries.

**Example of JSON Structure:**

```
{
  "Products": {
    "iphone_16_pro": {
      "Price": "$999",
      "Stock": "In Stock",
      "Warranty": "1 year"
    }
  },
  "Policy": {
    "Return Policy": "30 days",
    "Shipping Policy": "Free on orders over $50"
  },
  "Support": {
    "Working Hours": "24/7 chat, 9:00-21:00 phone",
    "Email": "support@company.com"
  }
}
```


---

# 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.livecaller.io/livecaller/services/ai-assistant/training-data.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.
