These project instructions will guide you through creating and deploying a custom AI copilot using Azure AI Studio. Follow the steps below carefully, and be sure to complete each deliverable for submission.
In this project, you will:
- Create an AI Studio project and hub.
- Deploy an AI model and upload product data for indexing.
- Build and test a custom copilot app using Prompt Flow.
- Evaluate the app with both automated and manual prompt evaluation.
- Deploy and test the copilot application.
-
Log in to Azure AI Studio.
-
Click Create Project, name your project (
outlander-ai-project
), and create a new hub (outlander-ai-hub
). -
When we first time create this project and not create hub yet, after click Customize, we will customize below settings. For key settings in below you can custom by the instruction.
-
Leave default configurations unless necessary adjustments are needed(below is my settings), and click Next in below.
-
Ensure you have an Azure AI Search service for indexing data. And finally review the information and click Create
-
With your project selected, go to Models + endpoints.
-
Click +Deploy Model, choose a base model like
gpt-4o
, and confirm the deployment.
-
Download and unzip the
product-info.zip
from this GitHub link. -
In AI Studio, select the Data + indexes blade and click +New Data.
-
Upload the unzipped product data files or connect to your storage account if preferred.
-
After upload files, you can see the files structure in Data + indexes panel.
-
Create a Embedding model, we can transform the document (uploaded above) to dense embedding which we can use it in RAG system later. Like procedure created for
gpt-4o
, we chooseModels + endpoints
>>>Deploy model
>>>Deploy base model
in sequentially, and choosetext-embedding-ada-002
model to create. -
Still you can custom below settings, but i leave here by default and click Deploy
-
After deployed, we can see the model in the service we created before.
-
Go to the Data + indexes blade and click +New Index after Indexes
-
Select Data in Azure AI Studio as the data source, choose the uploaded data, and proceed.
-
Choose your deployed model for text embeddings and create the index.
-
Navigate to the Chat blade under Project Playground.
-
Select your deployed model and add your data by choosing the created index.
-
Click Prompt Flow, name your flow (e.g.,
Outlander AI Copilot
), and open it. -
Review and understand the default components, such as data retrieval and response generation.
-
Start a compute session by clicking Start compute session.
-
Test the copilot by entering sample questions such as:
Below questions basically stick with the documents we uploaded, so ideally it will reply the relevant response based the document that is purpose of RAG.
-
After test, click Save for this copilot.
-
Create a JSONL or CSV file with evaluation questions and answers (see below for format).
Sample Evaluation Data (JSONL format)
{"chat_input": "Which tent is the most waterproof?", "truth": "The Alpine Explorer Tent has the highest rainfly waterproof rating at 3000m", "chat_history": []} {"chat_input": "How much do the TrailWalker Hiking Shoes cost?", "truth": "The TrailWalker Hiking Shoes are priced at $110", "chat_history": []}
Sample Evaluation Data (CSV format)
chat_input truth chat_history Which tent is the most waterproof? The Alpine Explorer Tent has the highest rainfly waterproof rating at 3000m [] How much do the TrailWalker Hiking Shoes cost? The TrailWalker Hiking Shoes are priced at $110 [] -
In Prompt Flow, click Evaluate, choose Automated evaluation, and then and use your dataset.
-
Map inputs and outputs and Submit on the next page and then run the evaluation.
-
Go to Evaluation in AI Studio and Create a Manual evaluations
-
Add questions and expected responses and run evaluations, right here I only add one.
- Input:
How much do the TrailWalker Hiking Shoes cost?
- Expected response:
The TrailWalker Hiking Shoes are priced at $110.
- Input:
-
After run, you can provide feedback using thumbs up or down for the response.
-
In Prompt Flow, click Deploy and name the deployment.
-
Verify the deployment details and create, finally you will see the created endpoint in below image.
-
Finally, click the created endpoint
outlander-ai-project-znsmp-1
and you will see ready-to-use deployment info -
And we can test some question.
🎉Good luck, and enjoy building your custom Azure AI copilot✨!