r
then what can I do about having the bot priotise different kbs? like if I had two and I wanted it to check kb A before kb B
w
Are you using the query KB card?
r
I am not using the query KB card, instead I am using a raw input card to capture a response and then I have the bot reply according to the kbs provided. If possible I would like the bot to sequentially query the kbs in an order rather than just quering all kbs as a whole.
w
Within the capture info cards, you can select what KBs you want to search (maybe you can separate as much info as possible). The other would be to rename the KBs files and give the bot more context about them. The last idea would be to play around with your Knowledge Agent a bit, maybe give it a prompt that it can use to separate the KBs (I'm never done it myself, but might be worth a go).
r
it seems that if I try to give the bot more context about them it wouldn't work cus then I'd be facing the same glitch again.
I turned it off and back on and it still had the same problem :(
w
I see, please create a post in https://discord.com/channels/1108396290624213082/1111009377525186570, perhaps one of the team members can help you out more!
r
okay, thank you AA
hey AA is it okay if I ask more questions? what would you recommend is the best way to build a kb for frequently asked questions. so say I have one column having the questions and the second column the answers to those questions. I have done this in a table form and have used it as a kb however I've found out that very frequently when I ask the questions in a different manner the bot cannot pick it up and answer me. This leads me to believe that a different way of inputting this (e.g in a doc or pdf form) would be better for the bot to read from?
w
Hey buddy, indeed I use the simple pdf document for the FAQs. The way I structure it is first to write a question (highlighting it in bold) and then provide an answer on the next line. Using this simple format helps the AI to crawl through quite easily
For maximum speed and accuracy, try to create separate FAQS documents when you can with a appropriate name, so its not just one massive document to crawl through!
r
no wonder the AI couldn't pick up the faqs properly using the integrated table kb! there were so many times where I asked the same questions in a different manner and the bot couldn't give an answer, eventhough the questions were 90% identical. I had thought that chatgpt would have been intelligent enough for this.
Thanks AA, I'll give this a try
w
Yeah, I never sue FAQs with tables, only for customer information storage, product recommendation etc. The pdf format is the best for questions like that
r
should it be something like this or in written format? like one line for the question and then right after that the answer. Cus how will the AI know that the line right after is the answer if we don't specify?
w
Never tried that format, but I use this one. Works 100% of the time for me
r
thank you for all the constant help AA, I appreciate it! I'll go and try to integrate this now :D
w
No worries, let me know how it goes for you!
r
Hi AA, I've tried your format but there seems to be some issues
let me give an example
here I have a question with the answer regarding if they offer showrooms in Q12
but botpress seems to ignore this and many others
do you know why or how I can correct this issue?
if not if I have like 500 questions it can't be possible for me to check every single one
so there might be holes in my bot's knowledge base
w
Might be an UI glitch, have you tried testing the answers for the missing sections?
r
yes I have
thats how I knew there were no answers in the kb
I randomly tested the questions and found that the bot couldn't answer so I manually went to check the kb in the bot
and true enough those answers that were clearly in the pdf file weren't there
but it's literally the same format for every question and all the spacing and bolding and numberings were consistent
but yet the AI couldn't sense the answers
for example
but in the pdf theres this
w
In this example, the question is slightly different to the answer in the KB. Sometimes it will answer as no info found. Can you try removing hi there and provide only a direct answer?
Regarding the indexing all the questions, try a classic remove and re-uplaod
If you have 500 questions, I would highly recommend splitting them into different documents
r
I tried a question which had hi there in the answer, and it was able to read it
Im in a bit of a pinch now AA, it seems that after uploading many times again and changing the format of my answers the AI still leaves out a huge chunk of questions. Take a look at this
its completely skipped 9 and 10
whereas 9 and 10 answers are perfectly normal
w
Interesting, sorry to hear that I'm not sure why it's happening. Have you tried the format that you showed me earlier where you used a table format in docs?