https://discord.gg/botpress logo
Displaying citations in webchat.
# 🤝help
c
Hi. I'd like to display citation for answers generated from a KB in a webchat widget. Is there setting I need to change to enable that?
b
citations are stored in a default variable made available through the knowledge agent
they're just stored as a string, so you can manipulate them as needed, e.g. using an AI task
b
An example would be nice
c
For Botpress citations that come from a crawled website (not a web search), it would be great if we could show the user the source URL in case the wishes to learn more or verify the source. I appreciate that the vector chunking process makes this trickier to accomplish but given other RAG bot platforms can do this, it's becoming increasingly expected as part of a good user experience. For example, if we have Botpress crawl our help articles website as its knowledge base, we'd like to offer links to the relevant pages after an answer is given. For uploaded files, it would be useful if one can add the equivalent of a "Citation URL" after a file has been uploaded into knowledge base in Botpress. This link, if defined, could then also be shown to a user when that file comes up as a citation (in addition to the file name). The file's Citation URL could be the S3 bucket where Botpress is storing the file (if that path is public) but I suspect many bot builders may wish link to where the content normally resides (e.g. a resource page on a website, one that may ask for contact info or user authentication prior to starting the download, etc.).
3 Views