Getting Started
- Access to the AI Proxy Playground (Use edge or chrome for the best experience)
- Azure OpenAI API Key
- VS Code
For this lab you are using a custom playground build on-top of the Azure OpenAI Service. In this playground you will have the opportunity to play with the prompts and learn how to interact with OpenAI Models.
AI Proxy Playground: https://arg-syd-caiwest-playground.azurewebsites.net
In the later modules, you will also be interacting with the Azure OpenAI Service using the Azure SDK.
Authenticate
You will be using your AI Proxy API Key that you registered for.
-
Navigate to the AI Proxy Playground. You will find this link when you registered for this workshop.
-
Enter the API Key at top-right and click
Authorize
to login.
Explore
On API Key is entered, the playground application should update to show a Logout
button at top-right, as shown below. To validate your setup, enter a query in the user prompt input box (region 2) and click Send
. You should get a conversational response in the chat session are (region 3) as shown below.
Let's take a minute to familiarize ourselves with the different regions of this app.
- Region 1️⃣ | Once authorized, shows the event profile.
- Region 2️⃣ | User prompt - used to enter text questions for AI
- Region 3️⃣ | Conversation - interleaved user questions & assistant responses
- Region 4️⃣ | Configuration - tunable parameters, execution stats
- Region 5️⃣ | System message - sets assistant persona, base context
- Region 6️⃣ | Function calling - save custom functions to set context
- Region 7️⃣ | Image generation - access the DALL-E model playground
Tips
1. Select a Model
The playground supports multiple models. You must select a model from the Model dropdown in the Configuration section before you can interact with the model.
2. Clear Chat Sessions
The output of the model is influenced by the contents of the chat session. To ensure that the output of the model is not influenced by previous prompts, click the "Clear Chat" button before entering each new prompt.
3. Copy-Paste Snippets
In a prompt-based exercise, you will find the prompt input is provided to you in a code-fenced snippet as shown below. When viewing this page in a browser, click within the code-fenced region below to see a copy
icon appear at the right. Click it to copy the prompt into your clipboard - then paste using Ctrl-V (or equivalent) command into the text input region in Playground.
This is the prompt text you need to enter into the chat prompt input field.