Bot with multiple knowledge bases is using the inc...
# 🤝help
b
I have a bot that depending on a "userData" variable that I send to it when invoking it, it uses different nodes to resolve the user query using different knowledge bases. The problem I have is that botpress is sometimes using an incorrect knowledge base. The way to reproduce the problem is 1) The first time I use the bot, it work fine. All questions are coming from the correct KBs 2) I leave the bot without any interactions, so after 10 minutes, it timeouts 3) If I ask the same questions as I did before, it picks the answer from a different KB; the value of the "userData"variable is still with the correct value, and the log shows that, due to this variable, Botpress used the correct node and KBs, so nothing is wrong from what I see in the log, is just the answers I get belong to a KB that shouldn't be used for this flow
b
the logs should show which KB an answer is coming from - can you share an example of the logs telling you it pulled from the wrong KB?
b
The thing is, as explained in my previous message, the log shows the node it used and is the correct one (and each of my nodes have a different KB attached to it, used only on that particular node). See this example 1) When first invoked, the userData has the value 4190, so it uses the node Query_KB_4190 that has the "4190 KB". The answers the bot provides are OK, consistent with the KB 2) Then I let the bot timeout. The value of the userData variable remains the same (4190). The log shows the transition from the raw input to the 4190 node ("Transition from (flow:Main) [node:IsEmergency] to [node:Query_KB_4190]"), but the answer it gives me is from a different node and KB (4710) If you ask me if I checked the KBs, I did, the information in the 4190 KB do not have the same information that exists in the 4710 KB (FYI, they are the address of a property, so it's pretty simple to pinpoint it's wrong the second time, after the timeout)
Hi Robert...I kept looking at the logs, and when the bot provides the incorrect information, is actually looking into the correct KB, this is what I see when the incorrect information is shown: citations: [ { kbId: 'kb-2f0a7ea639', dsId: 'ds-29d25ad36a', offset: 52, friendlyName: '(table) 3940 Knowledge Base – undefined' } ] } Now, my question is, if I check the 3940 KB, the information provided is not there...is there a way for me to see where the kbId, dsId and offset values are pointing at?
I tried to check the logs inside the Studio, but since this problem only happens when the bot timeouts, and seems that the bot never timeouts inside Studio, I can't reproduce the issue there. So I tried with {{turn.KnowledgeAgent.citations}} to verify from where Botpress took the answer, and the first time I see it took it from the correct place ("(web-page) 4190paragraph"), then wait for the bot to timeout, ask the same question, and now the reply is incorrect and shows it was taken from the same place ("(web-page) 4190paragraph"), but the reply I get has information that is nowhere inside that webpage. Any ideas how to troubleshoot this? As I'm running out of option (or knowledge from my side 🙂 )
@bumpy-butcher-41910 , good day. I created report_01HY393HE9E1FQBD9QDQNY5HSD, in which I sent the bot export, should you want to take a look at it.
Hi...quick question, how long would it take to have someone from botpress to reply to my report, or at least provide a hint how can I troubleshoot this (provided is an isue with my bot and not a bug)?
b
hi there - we look into reports but I can't guarantee a response to each one as we'll try to identify bugs and issues on our end as well. but we don't provide dedicated SLAs as this is a community server, not a customer support line 🙂
b
Hi @bumpy-butcher-41910 , thanks...what about paid support, does your company offer that? As I haven't seen anything like that on your website, all support options directed me to here, Discord
b
you'll find live-chat support is available to teams who subscribe to Botpress, this is usually geared for larger companies using us as part of their core workflow
b
ok, that (chat) is clearly not for me, being a small company with one bot so far. Will keep looking for other options, thanks anyway.
I found what the problem was, the Knowledge Agent' "Answer Manually" option was off, causing the bot trying to answer a question after the chat ended, instead of going back to the start in order to use all the logic steps I have created. You can consider this issue resolved: not a bug, but a wrong setting from my side.