https://discord.gg/botpress logo
Connecting Knowledge Base to AI Tasks
# 🤝help
b
Hi guys, im currently working on a bot thats meant to help out with consultancy, my idea was to use the AI task and a knowledge base to help create custom answers that are within certain parameters of a prompt, but im not really sure how to do this. Currently I have an ai transition which categorizes a raw input from the user into one of three categories which then feeds into the query knowledge base block which is connected to a knowledge base for that specific section. Is there any way in which I can use the limit output length of the AI text generation, while constraining the text generation to a prompt, which takes into consideration the knowledge base for the specific category of the users query?
r
You can use autonomous node to perform the said problem but you would need to give it crystal clear instructions and definite rules as well as you are in need to test it thoroughly before hand as they are very hard predict but it would drastically reduce the rest of logic you had to implement here are the docs for reference -https://botpress.com/docs/learn/reference/nodes/autonomous-node
p
You could also add an Ai generate text card after your query Kb card to reformulate the answer it has found.