genetic-orange•6mo ago
After uploading a document to the knowledge base, the AI voice chat does not recognize
Call ID : 4be474af-a9ec-4ef2-897f-4b9a20102a64
Timestamp: March 25, 2025, 05:20
Expected Response:
I expected the assistant to provide accurate information based on the content I had already uploaded to the knowledge base.
Actual Response:
The AI voice chat provided answers that were not based on the uploaded document.
Issue Summary:
After uploading a document to the knowledge base, the AI voice chat does not reference or retrieve information from it.
The document uploads successfully, but the AI seems unable to recognize or use its contents.
The AI voice chat continues to give responses that are not aligned with the information in the uploaded document.
12 Replies
Vapi has migrated from Canonical to Trieve, so you need to attach your knowledge base using the API instead of the dashboard. Here's how to connect your document:
For detailed guidance, check the documentation at https://docs.vapi.ai/knowledgebase.
Sources:
- Vapi Knowledge Base Documentation
- Discord Channel Discussion
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
rival-black•6mo ago
Ensure the document is uploaded and linked to the assistant, publish the changes, check the file format and size, review the assistant’s configuration, and test by asking relevant questions.
genetic-orangeOP•5mo ago
@Kings_big💫 still not working
rival-black•5mo ago
Uploaded document is processed, under 300KB
https://docs.vapi.ai/api-reference/files/create
rival-black•5mo ago
@Kings_big💫 Hello, please let me know if I should be creating a new thread instead of messaging here
Can I verify if the support bot is correct - Uploading the file to the dashboard doesn't work, and it needs to be uploaded via the API?
Make sure you've linked the document to your assistant by navigating to Build > Assistant in your dashboard, and then selecting the knowledge base files you uploaded. After that, publish your assistant to activate changes. If it still doesn't work, double-check the format of your document and that it’s under the recommended size. If you're still having issues, let me know, and we can look into it further.
rival-black•5mo ago
thanks @Kings_big💫 - I'm using the web sdk with a dynamic assistant
So I'm uploading the file to the Dashboard, then getting the file id
And then vapiClient.start(assistantConfig)
With this format:
It worked when I tested it with a single line file, but when I uploaded a 40kb text file with about 7k words, it just kept hallucinating the answers. When I looked at the logs, I saw that it made a tool call, but I can't see what's returned in it so I can't tell if it's searching or returning effectively, or where the problem is
Call ID: 3cedaf89-7600-42b4-9a7c-5a6c2b2e7566
Can you assist please?
Thank you

Hey Ethan! To help track down this issue, could you share:
- When exactly this happened (the timestamp)
- What response you expected to get
- What response you actually got instead
This would really help us figure out what went wrong!
The KB is being used, as evidenced by the logs. Can you pinpoint the unexpected actions?
This would really help us figure out what went wrong!
The KB is being used, as evidenced by the logs. Can you pinpoint the unexpected actions?
rival-black•5mo ago
Thanks @Shubham Bajaj
Ok after more testing I see that it sometimes fetches info accurately, but it's very unclear to me what it's fetching, how much, etc
And often after fetching it doesn't speak properly, it gets cut off
Call ID: 79ac6228-3c10-4c17-b670-ab5a837ab3d8
PARTIAL RESPONSE
Then, a hallucinated response, doesn't use the KB's response
hi @Shubham Bajaj , following up on this
Can you shed any light on why it has partial responses, or responds without using the KB info, and is there any way to see what and how much info is returned from the KB? That will also help me to prompt it in the best way
Hey,
Could you please schedule a brief call at your convenience so we can discuss this matter in detail?
Kindly use the following link to book a suitable time: https://calendly.com/shubham-vapi/chat-30m.
rival-black•5mo ago
Kyle and @Shubham Bajaj , a call would be great, but June is the next availability, which is a long way away
In the meantime can you share a bit more about exactly how the KB function works?
I'm guessing the KB is sent to Gemini 2.5 Flash, but what else is sent, and what is the Gemini prompt please?
if you can share how it works, that will help me to structure the kb data and my assistant prompt to have it work better
please share the call id and we will investigate the issue