# Knowledge Base

Using RAG (Retrieval Augmented Generation) technology, this content is transformed into embeddings that enable your virtual being to provide contextually relevant responses during conversations.

<figure><img src="/files/QsDjlodWQAtVIJqJ15ve" alt=""><figcaption><p>Knowledge Base in Virbe Dashboard</p></figcaption></figure>

### Structure and Components

**Collections**

Collections are folders that help organize related documents into logical groups. Good organization helps your virtual being quickly access relevant information during conversations. Common collection types include:

* Product information and specifications
* Company policies and procedures
* Frequently asked questions
* Troubleshooting guides

**Documents**

Documents are the building blocks of your Knowledge Base, containing the actual information your virtual being will reference. Each document has these key characteristics:

* Maximum length: 10,000 characters per document
* Format: Plain text with support for images
* Purpose: Source material for AI embeddings used in responses
* Quantity: Limited based on your subscription plan

<figure><img src="/files/9fpvrcmZkGkceeOM0pyQ" alt=""><figcaption><p>Example of a document in Knowledge Base</p></figcaption></figure>

### **Working with content**

**Managing Collections**

Collections help maintain an organized and efficient Knowledge Base. To create a collection:

1. Navigate to the Knowledge Base section
2. Click "Add collection"
3. Enter a descriptive collection name
4. Save the collection

You can rename or delete collections and move documents between them as your knowledge structure evolves.

**Creating and Editing Documents**

When creating documents, focus on clear, specific information that your virtual being can easily reference. To create a document:

1. Select the appropriate collection
2. Click "Add document"
3. Enter a descriptive name
4. Add your content, staying within the 10,000 character limit
5. Save your changes

**Adding Visual Content**

Images can enhance your documents and provide additional context. To add images:

1. In document edit mode, find the Images section
2. Click the "+" button
3. Either upload an image or drag and drop it
4. Add a name and descriptive text that helps the AI understand the image
5. Save your changes

{% hint style="info" %}
It's important to include information on what is depicted in the image – this will allow the virtual being to **select the most relevant images during the conversation and display them contextually.**
{% endhint %}

<figure><img src="/files/RKVdpfgsgRkE149ZvpV6" alt=""><figcaption><p>Adding an image to Knowledge Base document</p></figcaption></figure>

#### How Embeddings Work

The Knowledge Base automatically processes your documents to create embeddings - mathematical representations that enable intelligent information retrieval. This process allows your virtual being to:

* Understand the context of user questions
* Find relevant information quickly
* Generate natural responses using your content

#### Using Knowledge in Conversations

Your Knowledge Base connects seamlessly with conversation flows through LLM nodes:

* RAG technology searches through your documents
* Relevant content is retrieved based on context
* Information is incorporated into natural responses

#### Best Practices

#### Effective Organization

Keep your Knowledge Base efficient and useful by:

* Creating intuitive collection structures
* Using clear, descriptive document names
* Keeping documents focused on specific topics
* Maintaining current, accurate content

#### Content Creation Tips

Create content that works well with AI processing:

* Write in clear, straightforward language
* Include practical examples where helpful
* Provide context with good image descriptions
* Structure information logically

#### Maintaining Performance

Keep your Knowledge Base running smoothly:

* Monitor your document count against plan limits
* Regularly review and update content
* Test knowledge retrieval periodically
* Archive outdated information

See our recommendations for making the most out of yout Knowledge Base content:

{% content-ref url="/pages/3xzKId8ZCSSrZiFM6bDB" %}
[Best Practices for Knowledge Base Content](/dashboard-management/knowledge-base/best-practices-for-knowledge-base-content.md)
{% 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.virbe.ai/dashboard-management/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.
