Knowledge AI

⚠️ This feature is currently in public beta. We welcome feedback and may make changes based on usage and input. While it can be used in production, please do so with awareness of potential updates.

Heads Up! ⚠️

Want to build an intelligent virtual assistant backed by a Knowledge Base you upload?

Our Knowledge AI feature, along with the Q&A node, uses RAG (Retrieval Augmented Generation) APIs to achieve just that!

AI Studio now allows you to upload or link Sources and use them as your Knowledge Base (KB) as an alternative to creating intents, entities or even using the GenAI node. Knowledge AI leverages Google Gemini models to generate automated responses by using the uploaded sources.

The Knowledge AI functionality works through the Q&A node, however, there are some prerequisites to get the node to work, namely Sources and Indexes.

What does the backend look like?

The Knowledge AI feature works using internally developed RAG (Retrieval Augmented Generation) APIs, which combine Knowledge Base, Semantic Search, and Google Gemini LLM (Large Language Model) response generation.

Let’s take a look at what these are and how to set them up within your account.

Sources

Step 1: Upload your Knowledge Base

Setting up this feature first requires you to visit the Knowledge AI tab after you log into AI Studio.

Sources are the first step in setting up your Q&A node's functionality. By uploading or linking Sources, you allow your VA to rely on tailored information suited to resolving your end users' queries.

What can you upload as a Source?

All text from your uploaded sources, excluding table content or text embedded within images, can be used as a legitimate Knowledge Base.

Heads Up! ⚠️

File Size Restrictions

Your Sources are subject to the following restrictions:-

  • PDF file size limit: 10MB

  • HTML & TXT file size limit: 5MB

  • URL text size limit: 5MB

Additionally, you will have to name your Source. Please make sure to name your Sources in a way that makes the most logical sense for your VA so that you are able to accurately identify the right source at a later stage.

Source, Index and API key Relationship

You will know if your Sources are ready for use if the Status column displays a tick symbol against the Source.

The amount of time that your source may take to upload is dependent on the text size. This can range from about a minute to 30 minutes for extremely large sources.

Once successfully uploaded, you will also be able to preview any URLs that you have added, download your sources to your local files, and delete the uploaded sources on this page.

Index

Step 2: Create categories for your sources

Once you upload your sources, you will need to create a group of Sources that your VA will use as a database within the course of the conversation, i.e. Indexes.

For example, if you have multiple sources related to troubleshooting a cooling mechanism for a specific model of CPU, you can group all of them under one Index so all questions related to that CPU can use these sources as a reference.

Similarly, if you only sell one type of CPU and have one main document to troubleshoot all issues, you will still have to put that single Source in an index in order for you to use it.

Pro Tip 🔥

Once created, an Index can be chosen in the Q&A node within the VA canvas to strategically provide the VA with the relevant information at the appropriate points in the flow.

Heads Up! ⚠️

Source, Index, Q&A node Relationship

When working in teams, make sure that the relevant users have access to the appropriate API keys to ensure that they can create virtual assistants with the right sources. By default, all Sources & Index in the Knowledge AI section are created at the account level and can be used to automate Q&As across any VAs under the same account. This means users cannot access Sources & Indexes created in an API key that they do not have access to.

But before we get to actually using your Indexes and Sources within the Q&A node, how do you know if the index you created works for the right user queries?

Enter Index Testing!

Index Testing

Step 3: Test your VA for individual Index performance

Index testing allows you to see how each Index performs against anticipated user input.

Think of this feature as a dedicated Tester for Indexes. For optimal live performance, we recommend testing various expected real-life scenarios to understand the behaviour and responses generated by the feature.

Pro Tip 🔥

For each response provided within the Index Testing mechanism, you can check out what Source within the index was used to provide the answer.

The results of the testing will also give you a quick view into what optimization and tweaks are required to allow for the right responses for each user query.

Optimization can range from editing the Sources within Indexes to editing the content within Sources to better match user queries.

Now that you have set up the Knowledge AI tab, it’s time to set up your Virtual Assistant to take advantage of your uploaded and tested database. Click here for step 4!

Last updated

Was this helpful?