Agent not reading Knowledge base
# support
e
Agent not reading Knowledge base - Agent Id - a9c249ca-4d67-4696-aa6e-76cd6553a106 Org id - 7daa7693-038e-4e6e-a3ca-850bd35f0496
v
Hi there! I see you're having an issue with your agent not reading the knowledge base. While I can't diagnose the exact issue with your specific agent (ID a9c249ca-4d67-4696-aa6e-76cd6553a106) without more details, I can definitely help with common causes and troubleshooting steps for this problem. ## Common Reasons for Knowledge Base Access Issues There are several potential reasons why your agent might not be reading the knowledge base: 1. **Recent Migration Issues**: Vapi recently migrated from Canonical to Trieve for knowledge base services, requiring users to re-attach their knowledge base using the API. According to [documentation found in support threads](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336642573418233876), this migration requires specific steps to reconnect your knowledge base. 2. **Configuration Problems**: The knowledge base might not be properly configured with the correct
fileIds
or the Knowledge Base ID might not be correctly associated with your assistant. This is a common issue mentioned in [support discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336051824402239579). 3. **Provider Field Issues**: The
provider
field might be missing or incorrectly set in the knowledge base configuration. It should be set to
'custom-knowledge-base'
according to [troubleshooting information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1340832089351782563). 4. **API Key Problems**: There might be issues with the API key, such as incorrect keys or missing permissions for the dataset in context, as noted in [support threads](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335371096525897911). ## Troubleshooting Steps Here are some steps you can take to resolve the issue: 1. **Verify Knowledge Base Configuration**: - Ensure the knowledge base is properly configured with the correct
fileIds
- Check that the Knowledge Base ID is correctly associated with your assistant - Verify the knowledge base configuration settings like
searchType
and
scoreThreshold
2. **Check API and Access Permissions**: - Double-check your API keys and access permissions - Ensure they have not expired or been revoked 3. **Re-attach Knowledge Base After Migration**: - If you haven't done so after the Canonical to Trieve migration, re-attach your Knowledge Base using the API - Refer to the [Vapi knowledge base documentation](https://docs.vapi.ai/knowledgebase) for guidance 4. **Verify File Upload and IDs**: - Confirm your files were successfully uploaded to the knowledge base - Check that file IDs are correctly referenced in your configuration 5. **Refresh Knowledge Base Index**: - If available, try refreshing or rebuilding the knowledge base index For more detailed guidance, there's a helpful video tutorial available at [this link](https://www.loom.com/share/9986c175aef146f9b85631414d5e1d67?sid=71983154-6216-477d-b79a-d6e890002a73) that walks through the knowledge base setup process. Would you like me to elaborate on any of these troubleshooting steps or provide more specific guidance for your situation? Sources: - [Discord Support Thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336642573418233876) - [Knowledge Base Configuration Thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336051824402239579) - [Provider Field Configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1340832089351782563) - [API Key Troubleshooting](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335371096525897911) - [Vapi Knowledge Base Documentation](https://docs.vapi.ai/knowledgebase) - [Knowledge Base Setup Tutorial](https://www.loom.com/share/9986c175aef146f9b85631414d5e1d67?sid=71983154-6216-477d-b79a-d6e890002a73)
e
i used files and added to files in the assisstant , how to check if it is attached correctly
k
Hey Eeshita, To check if Knowledge Base is used correctly, I'll suggest you try to make 1-2 test calls and then see if the responses are being generated using the Knowledge Base or not. If they are not generated using Knowledge Base, then share the call ID with me. I'll take a look.