Hi,
I have created a chatbot for my department that answers questions about other employees, projects, teams, processes, etc. The information that the chatbot uses to generate responses about employees is stored in several Word documents and pages in a SharePoint. When generating answers, numbers appear in the text (1, 2, 3, etc.) that act as quotes. If the user clicks they can access the source of information. I need to remove those numbers from the answers, for security reasons. I would like the user to not be able to access the original source of information, since they could also edit the documents and alter the information. I appreciate if anyone knows a solution.
Thanks in advance.
Fernando
you can user 'Answer.Text', for more detailed explanation, have a look at my response to this post.
Hi @FGuerrero1
I am glad that you were able to make some progress . Can you share me the error you are getting ?
Cheers ,
Umesh Khandelwal
Hi @Umianta,
Thank you very much for your answer, it seems to be a good solution. I have stored the generative answer in a variable called "employees_answer". Then I have introduced this function: Replace(emplyees_answer, "<a href=", ""). "emplyees_answer represents the response generated by the chatbot and with the replace function it looks for the link and replaces it with an empty string, thus removing the links. However, it gives me an error. I have almost no knowledge of programming, functions, formulas, etc. so I am probably doing something wrong. I don't know what Power Fx function I could use to parse the response and remove the links.
Thank you very much again for the help.
Hi @FGuerrero1
It seems there isn't a straightforward method to exclude reference links in Generative Answers responses. I tried to control it through Custom Instructions or prompts ,but didn't help
However, you can develop a custom solution to address this:
If my response has addressed your query, kindly mark your post as Solved.
If you found my response helpful or it provided you with a direction to proceed, please give it a Thumbs Up. Your Kudos are appreciated. You can accept multiple posts as solutions.
If you're still encountering any issues or challenges, please don't hesitate to inform me so I can assist you further. I'm here to help.
Cheers ,
Umesh Khandelwal
Romain The Low-Code...
76
Pablo Roldan
61
stampcoin
10