https://discord.gg/botpress logo
Knowledge Agent not answering
# 🤝help
c
Hi! I am trying to get the answer of a user analysed using a prompt for knowledge agent, it needs the knowledge base to do the analysis. I cant seem to get it to work correctly... I dont get an error, but I also dont get an answer.... I added some screenshots. Can someone help? https://cdn.discordapp.com/attachments/1384874016493273189/1384874016879415416/image.png?ex=685403ef&is=6852b26f&hm=8c449419c8776a47462d08193330fbbacee7e038b6d63bc83e4458771c762c88& https://cdn.discordapp.com/attachments/1384874016493273189/1384874017420345354/image.png?ex=685403ef&is=6852b26f&hm=b80c4e1197f767f4b4d2f6a6af34c1cf298a138c75e5c2f496a8b5bb066207e3& https://cdn.discordapp.com/attachments/1384874016493273189/1384874017718009976/image.png?ex=685403ef&is=6852b26f&hm=3d84c20664ddcad8595dd5ecd4dacdccdc5861067f84e171abb2b1bf672106cc& https://cdn.discordapp.com/attachments/1384874016493273189/1384874018083180544/image.png?ex=685403ef&is=6852b26f&hm=1b25c2232f94d791b2423fbdbb90d74743029422440aaa66851a1fc26457d796& https://cdn.discordapp.com/attachments/1384874016493273189/1384874018406010902/image.png?ex=685403ef&is=6852b26f&hm=ca509d6da9a6d608661daf10817ac795abe3a0ea04d6e318a53740ca729f2850& https://cdn.discordapp.com/attachments/1384874016493273189/1384874018733031536/image.png?ex=685403ef&is=6852b26f&hm=c73318faee9050dbc949bc97994324240402eb91d2b10eedb90c3d67786fd042& https://cdn.discordapp.com/attachments/1384874016493273189/1384874019119042642/image.png?ex=685403ef&is=6852b26f&hm=6320d7e40075152e056ca10da4b6985d07dca03c1b7c74fc505cbf73ec56956d& https://cdn.discordapp.com/attachments/1384874016493273189/1384874019420897361/image.png?ex=685403ef&is=6852b26f&hm=20128b431ecea5fc79369927c2409167e0e9097fb4d7d5f4eb0966d472cfd2b8& https://cdn.discordapp.com/attachments/1384874016493273189/1384874019832201376/image.png?ex=685403f0&is=6852b270&hm=e24946675ae87bceaee7e7e3e93c020262d80201febf9e95468c319863a7d05c& https://cdn.discordapp.com/attachments/1384874016493273189/1384874020159098920/image.png?ex=685403f0&is=6852b270&hm=77d58ecac98683280f7471d5a94b35648a36ddf2da874f0232f140e02eca458f&
p
I recommend using the query kb card after you gather the user's question rather than your current approach.
Also, as per the docs you must disable the manual answering in the knowledge agent settings: https://botpress.com/docs/learn/reference/cards/capture-information#answer-from-a-knowledge-base
c
Thank you Leanne: But its not that I want a user to be able to ask a question to my knowledge base. It is that I want to analyse the input of a user. In order to do so I need the knowledge base. The answer of the analysis is what I want to return. So its NOT User: Question Bot: Answer question using knowledge base. but its: Bot: can you give me input User: Input Bot: analizes input based on knowledge base Bot: returns result of analysis to the user Would you also use the query KB card for that?
Disabling that doesnt make any difference...
p
What is the output you expect to be receiving?
I believe a key piece of information you are missing is that the default process when using the knowledge base is: user asks question, answer is queried in kb, if answer is found give it back to user, else error message. That being said from what I understand, what you want to achieve is the following: user provides input, knowledge base is understood independently, process described in kb is applied/mapped to the user input, result is given. T here are key differences between these two processes which makes the kb the wrong place for you to put your mapping instructions. Hence why I had suggested you place what you currently have in your kb in the AI task instructions. However, if the kb contents is not text, please let me know so I can offer alternative solutions.
c
Ok, I created an assistant through OpenAI en connected it to Botpress. That seems to work better 🙂
p
Cool, I'm glad you found an alternative!