crispychips
03/26/2025, 7:21 PMVapi Support Bot
03/26/2025, 7:23 PMjson
PATCH /assistant/{assistant_id}
{
"model": {
"knowledgeBase": {
"provider": "trieve",
"searchPlan": {
"searchType": "semantic",
"topK": 3,
"scoreThreshold": 0.7
},
"fileIds": ["your-file-id"]
}
}
}
According to the [Vapi documentation](https://docs.vapi.ai/knowledge-base), you should customize your assistant's system prompt to explicitly instruct it to use the Knowledge Base for responding to queries.
### 2. Verify Trieve Integration
Make sure you've:
- Added the Trieve API key to the Provider Credentials menu in VAPI
- Created a Trieve account if needed
- Generated an API key from Trieve and pasted it into VAPI
### 3. Check Indexing and Synchronization
After uploading files and associating the knowledge base with your assistant, [allow about 5 minutes](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1331706030672969799) for the indexing process to complete before making calls.
### 4. Modify Your System Prompt
Explicitly instruct your assistant to:
- Use the knowledge base as the primary source of information
- Default to "I do not know" if information is not present in the knowledge base
- Cite the knowledge base in its responses
### 5. Check File Format and Size
Ensure your PDF file:
- Is in a supported format
- Doesn't exceed the 100MB file size limitVapi Support Bot
03/26/2025, 7:23 PMcrispychips
03/26/2025, 7:25 PMShubham Bajaj
03/28/2025, 12:16 AMcrispychips
03/28/2025, 4:42 PMcrispychips
03/28/2025, 4:43 PMShubham Bajaj
03/29/2025, 3:42 PMcrispychips
03/31/2025, 1:09 AMcrispychips
03/31/2025, 1:09 AMShubham Bajaj
03/31/2025, 1:25 PMcrispychips
04/01/2025, 6:53 PMShubham Bajaj
04/02/2025, 5:11 PM