# Knowledge Base Explained

There is a limited amount of room and so the system needs to search through the knowledge base to find relevant information that might help a user's question.&#x20;

<figure><img src="https://1359281993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLIQnOFYHkQtdWxUzzFE%2Fuploads%2FlqnFMS0VXow8AR8dvjhh%2FScreenshot%202024-03-07%20at%207.35.37%E2%80%AFPM.jpg?alt=media&#x26;token=ca90122c-7103-438b-b86a-4d13f12a286f" alt=""><figcaption><p>Technical overview of the AI chatbot</p></figcaption></figure>

The knowledge base is split up into multiple sections that make it super easy to add the information about your business.&#x20;

It's important to note that more data is not always better. We recommend that you only add relevant information that helps provide context to the overall conversation.

{% embed url="<https://youtu.be/GvFjn-8S21M?si=KWj5CPBDztJv638L>" %}

## Different Data Formats

You can train your AI chatbot by utilizing any of the following data formats.&#x20;

{% content-ref url="knowledge-base-explained/copy-and-paste-text" %}
[copy-and-paste-text](https://docs.stammer.ai/stammer.ai-docs/chat-ai-agents/knowledge-base-explained/copy-and-paste-text)
{% endcontent-ref %}

{% content-ref url="knowledge-base-explained/upload-documents" %}
[upload-documents](https://docs.stammer.ai/stammer.ai-docs/chat-ai-agents/knowledge-base-explained/upload-documents)
{% endcontent-ref %}

{% content-ref url="knowledge-base-explained/scrape-websites" %}
[scrape-websites](https://docs.stammer.ai/stammer.ai-docs/chat-ai-agents/knowledge-base-explained/scrape-websites)
{% endcontent-ref %}

{% content-ref url="knowledge-base-explained/question-and-answer-pairs" %}
[question-and-answer-pairs](https://docs.stammer.ai/stammer.ai-docs/chat-ai-agents/knowledge-base-explained/question-and-answer-pairs)
{% endcontent-ref %}

### Data Storage (Characters)

When you upload information to an AI agent's knowledge base, it will take up a certain amount of characters. Characters are the 'unit' of measurement for storage.&#x20;

{% content-ref url="knowledge-base-explained/data-storage-characters" %}
[data-storage-characters](https://docs.stammer.ai/stammer.ai-docs/chat-ai-agents/knowledge-base-explained/data-storage-characters)
{% endcontent-ref %}


---

# 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.stammer.ai/stammer.ai-docs/chat-ai-agents/knowledge-base-explained.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.
