Wrong answers from bot
# 🤝help
f
I have an eccommerce with products. When I ask the first question, the answer usually comes correct however if another question about the same product is asked, the bot is unable to answer.It seems like it doesn't remember the subject. Also it seems to mix up the products descriptions and uses. I'm have a lot of products and was not planning to create separate workflows for each specially because a lot of them can be used together. Any solutions for these 2 issues? Any help will be greatly appreciated ☺️🙏
a
Hey @future-airport-33386, there are a couple of things you can try: 1. Ensure that the chat history is being passed to the knowledge agent (see screenshot) 2. Consider moving some of the information to a table. While you can't query a table directly with the knowledge agent, if you're able to extract the product name you can look it up and pass the data to an AI task
f
@acceptable-kangaroo-64719 Thank you for your reply . Can you please attach the screenshot? Also, I had my entire KB done as Q&A to help the bot to locate the products correctly because it was making mistakes from the PDFs. Do you feel a table may increase the chances of correct answers?. Also I m using raw input Not using AI task at all. I want the bot query my Kb only. Please explain if I still should use the AI task Appreciate your help🙏
a
Sorry I forgot the screenshot 😅

https://cdn.discordapp.com/attachments/1142035057658302594/1142050989898207302/image.png

Q&A can be fine, just make sure that they are grouped by topic.
f
@acceptable-kangaroo-64719 thank you. This the config I have for the Kb agent. Also my Q&A are separated by categories, but the bot still gets product instructions from the wrong place. Also if I ask for example " describe the benefits of X product '. The answer comes up correctly but if the second question is how much is it? Or tell me more about it? Then bot answers ' not part of my content".however if you ask how much is product X ,then the answer is correct. So user can not use it or they ,them because the bot will not remember what the user is talking about.I appreciate your help🙏
a
That all has to do with if you pass the chat history to the knowledge agent or not. Contextual questions ("how much is it") will require some kind of chat transcript or summary, while explicit ones ("how much is the blue t shirt in size M?") don't
8 Views