Knowledge Base
Overview
Knowledge base are a collection of sources of information that your agent can access to retrieve relevant information during the call, that can provide additional context to the conversation. It can greatly improve the quality of the responses and the overall experience, especially in cases where there are a lot of information available (too long for putting in prompt), but having the information is essential for the agent to respond correctly. This feature quite useful for use cases like support, helpdesk, FAQ, etc.
Supported sources:
- Website content (via URLs)
- Documents (DOCX, PDF, TXT, etc.)
- Custom text snippets
How it works
You can create knowledge bases, and link them to your agents. When a knowledge base is linked to an agent, the agent will always try to retrieve information from the knowledge base before responding. There’s no need to change your prompt for it to trigger, as it will be done automatically, for every response generation.
During the creation of knowledge bases, it will chunk the source, embed them and store into a vector database.
During the call, when the agent is about to respond, it will use the transcript so far (prompt is not included) to find the most relevant chunks from the knowledge base, and feed them to the LLM as context.
Best Practices
- Use markdown format for the source, with clear paragraphs: it will be easier to chunk and is easier to be retrieved.
- For tabular data or image data, it’s sometimes hard for the system to recognize the correct data and put relevant information together in one chunk, so it might yield suboptimal results.
- Group relevant information together in one chunk: it will improve the retrieval accuracy.
- Avoid ambiguity and use specificity in references: when the chunk is retrieved, it’s best to contain specific references like name, dates, and less ambiguous terms like
it
orthis
. Because without the prior chunk, it’s hard to understand ambiguous terms.
Use Knowledge Base
Access Knowledge Base Settings
- Navigate to your dashboard
- Select the “Knowledge Base” tab
- Click the “Add” button in the top-right corner
Create Knowledge Base Items
Choose from three types of knowledge sources:
-
URL: Import content from web pages
- Supports single pages or entire websites
- Automatically updates when content changes
-
File: Upload documents
- Supported formats: PDF, TXT, DOCX, etc.
- Maximum file size: 100MB
-
Text: Add custom content
- Paste or type direct information
- Ideal for specific instructions or data
Verify Added Items
After adding items, they will appear in your knowledge base list. You can:
- View all added items
- Edit existing items
- Delete items when no longer needed
Connect to Your Agent
- Open the agent editor
- Locate the “Knowledge Base” section
- Select the knowledge base items you want to use
Your agent will now use this information when responding to queries related to the added content.
FAQ
Pricing
- Knowledge base creation:
- First 10 knowledge bases are free.
- Additional ones are billed at $8 / month per knowledge base.
- Using knowledge base:
- $0.005 per minute of calls that have knowledge base enabled.
- it does not matter if your agent is using 1 or many knowledge bases, the billing is the same.
Was this page helpful?