t
Copy code
{
  "message": "Invalid Knowledge Base Details. Failed to validate trieve dataset: dataset not found",
  "error": "Bad Request",
  "statusCode": 400
}
v
Hi there! I see you're encountering an error with your Trieve dataset in Vapi. Let me help troubleshoot this issue for you. I can provide several potential causes and solutions for the "Invalid Knowledge Base Details. Failed to validate trieve dataset: dataset not found" error you're experiencing. According to the [documentation and community discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344025490989776967), this error typically occurs due to one of these reasons: 1. **Recent Migration Issues**: Vapi has migrated from Canonical to Trieve, requiring users to re-attach Knowledge Bases using the API rather than the UI. The KB UI has been temporarily removed to support this new provider. 2. **Dataset ID Problems**: Your Trieve dataset ID might be incorrect or not in the proper UUID v4 format. 3. **API Key Issues**: The error could be related to missing or incorrect Trieve API key in Vapi's Provider Credentials menu. Make sure you've generated a Trieve API key and added it to Vapi. 4. **Permission Problems**: Your account might not have the correct privileges, or the API key might be missing the READ_DATASET scope required to access the dataset. 5. **Syncing Issues**: There are known issues with how Vapi creates plan syncs with Trieve, especially when using the Vapi API key repeatedly. Here's what you can try: 1. Create your own Trieve dataset and upload your KB files directly on Trieve. According to [community feedback](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344182165990015016), this workaround avoids the create plan syncing issue. 2. Generate a new Trieve API key and paste it in the credential provider in Vapi. 3. Import your KB to Vapi by making a POST request to the Vapi API knowledge-base route with a payload like: ```json { "name": "name your kb file", "provider": "trieve", "searchPlan": { "scoreThreshold": 0.2, "searchType": "semantic" },
"createPlan": { "type": "import", "providerId": "" } } ``` 4. When making PATCH updates to the KB, ensure the
dataset_id
is passed correctly each time. Would you like me to provide more specific information about any of these troubleshooting steps? Sources: - [Troubleshooting Invalid Knowledge Base Details errors in Vapi](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336642573418233876) - [Troubleshooting 'Failed to validate trieve dataset' errors in Vapi](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344025490989776967) - [Reasons for 'dataset not found' error when validating Trieve dataset in Vapi](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344182165990015016) - [Requirements for using a Trieve dataset in Vapi](https://docs.vapi.ai/knowledge-base/integrating-with-trieve)
k
Hey @Toketo1, could you share the knowledge base ID?