> ## Documentation Index
> Fetch the complete documentation index at: https://docs.convocore.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> What is the knowledgebase and how  does it work?

#

## What is a Knowledge Base?

A Knowledge Base is a repository of information that your AI agents use to retrieve accurate and relevant responses to user queries. This repository can include documents, FAQs, manuals, and other structured data. The system utilizes retrieval augmented generation (RAG), which extracts information from a vector database. Want to learn more? Check this article: [Here](https://medium.com/@sahin.samia/what-is-retrieval-augmented-generation-rag-in-llm-and-how-it-works-a8c79e35a172)

{' '}

<CardGroup cols={2}>
  <Card title="Enhanced Accuracy" icon="bullseye-arrow">
    RAG significantly improves the accuracy of AI responses. By leveraging a knowledge
    base, RAG allows AI models to access up-to-date, domain-specific information. This
    reduces hallucinations (made-up information) and ensures responses are grounded in
    factual data. For businesses, this means more reliable customer interactions and
    reduced risk of misinformation.
  </Card>

  <Card title="Customizable Knowledge" icon="database">
    Knowledge bases offer tailored, organization-specific information. Unlike general AI
    models, a knowledge base can be customized with your company's unique data, policies,
    and procedures. This allows our AI agents to provide responses that are perfectly
    aligned with your brand voice and specific business context, enhancing customer
    experience and reducing the need for human intervention in customer service.
  </Card>
</CardGroup>

#

## What is a RAG System?

RAG (Retrieval Augmented Generation) combines two powerful components that ensure your agents deliver highly accurate and contextually relevant responses:

<CardGroup cols={2}>
  <Card title="Retrieval" icon="magnifying-glass">
    Searches the Knowledge Base to find relevant information.
  </Card>

  <Card title="Augmented Generation" icon="wand-magic-sparkles">
    Uses the retrieved information to generate precise and contextually accurate responses
    using one of the LLMs available in Convocore.
  </Card>
</CardGroup>

<Accordion title="Example RAG Architecture">
  <img className="rounded-md" src="https://i.imgur.com/qoytE43.png" width="600" alt="RAG Architecture Diagram" />
</Accordion>

<Steps>
  <Step title="User Query">
    The process begins when a user submits a question or request.
  </Step>

  <Step title="Retrieval">
    The system searches the Knowledge Base for relevant information related to the query.
  </Step>

  <Step title="Augmentation">
    Retrieved information is used to augment the context provided to the LLM.
  </Step>

  <Step title="Generation">
    The LLM generates a response based on the augmented context and its training.
  </Step>

  <Step title="Response">
    A contextually relevant and accurate answer is provided to the user.
  </Step>
</Steps>

<Note>
  By leveraging both stored knowledge and the generative capabilities of LLMs, RAG systems
  provide more accurate, up-to-date, and contextually appropriate responses compared to
  using LLMs alone.
</Note>

#

<img class="rounded-md" src="https://mintcdn.com/convocore/Xd5KCcAa4UTtf7oB/images/knowledgebase_interface_shots2.png?fit=max&auto=format&n=Xd5KCcAa4UTtf7oB&q=85&s=7e5c1e644d74ba876152cf9961ceceda" width="600" data-path="images/knowledgebase_interface_shots2.png" />

{' '}

> The knoweldge base interface in Convocore

## Document version history

Knowledge base documents now include a built-in `History` view directly inside the document editor.

Use it to:

* Review the last saved versions of a KB document
* See when a version was saved
* Restore an older version back into the editor
* Identify who changed the document when actor details are available

<Note>
  Version history works for both Convocore/VG agents and Voiceflow/VF agents. History starts building from the point a document is saved with the feature enabled, so older documents may not have earlier revisions recorded.
</Note>

### Explore related reading about how to set up your knowledgebase:

#

<CardGroup cols={2}>
  <Card title="Adding data" icon="file-circle-plus" href="/agent-creation/knowledgebase/adding-data/direct-text-entry" />

  {' '}

  <Card title="Adjusting KB settings" icon="gear" href="/agent-creation/knowledgebase/adjusting-kb-settings" />

  <Card title="Structuring KB documents" icon="file" href="/agent-creation/knowledgebase/structuring-kb-documents" />

  <Card title="KB and UI-engine" icon="window" href="/agent-creation/knowledgebase/kb-and-ui-engine" />
</CardGroup>
