Issue with knowledge base not updated : assistant ...
# support
z
Hello I have an issue ... In tehe response from assistant request I get { "assistant_id": "aac83e9c-becd-42e3-878a-8be7d9d5b2cb", "assistant_overrides": { "model": { "model": "gpt-4o-mini", "provider": "openai", "knowledge_base_id": "e9e7f6ef-866b-49a5-9ec6-f372f471640c" }, "variable_values": { "current_time": "2025-01-16T15:06:40.147Z", "contact_id": "7a8a1395-7744-42f6-9b81-9354704caf3d", "contact_phone_number": "+33620164283", "contact_first_name": "Amaglandin", "user_phone_number": "+33612345678", "user_id": "f00a1639-4125-42f2-a5b8-b533410da985", "user_first_name": "Juju la menace", "user_cal_link": "https://cal.com/julien-aguer", "user_job_title": "Plombier", "user_vocal_assistant_name": "Sophie la souris" } } } āœ… SO THE KB id is e9e7f6ef-866b-49a5-9ec6-f372f471640c : the one I set when override my assitant : it's OK āŒ But i get the message could'nt get assistant with this error "assistant_request_error": "Couldn't Get Knowledge Base.
knowledgeBaseId
c5578cf1-02fe-4513-b0cf-b5127c341b21 Does Not Exist.", 🚨 This is not the knowledge base I passed (see above), It's an old one I deleted 🚨 So, I'm stuck since I can't use my assistant anymore Any help would be really apreciate.
v
@zxdream I'm sorry to hear you're experiencing issues with the assistant's knowledge base. It seems like there might be a mismatch or caching issue where the system is still referencing the old, deleted knowledge base ID instead of the new one you've set. To resolve this, please ensure that you've updated all references to the knowledge base ID in your configuration to the new ID
e9e7f6ef-866b-49a5-9ec6-f372f471640c
. If you've already done this and the problem persists, it might be necessary to clear any caches or temporary data that could be holding onto the old ID. If you're confident that the configuration is correct and the issue is not resolved by clearing caches, it would be best to reach out to the support team with the details of the problem. They will be able to look into the backend systems to identify and fix the issue. Please let me know if there's anything else I can assist you with!
You can continue this conversation by mentioning me in the message.
z
@Vapi Can I manage the cache on my side? How to contact the support? Thx
v
@zxdream Managing the cache on your side depends on the system or platform you're using. If you have access to the system's cache settings, you may be able to clear it yourself. However, if the cache is managed by the Voice API provider's infrastructure, you might not have direct control over it. To contact support, you would typically do so through the official channels provided by the Voice API service. This could be through their website, via a support email, or through a customer portal if they have one. Look for a 'Contact Us' or 'Support' section on their website for specific instructions on how to reach out for assistance. If you need further guidance or have additional questions, please let me know!
z
@User I need help with that please
u
@zxdream idk why this issue happes. however you can get the assistant working again 1. by removing the kb and 2. create a new kb and attach it to the assistant To remove update assistant using https://docs.vapi.ai/api-reference/assistants/update in body post:
Copy code
{
 "model": {...your model, **remove the kb id from model**}
  
}
To get your model in the first place use this api https://docs.vapi.ai/api-reference/assistants/get.
s
@zxdream did you tried updating the KB id using UPDATE /assistant/:id endpoint??
@udAIan Thanks for helping @zxdream
z
Thank you @udAIan and @Shubham Bajaj I will try that. My use case is to attach a different KB on the fly with transient assistant, this is why I use override to do it.Is it possible ?
@udAIan @Shubham Bajaj I've investigated and here are my conclusions https://whimsical.com/vapi-knowledge-base-problem-CqRBKh9GDPMcKBGouZw6nD There seems to be a problem with the overrides and the knowledge base as It uses the knwoledgebase attached to the assistant from the UI It's a bi problem to me since I have a demo soon. Any help would be much appreciate šŸ‘
I've found a workaround. My solution 2 is ok but the json structure was not OK. This is the one I used if others need. { "assistant": { "name": "Assistant Artisan", "voice": { "model": "eleven_turbo_v2_5", "style": 0.2, "voiceId": "6vTyAgAT8PncODBcLjRf", "provider": "11labs", "stability": 0.2, "similarityBoost": 0.4, "fillerInjectionEnabled": false, "optimizeStreamingLatency": 4 }, ... "variableValues": { "current_time": "2025-01-16T21:44:13.651Z", "contact_id": "7a8a1395-7744-42f6-9b81-9354704caf3d", "contact_phone_number": "+33283", "contact_first_name": "Amaglandin", "user_phone_number": "+336178", "user_id": "f00a1639-4125-42f2-a5b8-b533410da985", "user_first_name": "Juju la menace", "user_cal_link": "https://cal.com/jul", "user_job_title": "Plombier", "user_vocal_assistant_name": "Sophie la souris" } }
After testing this does not work, I can't get my variables values if I create an assistant without using overrides 😦 @Shubham Bajaj Support would be appreciate on this and the probleme with the overrides not working with knowledge base
@User @Shubham Bajaj I've recorder a loom explaining my problem. Hope this helps. https://www.loom.com/share/5b45d6aab62546318b06cea6b0e3a4d7?sid=0cda6415-49c4-4a8f-9cf8-5704ca03fb19 Julien
s
@User Could you share any recent call ID so I could verify it and take a look?
@zxdream We are working on this and have created a ticket with the team. As soon as I receive any updates, I will let you know.
@zxdream can you try now the issue has been fixed.