Skip to content

Event access to Azure AI resources

You are following these instructions because you are taking part in an event where the Azure AI resources for the workshop are provided for you. In this case, you'll be given an Azure AI Proxy Endpoint and a time bound API Key to access the Azure AI resources.

You will perform the follow steps:

  1. Set up the workshop environment with GitHub Codespaces.
  2. Create the Prompt Flow connections.
  3. Proceed to the workshop.

Azure Resources backing the workshop

The Azure AI resources for the workshop are provided by the Azure AI Proxy Endpoint. The Azure AI Proxy Endpoint provides access to the following Azure AI resources:

  • Azure AI Search. The Azure AI Search connection provides access to the contoso-products search index.
  • Azure OpenAI. The Azure OpenAI connection provides access to the GPT-3.5-turbo, GPT-4 large, and embedding models.

To run the workshop with GitHub Codespaces, complete the following steps:

  1. From your web browser, navigate to the Contoso Chat Proxy repo. This will open the GitHub repository in a new browser tab so you can follow the instructions in this tab.
  2. Select the <> Code button, then select Codespaces.
  3. Next select Create codespace in main. This will start up a GitHub Codespaces environment for you. It will take approximately 1 minute to create the environment.

    Warning

    When you have finished the workshop, be sure to stop the Codespace to avoid incurring unnecessary charges.

Grounding data for the workshop

There are two data sources for the workshop:

  1. Product information from Azure AI Search. This data is accessed via the Azure AI Proxy Endpoint. The data was loaded into Azure AI Search from the data/product_info folder using the create-azure-search.ipynb notebook.
  2. Customer order history data is loaded from the data/customer_info folder into a Python Pandas DataFrame. The data is used to create a personalized shopping experience for the customer. In production, this data would be accessed from a database such as Cosmos DB.

Create the Prompt Flow connections

The following connections are created:

  • aoai-connection: This connection is used to access Azure OpenAI embedding, gpt-35-turbo and gpt-4 large language models (LLMs).
  • contoso-search: This connection is used to access the Azure AI Search service and contoso-products search index.

Create the Prompt Flow connections:

  1. From VS Code, update the .env.proxy file with the Azure AI Proxy Endpoint and API Key provided to you. Update the AI_PROXY_ENDPOINT and AI_PROXY_KEY with the values from the Azure AI Proxy Endpoint. Ignore the rest of the environment variables.

  2. Configure the Prompt Flow connections:

    • Open the connections folder, then open the proxy-create-connections.ipynb notebook.
    • Select Run All in the notebook to create the connections.
    • You will be prompted to choose a kernel source, select Python Environments and then select the Recommended Python environment. At the time of writing, this is Python 3.11.8.

Proceed to the workshop

Proceed to the Workshop section.