You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.**New Knowledge Base API Endpoints**: You can now create a knowledge base with [`POST /knowledge-base`](https://api.vapi.ai/api#/Knowledge%20Base/KnowledgeBaseController_create), list knowledge bases with [`GET /knowledge-base`](https://api.vapi.ai/api#/Knowledge%20Base/KnowledgeBaseController_findAll) or [`GET /knowledge-base/{id}`](https://api.vapi.ai/api#/Knowledge%20Base/KnowledgeBaseController_findOne) for a specific knowledge base, update a knowledge base with [`PATCH /knowledge-base/{id}`](https://api.vapi.ai/api#/Knowledge%20Base/KnowledgeBaseController_update), or delete a knowledge base with [`DELETE /knowledge-base/{id}`](https://api.vapi.ai/api#/Knowledge%20Base/KnowledgeBaseController_remove). Refer to the [Vapi API endpoints](https://api.vapi.ai/api#/) for more details.
2
+
3
+
<Framecaption="Refer to the `Knowledge Base` endpoints for more information: https://api.vapi.ai/api">
2.**Configure Custom Knowledge Bases for your Assistant**: Configure a custom knowledge base for your assistant in three steps by first uploading a file [through the dashboard](https://dashboard.vapi.ai/files) or [the API](https://api.vapi.ai/api#/Files/FileController_create), then [create a knowledge base](https://docs.vapi.ai/knowledgebase#step-2-create-a-knowledge-base), and lastly [updating your assistant](https://docs.vapi.ai/knowledgebase#step-3-create-an-assistant) with the knowledge base id. You can also assign a knowledge base to models like `GroqModel`, `VapiModel`, `GoogleModel`, and others using the new `knowledgeBaseId` property.
9
+
10
+
11
+
3.**Integration with Trieve Knowledge Base**: Vapi now supports [Trieve](https://trieve.ai/) as our first knowledge base provider. Refer to [our docs](https://docs.vapi.ai/knowledgebase#step-2-create-a-knowledge-base) for an example of how to use Trieve.
12
+
13
+
14
+
4.**Inflection AI Credential Management**: You can now manage Inflection AI credentials through the [updated providers credentials](https://dashboard.vapi.ai/keys) page. `Call.endedReason` also now enumerates new values like `'pipeline-error-inflection-ai-llm-failed'` to indicate specific Inflection AI errors.
15
+
16
+
<Framecaption="Use the updated provider credentials page to manage Inflection AI credentials: https://dashboard.vapi.ai/keys">
5.**New Transfer Mode with Summary in SIP Header**: You can now configure `TransferPlan.mode` to `'blind-transfer-add-summary-to-sip-header'` to forward calls and include a summary in the SIP header called `X-Transfer-Summary`. You can also add custom SIP headers during a transfer call using the `sipHeaders` property in `TransferDestinationSip`.
22
+
23
+
24
+
6.**Azure Credential Service Default**: When creating or updating Azure credentials in the [updated providers credentials](https://dashboard.vapi.ai/keys), the `service` field now defaults to `'speech'`.
25
+
26
+
27
+
7.**Support for Cantonese in Deepgram Transcriber**: The `DeepgramTranscriber.language` option now includes `'zh-HK'` for Cantonese (Hong Kong).
title: Creating Custom Knowledge Bases for Your Voice AI Assistants
3
+
subtitle: >-
4
+
Learn how to create and integrate custom knowledge bases into your voice AI
5
+
assistants.
6
+
slug: knowledgebase
5
7
---
6
8
9
+
## **What is Vapi's Knowledge Base?**
7
10
8
-
Here are some videos made by people in our community showcasing what Vapi can do:
11
+
Our Knowledge Base is a collection of custom documents that contain information on specific topics or domains. By integrating a Knowledge Base into your voice AI assistant, you can enable it to provide more accurate and informative responses to user queries. This is currently available in Vapi via the API, and will be on the dashboard soon.
Using a Knowledge Base with your voice AI assistant offers several benefits:
16
+
17
+
-**Improved accuracy**: By integrating custom documents into your assistant, you can ensure that it provides accurate and up-to-date information to users.
18
+
-**Enhanced capabilities**: A Knowledge Base enables your assistant to answer complex queries and provide detailed responses to user inquiries.
19
+
-**Customization**: With a Knowledge Base, you can tailor your assistant's responses to specific domains or topics, making it more effective and informative.
Navigate to Overview > Documents and upload your custom documents in Markdown, PDF, plain text, or Microsoft Word (.doc and .docx) format to Vapi's Knowledge Base.
28
+
29
+
<Framecaption="Adding documents to your Knowledge Base">
Create a new assistant in Vapi and, on the right sidebar menu. Add the Knowledge Base to your assistant via the PATCH endpoint. Also make sure you customize your assistant's system prompt to utilize the Knowledge Base for responding to user queries.
"content": "You are a smart assistant who responds to user queries using the information you know, or information supplied by outside context.",
82
+
"role": "system"
83
+
}
84
+
]
85
+
}
86
+
}'
87
+
```
88
+
89
+
## **Best Practices for Creating Effective Knowledge Bases**
90
+
91
+
-**Organize Your documents**: Organize your documents by topic or category to ensure that your assistant can quickly retrieve relevant information.
92
+
-**Use Clear and concise language**: Use clear and concise language in your documents to ensure that your assistant can accurately understand and respond to user queries.
93
+
-**Keep your documents up-to-date**: Regularly update your documents to ensure that your assistant provides the most accurate and up-to-date information.
94
+
95
+
<Tip>
96
+
For more information on creating effective Knowledge Bases, check out our
97
+
tutorial on [Best Practices for Knowledge Base
98
+
Creation](https://youtu.be/i5mvqC5sZxU).
99
+
</Tip>
100
+
101
+
By following these guidelines, you can create a comprehensive Knowledge Base that enhances the capabilities of your voice AI assistant and provides valuable information to users.
Our Knowledge Base is a collection of custom documents that contain information on specific topics or domains. By integrating a Knowledge Base into your voice AI assistant, you can enable it to provide more accurate and informative responses to user queries.
10
+
11
+
Our Knowledge Base is a collection of custom documents that contain information on specific topics or domains. By integrating a Knowledge Base into your voice AI assistant, you can enable it to provide more accurate and informative responses to user queries. This is currently available in Vapi via the API, and will be on the dashboard soon.
21
12
22
13
### **Why Use a Knowledge Base?**
14
+
23
15
Using a Knowledge Base with your voice AI assistant offers several benefits:
24
16
25
-
***Improved accuracy**: By integrating custom documents into your assistant, you can ensure that it provides accurate and up-to-date information to users.
26
-
***Enhanced capabilities**: A Knowledge Base enables your assistant to answer complex queries and provide detailed responses to user inquiries.
27
-
***Customization**: With a Knowledge Base, you can tailor your assistant's responses to specific domains or topics, making it more effective and informative.
17
+
-**Improved accuracy**: By integrating custom documents into your assistant, you can ensure that it provides accurate and up-to-date information to users.
18
+
-**Enhanced capabilities**: A Knowledge Base enables your assistant to answer complex queries and provide detailed responses to user inquiries.
19
+
-**Customization**: With a Knowledge Base, you can tailor your assistant's responses to specific domains or topics, making it more effective and informative.
28
20
29
21
## **How to Create a Knowledge Base**
30
22
@@ -34,26 +26,76 @@ To create a Knowledge Base, follow these steps:
34
26
35
27
Navigate to Overview > Documents and upload your custom documents in Markdown, PDF, plain text, or Microsoft Word (.doc and .docx) format to Vapi's Knowledge Base.
36
28
37
-
<Imagesrc="https://cdn.hashnode.com/res/hashnode/image/upload/v1715628063841/rSrWDQ6YM.png"alt="Adding documents to your Knowledge Base" />
38
-
39
-
### **Step 2: Create an Assistant**
40
-
41
-
Create a new assistant in Vapi and, on the right sidebar menu, select the document you've just added to the Knowledge Base feature.
42
-
<Imagesrc="https://cdn.hashnode.com/res/hashnode/image/upload/v1715628223370/e18L04yRk-.png"alt="Adding documents to your assistant" />
43
-
44
-
45
-
### **Step 3: Configure Your Assistant**
46
-
47
-
Customize your assistant's system prompt to utilize the Knowledge Base for responding to user queries.
29
+
<Framecaption="Adding documents to your Knowledge Base">
Create a new assistant in Vapi and, on the right sidebar menu. Add the Knowledge Base to your assistant via the PATCH endpoint. Also make sure you customize your assistant's system prompt to utilize the Knowledge Base for responding to user queries.
"content": "You are a smart assistant who responds to user queries using the information you know, or information supplied by outside context.",
82
+
"role": "system"
83
+
}
84
+
]
85
+
}
86
+
}'
87
+
```
48
88
49
89
## **Best Practices for Creating Effective Knowledge Bases**
50
90
51
-
***Organize Your documents**: Organize your documents by topic or category to ensure that your assistant can quickly retrieve relevant information.
52
-
***Use Clear and concise language**: Use clear and concise language in your documents to ensure that your assistant can accurately understand and respond to user queries.
53
-
***Keep your documents up-to-date**: Regularly update your documents to ensure that your assistant provides the most accurate and up-to-date information.
54
-
91
+
-**Organize Your documents**: Organize your documents by topic or category to ensure that your assistant can quickly retrieve relevant information.
92
+
-**Use Clear and concise language**: Use clear and concise language in your documents to ensure that your assistant can accurately understand and respond to user queries.
93
+
-**Keep your documents up-to-date**: Regularly update your documents to ensure that your assistant provides the most accurate and up-to-date information.
94
+
55
95
<Tip>
56
-
For more information on creating effective Knowledge Bases, check out our tutorial on [Best Practices for Knowledge Base Creation](https://youtu.be/i5mvqC5sZxU).
96
+
For more information on creating effective Knowledge Bases, check out our
97
+
tutorial on [Best Practices for Knowledge Base
98
+
Creation](https://youtu.be/i5mvqC5sZxU).
57
99
</Tip>
58
100
59
101
By following these guidelines, you can create a comprehensive Knowledge Base that enhances the capabilities of your voice AI assistant and provides valuable information to users.
0 commit comments