https://discord.gg/botpress logo
#🤝help
The chatbot is blocked in Thinking
# 🤝help
m

melodic-match-59427

01/08/2024, 3:03 PM
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

jolly-policeman-82775

01/08/2024, 3:06 PM
does it work in the emulator ?
m

melodic-match-59427

01/08/2024, 3:12 PM
sometimes, it gives me " I don't have an answer to that" and sometimes he give me nothing
j

jolly-policeman-82775

01/08/2024, 3:12 PM
can you show me how you set up the chatbot ?
m

melodic-match-59427

01/08/2024, 3:17 PM
sure
j

jolly-policeman-82775

01/08/2024, 3:17 PM
hmmm
first off all change the i dont answer stand expression to this
gimme a second please
m

melodic-match-59427

01/08/2024, 3:18 PM
for instance, in the last question, it give nothing
j

jolly-policeman-82775

01/08/2024, 3:18 PM
!turn.KnowledgeAgent.answer
chagne it to that
why are you using a welcome trigger ?
m

melodic-match-59427

01/08/2024, 3:19 PM
for welcoming message
j

jolly-policeman-82775

01/08/2024, 3:20 PM
ok
click on the raw input nad send me a screen shot pls
m

melodic-match-59427

01/08/2024, 3:24 PM
you mean, I click on the start ? I'm no so expert lol !
j

jolly-policeman-82775

01/08/2024, 3:26 PM
no like the raw input
that thing above the expessions in the middle of the scree
m

melodic-match-59427

01/08/2024, 3:32 PM
j

jolly-policeman-82775

01/08/2024, 3:32 PM
ok so
on the right
m

melodic-match-59427

01/08/2024, 3:32 PM
yes
j

jolly-policeman-82775

01/08/2024, 3:32 PM
there is a thing that says seach in all KB
click on that checkbox
m

melodic-match-59427

01/08/2024, 3:32 PM
ok
j

jolly-policeman-82775

01/08/2024, 3:33 PM
and then try again
test it
m

melodic-match-59427

01/08/2024, 3:34 PM
ok
the same thing
and I notice also there is a difference between the answers of the emulator and webchat, this is normal ?
j

jolly-policeman-82775

01/08/2024, 3:39 PM
hmmm
ummmmm
ok wait
m

melodic-match-59427

01/08/2024, 3:51 PM
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

jolly-policeman-82775

01/08/2024, 4:02 PM
i think
@wide-oyster-38514
might help u when hes online
m

melodic-match-59427

01/08/2024, 4:03 PM
Ok thanks for your help
j

jolly-policeman-82775

01/08/2024, 4:05 PM
np
f

famous-jewelry-85388

01/08/2024, 8:06 PM
hey guys, Is my input needed here?
m

melodic-match-59427

01/08/2024, 10:02 PM
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

wide-oyster-38514

01/11/2024, 8:36 AM
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

melodic-match-59427

01/11/2024, 8:50 AM
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

wide-oyster-38514

01/11/2024, 9:14 AM
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

melodic-match-59427

01/11/2024, 9:21 AM
@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