Using own data in Azure Open AI via the REST API

Henk Terblanche 35 Reputation points
2024-02-12T13:01:29.0366667+00:00

I have created a deployment and loaded my own data (number of html files from a knowledge base). When asking a question related to the data in the Chat Playground / a Web App deployed from Azure OpenAI Studio the answer is related to my own data. However when I use the Azure OpenAI REST API (using the keys and end-point supplied for my deployment) it returns a generic answer and not based on my data. Does the REST API support user data at this stage or have I made a mistake in my configuration?

Azure OpenAI in Foundry Models

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    5 deleted comments

    Comments have been turned off. Learn more

  2. AshokPeddakotla-MSFT 36,021 Reputation points Moderator
    2024-02-12T14:22:28.85+00:00

    Henk Terblanche Greetings & Welcome to Microsoft Q&A forum!

    Does the REST API support user data at this stage or have I made a mistake in my configuration?

    To answer your question, yes you can access Azure OpenAI on your data using a REST API or the web-based interface in the Azure OpenAI Studio

    However when I use the Azure OpenAI REST API (using the keys and end-point supplied for my deployment) it returns a generic answer and not based on my data.

    Make sure that you have correctly loaded your data into the deployment. You can check this by verifying that your data is visible in the Chat Playground or Web App

    Did you try setting the inScope parameter?

    You can refer to the Azure OpenAI Service REST API reference documentation for details on how to structure a request and receive a response.

    Do let me know if that helps or have any further queries.

    Was this answer helpful?

    0 comments No comments

Your answer

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