HomeGuidesAnnouncementsCommunity
Guides

Knowledge Base

The Knowledge Base enhances your experience with retrieval-augmented generation by allowing you to upload PDFs. These PDFs are processed and indexed into the system to provide more accurate and contextual responses to user queries where skills take advantage of RAG. This guide will walk you through the process of using the Knowledge Base feature.

User Permissions

To access the Knowledge Base, users need to have the appropriate permissions. These permissions can be granted by an administrator within the system settings.

Steps to grant permissions

  1. Navigate to Settings: Go to the system settings from the main dashboard.
  2. Select Permissions: Choose the permissions tab in the settings menu.
  3. Grant access: Ensure the appropriate users or user groups have access to the Knowledge Base.

Navigating to the Knowledge Base

Once permissions are in place, you can access the Knowledge Base by following these steps:

  1. Click on Knowledge Base: From the main dashboard, click on Knowledge Base in the left-hand menu.
  2. View uploaded PDFs: You will see a list of uploaded PDFs along with metadata like upload date, document title, and status.

Uploading Documents

Uploading documents to the Knowledge Base is straightforward.

Steps to upload documents

  1. Click on "Upload Document": The button is located at the top right corner of the Knowledge Base dashboard.
  2. Select a PDF File: Use the file explorer to choose a PDF file from your device.
  3. Add metadata (Optional): Provide tags or a description for the document if needed.
  4. Click "Upload": The system will process and add the document to the Knowledge Base.

Managing Documents

After uploading documents, you can manage them by editing or deleting existing files.

Editing a Document

  1. Click on the document title: Open the document's details page.
  2. Select the Edit button: Modify the document metadata such as tags or the document name.
  3. Save changes: Apply and save the updates.

Deleting a Document

  1. Select the document: Choose the document you want to delete from the list.
  2. Click "Delete": Remove the document from the Knowledge Base.

Using the Knowledge Base for Queries

Once your documents are uploaded and indexed, the Knowledge Base enhances the system’s ability to retrieve answers.

How it works

  1. Question processing: When users ask questions, skills configured to use RAG will search for answers to the user's questions by matching to the relevant info in the Knowledge Base.
  2. Chunk Retrieval The info that matches is provided to the LLM in pieces or "Chunks" which usually represent a page from a document.
  3. Augmented Answer The chunks, current chat context, skill prompt, and question are processed by the LLM into an answer.

Conclusion

The Knowledge Base feature is a powerful tool that enhances the answers generated by your system. By uploading and managing PDFs, you ensure that the most relevant information is available when answering user questions.