The chatbot is blocked in Thinking
# 🤝help
m
Hello guys, I developed a chatbot with a specific knowledge base and I related the output of Check-knowledge to a fallback where there is this answer, " I'm sorry, I don't have an answer to that." in case the asked question is outside of its knowledge base and it will save it insert record . However, several times the chatbot keep thinking with three points and did not give any answer. Does anyone have a solution to avoid this ? Thank you!
j
does it work in the emulator ?
m
sometimes, it gives me " I don't have an answer to that" and sometimes he give me nothing
j
can you show me how you set up the chatbot ?
m
sure
j
hmmm
first off all change the i dont answer stand expression to this
gimme a second please
m
for instance, in the last question, it give nothing
j
!turn.KnowledgeAgent.answer
chagne it to that
why are you using a welcome trigger ?
m
for welcoming message
j
ok
click on the raw input nad send me a screen shot pls
m
you mean, I click on the start ? I'm no so expert lol !
j
no like the raw input
that thing above the expessions in the middle of the scree
m
j
ok so
on the right
m
yes
j
there is a thing that says seach in all KB
click on that checkbox
m
ok
j
and then try again
test it
m
ok
the same thing
and I notice also there is a difference between the answers of the emulator and webchat, this is normal ?
j
hmmm
ummmmm
ok wait
m
any solution pls to avoid this weired behavior ?
thanks for the tutorials, mine is a knowledge base Botpress, my chatbot should give answers based only the documents that I put in its KBs and in case it have an asked question outside its KBs, it should answser that he did not know and I save the answer question to improve in a second step its KBs
j
i think
@wide-oyster-38514
might help u when hes online
m
Ok thanks for your help
j
np
f
hey guys, Is my input needed here?
m
Hi Bassam, I appreciate so much if you can help me to solve this issue
@wide-oyster-38514 , Any tips to help to solve this issue ? Thanks !
w
Hey buddy, just read the ongoing issue. It will be easier for me if you export the bot so I can have a look!
It can be a few issues, just want to confirm to make it a bit faster
Also, please make sure there is no sensitive data!
m
Thanks for your quick reply
I will sent it to you in PM
@wide-oyster-38514 I shared here Thanks in advance for your help
w
Hey @melodic-match-59427, just looked over your bot. The biggest issue I saw is very unorganised KB. I can see that you pasted academic journals pdfs? If yo use how the KB chunks the responses is all over the place, so it can get confusing for it. Also, it would help immensely if you separate the topics. For example, fractures in its own KB so the AI can craw the info better. It wil lalso help the speed of your bot as well. If it takes less time to crawl for info, the response will be faster. I asloalso disabled the translator agent, as agent aso slow down the response speed! I also did minor edits to your expression cards and workflow in general.
I did the checks, works for me!
m
@wide-oyster-38514 Thanks a lot for this explaination, the big issue for me it when we ask a question outside KB and the chatbot still thinking
Thanks a lot for your help