How to get response reference on azure API just like in default Azure chat app.

Audrius Naujokas 20 Reputation points
2024-02-26T07:47:32.9+00:00

The OpenAI model "gpt-35-turbo" is trained on specific business documentation. In the example AzureOpenAi client is getting text answer in "response.choices[0].message.content". How can I get reference file just like in the default Azure chatbot( screenshot) User's image

User's image

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

Accepted answer
  1. Charlie Wei 3,320 Reputation points
    2024-02-26T09:02:45.88+00:00

    Hello Audrius Naujokas,

    The program you are using is a general Chat Completion API. If you wish to utilize the "use-your-data" feature, please refer to the example code provided in this document.

    Best regards,
    Charlie


    If you find my response helpful, please consider accepting this answer and voting 'yes' to support the community. Thank you!

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.