problem with knowledgebase
# 🤝help
i
Hi guys, quick question. when getting the knowledgebase to answer questions it seems that it answers questions that aren't in the knowledgebase at all even though it says 'found in knowledgebase' . for example: if I ask: "Why is the sky blue?" it starts explaining why the sky is blue, this is not even close to the type of knowledgebase i have, but it still says "found in knowledgebase". does anyone know how to fix this? 🙂
c
Humm... this is weird.
What format of kb did you upload?
Could you please send a screenshot of your workflow?
i
yeah.. i uploaded it in a document...

https://cdn.discordapp.com/attachments/1146912810580844666/1146914329841631373/question_why_is_the_sky_blue_problem.png

here is my workflow
c
Can you please send a report ID?
i
Hi there, what is a report id and how can i send one in?
c

https://cdn.discordapp.com/attachments/1146912810580844666/1146916702836232192/report_issue.gif

this should help you
i
ahh great thanks!
6144b9ce-1e4c-458c-9898-c15377262e65
c
thank you!
Can you please pinpoint where in the flow (which node) the question that isn't in your KB gets answered?
I tried checking your flow, but not everything is in English so I can't really test it in the emulator
i
oooh okay, it just seems to take a random bit of my knowledgebase that has nothing to do with the question and uses AI to answer it anyway
c
@acceptable-kangaroo-64719 would you be able to help here? 🙂
a
@important-byte-48932 if the chat history is included in the knowledge base search (which is the default behavior) sometimes the bot will use it to answer questions. Since you're using StackAI to get an answer for anything the bot doesn't know, the knowledge base might pull from the stack ai answer for answers later in the conversation.
c
Would you recommend not using Stack AI then?
a
or removing the chat history part from the knowledge agent (this bit)

https://cdn.discordapp.com/attachments/1146912810580844666/1147224140852494446/image.png

i
ahhh okay, i'll try that, thanks for your help so far!
it works, thank you!! i was just wondering, the chat history looks at what has already been said , so how did it answer random questions that didn't have anything to do with the knowledgebase or chat history (and say "found in knowledgebase")?
a
Correct. Since the chat history is passed to the knowledge agent, the knoweldge agent looked at it, got the answer, and then passed it on to the next step. So while the AI task got the info from the knowledge agent, the knowledge agent got it from the chat history (but didn't tell the AI task this, so it thinks that it is normal proper knowledge)