How can I know when the indexing of knowledge base...
# support
a
I'm constantly creating new assistants with new files attached to their knowledge base. Sometimes, the assistant doesn't know what I'm talking about although there's specific information mentioned in the knowledge file. After couple of minutes, it finally gets it. I assume it's part of indexing process which happens only after couple of minutes. Is there a way I can know when the file indexing has been completed?
v
You can continue this conversation by mentioning me in the message.
@armandas Absolutely, understanding when your assistant has fully indexed the new files and is ready to provide accurate responses is important. Typically, the indexing process is automated and happens in the background. However, the specifics of receiving a notification or checking the status of indexing can vary depending on the system you're using. If you're using VAPI, there might be a specific function or a status check that you can perform to determine if the indexing is complete. Unfortunately, I don't have the exact details on how to check the indexing status within VAPI, as it would depend on the features provided by the API. If VAPI offers a webhook or an API endpoint to check the status of the indexing process, you could use that to get real-time updates. Otherwise, you might need to consult the documentation or reach out to the support team for more detailed guidance on this feature. Please let me know if there's anything else I can assist you with!
a
Can't mark it "Ask for help", "the interaction failed" it says
s
@armandas The indexing happens when you create the knowledge base. If you try to use the KB right after creating it, you might experience a few hiccups. I suggest creating a KB and waiting for a few minutes before making a call. If this is not true, could you please share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help me figure out what went wrong!
a
My assumption was right! 🙏 how can i know when KB is ready to be interfered with? This is happening with every call and every document, depending on its size of course
s
@armandas could you please share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help me figure out what went wrong!
a
The call ID: 06aa63c5-8107-4ac2-9451-da90f95a7c7b Timestamp: 2025-01-23 17:58 (GTM+2) Expected: To have the file retrieved from the knowledge base Response: no file has been recovered.
s
Copy code
"knowledgeBase": {
        "topK": 2,
        "fileIds": [
          "c82c97b4-8dce-4b3b-8a18-5dfc7bdaf421"
        ],
        "provider": "canonical"
      }
@armandas You are currently utilizing the previous knowledge base provider, which has ceased its services. As a result, it is no longer functioning effectively for your needs. I recommend considering a migration to a new knowledge base provider, and you can find information regarding the setup process here https://docs.vapi.ai/knowledgebase. I understand that migrations can be tedious and time-consuming; however, it is essential to invest our time in these necessary development tasks. I apologize for our inability to facilitate an automated migration for the reasons that are evident. Please keep me informed about your progress.
a
I did the migration, it works as previously 🙏
Still, my main question remains, how do I know the file has done indexing so I can surely know that the assistant will work as expected 🫣
s
@armandas can you share the call ID, expected against actual response.
@armandas It takes around 5 minutes, I guess. I'm not sure of the provider indexing pipeline, so I cannot tell you when it's done.
3 Views