Azure AI with Own Data restrict document reference

VasilisK 71 Reputation points
2024-02-01T11:27:11.36+00:00

I am using AOAI with own data stored in a blob and indexed by Azure AI Search, via API. Is it possible to restrict the reference to the documents the answer was retrieved from? My TopNDocuments is now set to 5, were I found that I have the optimal results, but I don't want these documents to be referenced (e.g. [doc5]) to the model's answer (content).

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,081 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Saurabh Sharma 23,846 Reputation points Microsoft Employee Moderator
    2024-02-01T22:53:18.1633333+00:00

    Hi @VasilisK Welcome to Microsoft Q&A! Thanks for posting the question.If I understand correctly, you want the Azure Open AI response to exclude the references ([doc1], [doc1] etc.) from response when using your own data.If that's the case, I am afraid it is not supported to hide citation/reference from the response. You need to scrub the response in your code to remove the citation from the code. For example, here is a sample python code which extracts [doc1, doc2] references from the response. User's image

    Additionally, you can provide your feedback over Microsoft Azure Feedback portal. Please let me know if you have any questions. Thanks Saurabh ---Please 'Accept as answer' and Upvote if it helped so that it can help others in the community looking for help on similar topics.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.