URL Citations from Knowledge base of type webpage
# 🤝help
s
I have a website as datasource with multiple URLS. I want to know from which url from the knowledge base the answer is coming from. I know there is the variable: turn.KnowledgeAgent.citations But this gives only gives back this format: (web-page) Name of the webpage I would like to have the name of the URL and the URL itself. I was playing around with these variables, but they also do not include the original URL of the webpage, that the text is from: {{event.kb.results.map((a) => a.dsFriendlyName + '\n' + a.content).join('\n\n')}} Isn't there a way to get the source url of the knowledge base, that the answer is taken from? I think this is quite a common thing to ask.
s
Hi, @square-plastic-2735 , As you described, I could not consistently get good results regarding URLs returned by the KB agent from websites. I suggest using tables with URLs. This can be a second KB request just to match the URLs to the first response from your website KB. The disadvantage is the time to wait for the response. You can also check this comment to create one table as a KB to make it efficient and precise: https://discord.com/channels/1108396290624213082/1250566474255569039/1250570733055115385
s
Hmm. Would be good if botpress itself had a feature like this. But thanks for the idea.
n
Check

https://www.youtube.com/watch?v=GOvpMJnUZeg

10 Views