Include KB in the prompt for AI Task
# 🤝help
b
Hi, when chatbot doesn’t have the answer to my question, i would like it to fallback to chatgpt. The problem is, how do i give chatgpt all the info (KB) of my company. Should i write it in the prompt? Or is there a way to link it with KB or to upload a document or text to use it as source? Simply put: when botpress KB doesn’t find answer even though it is in KB can chatgpt look through the same KB or a other source to give the user answer? It shouldn’t pull the answers from the web, only my documents( text,pdf)
f
How big is your KB?
b
One whole website and a pdf
Pdf with 3-4 pages
and some text where i answered some questions
f
It's going to be too much information to cram into the AI Task. You could give the AI Task some information about your company and then let it answer
But I would say that the best way would be to improve your KB
b
I tried, i wrote questions and answer below in my kb. Is there a better way?
f
Have you tried a FAQ format like Question 1: x Answer 1: answer to x Question 2: y Answer 2: answer to y
b
yes
f
And it can't answer those questions that you have in your FAQ?
b
Sometimes it does, sometimes it doesn't
side question, if i use 2 languages for my bot, do i need to have 2 separate KBs for the languages, because when i ask in different language the bot doesn't have a answer
f
You shouldn't have to. Are you using the translator agent?
b
yes
f
Then it shouldn't be an issue. If you notice certain that it can't find an answer to certain phrases, then it will be beneficial to add the phrases and the corresponding answer to your FAQ, just like you would with it being in original language.
b
ok thanks