Eswara Naidu
06/04/2025, 2:12 AMVapi Support Bot
06/04/2025, 2:13 AMproviderId), not by passing fileIds or website URLs directly. Here’s the current way to create a Trieve knowledge base:
json
{
"name": "trieve-dataset",
"provider": "trieve",
"searchPlan": {
"scoreThreshold": 0.2,
"searchType": "semantic"
},
"createPlan": {
"type": "import",
"providerId": "<Your Trieve Dataset ID>"
}
}
Files and website crawls should be managed within Trieve, then imported as a dataset into Vapi.
For more details, see the [integration guide](https://docs.vapi.ai/knowledge-base/integrating-with-trieve) and [API reference](https://docs.vapi.ai/api-reference/knowledge-bases/create).
Sources:
- [Integrating with Trieve](https://docs.vapi.ai/knowledge-base/integrating-with-trieve)
- [Create Knowledge Base API Reference](https://docs.vapi.ai/api-reference/knowledge-bases/create)Eswara Naidu
06/04/2025, 2:13 AMVapi Support Bot
06/04/2025, 2:38 AMEswara Naidu
06/04/2025, 3:45 AMVapi
06/04/2025, 6:54 AMtrieve provider, here's a brief on how to proceed:
1. **Create Knowledge Base**: To create a knowledge base, use the POST endpoint: https://api.vapi.ai/knowledge-base. Ensure your request body includes the necessary trieve object properties for creation.
Here's an example of creating a knowledge base:
bash
curl -X POST https://api.vapi.ai/knowledge-base \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"provider": "trieve",
"createPlan": {
"type": "import",
"providerId": "yourProviderId"
}
}'
Refer to the [Create Knowledge Base](https://docs.vapi.ai/api-reference/knowledge-bases/create) documentation for more details.
2. **Update Knowledge Base**: For updating an existing knowledge base, utilize the PATCH endpoint: https://api.vapi.ai/knowledge-base/:id. Include needed properties in the request body.
Example for updating:
bash
curl -X PATCH https://api.vapi.ai/knowledge-base/<id> \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"provider": "trieve",
"searchPlan": {
"searchType": "fulltext"
}
}'
More details can be found [here](https://docs.vapi.ai/api-reference/knowledge-bases/update).
These steps reflect the current documentation, and using fileIds or direct URLs in the request body may have been deprecated. Always ensure your requests align with the latest API specifications to avoid errors.Eswara Naidu
06/04/2025, 9:39 AMKings_big💫
06/04/2025, 9:50 AMEswara Naidu
06/05/2025, 2:42 AMKings_big💫
06/05/2025, 6:42 AMEswara Naidu
06/14/2025, 2:19 AMVapi
06/14/2025, 4:59 PM