KB Isn't Change/Update
# support
r
Changing my Knowledge Base does nothing. Is it cached? How do I publish a KB change? My assistant should not reference the previously selected KB when I've published it using a different KB.
a
Hey Ryan, can you share with me the call ID where you are expecting to use the new KB and also share the knowledge base ID or the query tool ID which you referred here as the previously selected KB which is being again used with your assistant instead of the new KB. So these two things, the new ID where in place of new KB, old KB is used and both of the KB's ID, so that I can verify.
r
This is my asistant id: 133e21d5-96c3-4ae2-bcfc-cca419b3f630 It was using KB: simpsonUniversity (106e0356-2c4a-456b-afa1-e79555dfce40) I switched it to KB: amazeBeautyStudio (490ad755-a1e3-4f33-a5cc-7170d57b7f36) The first issue I had was changing the search plan made no difference: { "searchPlan": { "searchType": "fulltext", "topK": 1, "removeStopWords": false, "scoreThreshold": 0 } } That's when I changed the KB on the UI and did nothing. See screenshot. Since posting this, I changed it back to simpsonUniversity, and it's not reading any database. (second screenshot) Is there an API call I can post to update the assistant with the correct KP and force it to clear the cache? https://cdn.discordapp.com/attachments/1351150578314514493/1351184347054473228/image.png?ex=67d973fc&is=67d8227c&hm=9140df30ccb23b1b16e11963dbc778f26b689b70e65b07a27e76af41557a675e& https://cdn.discordapp.com/attachments/1351150578314514493/1351184347314782239/image.png?ex=67d973fc&is=67d8227c&hm=dd96bd55f726d736adf813baf641675366a608644dda5e10b8f389fd0d3d9cd6&
You can see here that I have it set to the simpsonUniversity KB: { "id": "133e21d5-96c3-4ae2-bcfc-cca419b3f630", "orgId": "3ca2f8d3-710b-454f-a7d1-922ee3d170fd", "name": "Simpson University - Admissions", "voice": { "model": "eleven_multilingual_v2", "speed": 1, "style": 0.2, "voiceId": "cgSgspJ2msm6clMCkdW9", "provider": "11labs", "stability": 0.7, "similarityBoost": 0.5, "useSpeakerBoost": false, "fillerInjectionEnabled": false, "optimizeStreamingLatency": 4, "inputPunctuationBoundaries": [ ",", ".", "!", "?", ";", ":" ] }, "createdAt": "2025-03-16T19:12:13.170Z", "updatedAt": "2025-03-17T11:52:14.756Z", "model": { "model": "gpt-4o", "messages": [ { "role": "system", "content": "You are an AI receptionist that can answer question by referencing the {kb_context}. " } ], "provider": "openai", "maxTokens": 2000, "temperature": 0.9, "knowledgeBaseId": "106e0356-2c4a-456b-afa1-e79555dfce40", "emotionRecognitionEnabled": true }, I did add this to the system prompt, but it doesn't seem to help: You are an AI receptionist that can answer question by referencing the {kb_context}.
I don't think assistants are actively pulling from trieve. I cloned my agent and it's getting information only from the sytem prompt. Seems to be a bigger issue.
Any update on this? I really need to get this working for a client. Thanks.
s
@Ryan Opfer Your KB is not getting invoked because there is a reason the current Amaze Beauty studio KB doesn't have any of the files, eventually it results in not invoking your KB. So either you have the option to create the Trieve KB again or or create a query-based KB tool which is recommended . rebase KB tool is nothing but a custom tool created by WAPI. You need to upload all your files again if they contain PDFs and docs, associate them with your assistant, and then the tool will be ready. You just have to invoke that tool in your system prompt to call the KB. The process is pretty much straightforward and easier, eliminating all other hallucinations. To learn more about it, check out this link: https://docs.vapi.ai/knowledge-base/using-query-tool
I have also looked into a support email, so if you face any issues regarding KB for this thing, just let me know. Happy to help, and we can even go through email or Discord however it works for you
r
Thank you for getting back to me @Shubham Bajaj It looks like amazeBeautyStudio is a bad example to use. I apologize for that. Also, I want to use the strengths of Trieve especially the ability to crawl a website daily. I get the same issue with simpsonUniversity and proGarageDoors trieve KBs Attached is an example post request for the word "president" clearly returning results. Attached is my vapi simpsonUniversity KB Attached is a patch for the trieve KB I must not be understanding something as why can't the assistant call the trieve datasets? https://cdn.discordapp.com/attachments/1351150578314514493/1351662791286849638/image.png?ex=67db3192&is=67d9e012&hm=bbd4de8d79597221dd5194316e5018e94d8e8bc88d4b9e181f4f935307f01000& https://cdn.discordapp.com/attachments/1351150578314514493/1351662791718604881/image.png?ex=67db3192&is=67d9e012&hm=3d9763cc2cb7677cbb7ba3d05b8d5bee0f7ab77e0358297c7319592eb5a566dd& https://cdn.discordapp.com/attachments/1351150578314514493/1351662792138166322/Simpson_University_Assistant.txt?ex=67db3192&is=67d9e012&hm=59d5f9eb70b8efd9ae4a3af3be94b9ccf694026187013e621604fd87afb09f5c& https://cdn.discordapp.com/attachments/1351150578314514493/1351662792696135730/image.png?ex=67db3192&is=67d9e012&hm=227d6ef334c4f537752461a67a5dce53eb3367974b4e6207e946588459a4b588&
Vapi queries/calls (does a post) to trieve each time a person responds to the assistant right? Meaning it will always get the most up-to-date info stored in the trieve dataset right?
I cannot figure this out. I switch Simpson University assistant: 133e21d5-96c3-4ae2-bcfc-cca419b3f630 KB to proGarageDoors, publish it and ask it the same question I did when I had it set to simpsonUniversity, and a new simpsonUniversityNewTest and it gives the same response. There's no way the assitant can generate the same answer if it's using the other KB.
For a minute it knew knew who the president was of the school. I swapped the KB, and then swapped it back and ptached the KB just in case that was necessisary, and the assistant forgot the answer.
Ok, found a workaround. It seems that if I import a new KB from trieve, then select it as the KB in my assistant, it works. So seemingly any time I want to change a setting in the KB (frm semantic to fulltext for example), I need to first delete the old KB, create a new KB with the same name, and then reattachd it to my assistant. Clearly this is a bug.
Here's a loom video reproducing the issue of updating a KB using patch and changing the KB in vapi and it looses the KB. https://www.loom.com/share/4051bc61465f4f91a17b66469c4d2afc?sid=3dcaa546-9ae0-40f3-8166-3000a2b03fa7
n
Thanks for finding the bug! Sorry about the rough experience there