implement on your own data by api

Sudhir Dutta 20 Reputation points
2024-04-16T20:56:50.1866667+00:00

I want to implement on your own data by api. I know it’s very easy to do so in OpenAI studio, but now I want to do it by api with no UI, how should I do it?

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,568 questions
0 comments No comments
{count} votes

Accepted answer
  1. YutongTie-MSFT 46,976 Reputation points
    2024-04-16T21:48:04.03+00:00

    @Sudhir Dutta

    Thanks for reaching out to us, you can call the API but you need to upload the data from Azure OpenAI studio, do you mean you want to import the data from API as well?

    The steps are as below -

    Add your data using Azure OpenAI Studio

    Tip

    You can use the Azure Developer CLI to programmatically create the resources needed for Azure OpenAI On Your Data

    Navigate to Azure OpenAI Studio and sign-in with credentials that have access to your Azure OpenAI resource. During or after the sign-in workflow, select the appropriate directory, Azure subscription, and Azure OpenAI resource.

    1. Select the Bring your own data tile A screenshot of the Azure OpenAI Studio landing page.
    2. In the pane that appears, select Upload files (preview) under Select data source. Azure OpenAI needs both a storage resource and a search resource to access and index your data. Tip See the following resource for more information: Data source options supported file types and formats For documents and datasets with long text, we recommend using the available data preparation script.
      1. For Azure OpenAI to access your storage account, you will need to turn on Cross-origin resource sharing (CORS). If CORS isn't already turned on for the Azure Blob Storage resource, select Turn on CORS.
      2. Select your Azure AI Search resource, and select the acknowledgment that connecting it will incur usage on your account. Then select Next.
      A screenshot showing options for selecting a data source in Azure OpenAI Studio.
    3. On the Upload files pane, select Browse for a file and select the files you downloaded from the prerequisites section, or your own data. Then select Upload files. Then select Next.
    4. On the Data management pane, you can choose whether to enable semantic search or vector search for your index. Important Semantic search and vector search are subject to additional pricing. You need to choose Basic or higher SKU to enable semantic search or vector search. See pricing tier difference and service limits for more information. To help improve the quality of the information retrieval and model response, we recommend enabling semantic search for the following data source languages: English, French, Spanish, Portuguese, Italian, Germany, Chinese(Zh), Japanese, Korean, Russian, and Arabic.
    5. Review the details you entered, and select Save and close. You can now chat with the model and it will use information from your data to construct the response.

    I hope this helps.

    Regards,

    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful