Jvini
03/14/2025, 5:54 PMVapi Support Bot
03/14/2025, 5:56 PMfileIds
that your assistant can access. Verify that the knowledge base ID is correctly associated with your assistant [source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334889552002809928).
2. Verify API keys - Ensure you're using the correct API keys for Trieve. An unauthorized or incorrect API key could cause your assistant to fail when accessing the knowledge base [source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333333836884671012).
3. Check permissions - Confirm your assistant has the necessary permissions to access the knowledge base [source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336051824402239579).
4. Review your assistant configuration - Make sure your assistant is properly configured to use the knowledge base. Here's an example configuration:
json
{
"model": {
"knowledgeBaseId": "YOUR_KNOWLEDGE_BASE_ID",
"temperature": 0.2,
"provider": "openai",
"model": "gpt-4o",
"messages": [
{
"content": "You are a smart assistant who responds to user queries using the information you know or information supplied by outside context.",
"role": "system"
}
]
}
}
For implementing complex queries like "what's the lowest price of jackets":
1. Configure your search plan - Adjust your search plan settings for better retrieval:
json
{
"searchPlan": {
"scoreThreshold": 0.3,
"searchType": "hybrid"
}
}
Vapi Support Bot
03/14/2025, 5:56 PMjavascript
let questions = getQuestionsFromUserInput();
let apiRequestData = {
type: "assistant-request",
call: {
questions: questions
}
};
Let me know if you need more specific help with any of these steps! 🙂
Sources:
- [Discord Discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334889552002809928)
- [Discord Discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333333836884671012)
- [Discord Discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336051824402239579)
- [Vapi Docs](https://docs.vapi.ai/knowledge-base/integrating-with-trieve)
- [Discord Discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335230139252080691)Nick K - CEO @ Trieve
03/14/2025, 11:21 PMNick K - CEO @ Trieve
03/14/2025, 11:21 PMAditya
03/15/2025, 9:01 PM