How can i show to user the most fitting source of ...
# 🤝help
s
I have placed the knowledgbase feature in Botpress after getting the answert i want show the user which sources are fitting to most for generating the answert. How can i output this in the chat. My knowledge base is a table of URLs and Paragraphs. i want show the similar 5 paragraph which are used for the answers.
f
Hey there, You can use turn.KnowledgeAgent.citations in a text card to show where it got the information from.
s
@User yes but then i see a json. i only want the url extracted from the json. is this possible?
f
You can transform them with a bit of code. Maybe this can get you started https://discord.com/channels/1108396290624213082/1213961658045829180
s
@fresh-fireman-491 thats exactly what i need. But it does not work on my side. Probably could you look at my bot?
f
Have you tried debugging it first?