Cant retrieve correct answer from KB
# 🤝help
t
hi ive import pdf (tradional chinese) into kb. however when i enable chat it cant find the correct answer(it can find some, but some can't), is there anyway i can change the setting of KB chunk size or other factor that will effect it?? thanksss
s
Hello, I had this problem
try making the information into chunks and sorting it out by some logic
If that doesnt work only other solution I know is by making ai task for him you can reprogram his thinking and giving him directions where to look
Hope that helps
p
Hi! sorry to intrude, I have the same problem! What do you mean @stocky-planet-12867 with "making ai task for him you can reprogram his thinking and giving him directions where to look"? Thanks!
s
so by using ai task into the Task Instructions you can give him directions, like if the question is about finance then look under KB 1 and start from headline finance
Hope it helps 🙂
Here look at mine.

https://cdn.discordapp.com/attachments/1146787051757379594/1146803378358341652/image.png

p
OK thank you! And how do you solve the problem if it occurs in several questions? Let me explain with an example: I'm working on creating a chatbot for a motorcycle dealer. In the knowledge base, I've included information about various motorcycles, all with the same details (Colors, power, name, ecc). I've encountered situations like these: When I ask, "I have an A2 license, what motorcycle can I buy?" I don't get a response (this information is in the Knowledge). However, if I ask, for example, "I have an A3 license, what motorcycles can I ride?" I get a response. I inquire if they sell electric motorcycles (information NOT present in the Knowledge), and it responds "yes." I ask if they have pink-colored motorcycles (a color not listed among the available options), and it responds "yes."
s
well easy fix is to make a list of 50 most asked questions (you can ask chatgpt for list of questions), Or make the ai task and just remake what I made for instructions but for your store, the important part is the last one
t
hi
s
hey
t
so do you mean by kind of prompting a question to KB first?
s
what?, can you explain your question
t
the ai task, you ask kb with question first?
and than ask another it chatbot
how did u set information from KB into chunk
i couldnt find any place to modify the setting except for summary agent(which im not sure is it related or not,it gives me same result )
s
under your kb if you pull information form document just make like blocks and give them names
t
i just imported a pdf
i cant pull info out
r
Also very curious to see some good practices to solve this as i have the same challenges. Have seen quite a few people having this issue as well. On my side we have straight forward product list of about 100 items and cannot get consistent behaviour when checking the KB when users ask about products.
t
yes , same here
p
Yes, we hope there are improvements on the KB soon!
Ok I will try to follow this procedure, Thanks!
b
instead of making the list in the task, I would create an array with the list and feed it under the AI Task Input
t
so what is the proper way to get correct answer from kb now?
b
There is no "proper" way AFAIK, it's just one of many possible solutions. Unless the botpress team have another better alternative, at least
p
Ok thank you!
2 Views