I have developed a chatbot in Power Apps connected to my enterprise data. I setup RAG design pattern to send the prompt via REST API to Azure Cognitive service which indexed my enterprise data. Then the top search results is sent to Azure OpenAI service via REST API.
My goal is to include the citations of the answers in response similar to the Azure OpenAI web app. However, I haven't found any documentation to do this.
I tried appending the following user instructions for every prompt. However the responses are not returning citations consistently.
{
"role": "user",
"content": "Your response will have a citation section at the end of your answer. It will include a citation number starting at 1 enclosed by brackets and increments for each citation. all URL links in your citation response should be hyperlinks in the format : <a href\"URL\">policy document title</a>. Add <br><br> whenever there is a line break in your answer."
}
Please advise on the best approach.