Skip to content

Commit 149ac9b

Browse files
authored
#MSIgnite Lab 401 | workshop updates v3 (#207)
* fix / msignite-docs-feedback-v3 * fix / clear outputs in eval notebooks for clean start * fix / update skillable instructions panel
1 parent 793e2a0 commit 149ac9b

File tree

11 files changed

+124
-222816
lines changed

11 files changed

+124
-222816
lines changed

docs/workshop/docs/02-Setup/1-Provision-And-Setup/01-Self-Guided.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Our development environment uses a Visual Studio Code editor with a Python runti
2525
``` title="Tip: Click the icon at far right to copy link"
2626
https://aka.ms/contoso-chat/prebuild
2727
```
28-
1. You will be prompted to log into GitHub. **Login now**
28+
1. You will be prompted to log into GitHub. **Login now with your GitHub profile.**
2929

3030
---
3131

docs/workshop/docs/02-Setup/1-Provision-And-Setup/02-Skillable.md

+22-21
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ At the end of this step you should have:
6262
https://aka.ms/contoso-chat/prebuild
6363
```
6464
65-
1. You will be prompted to log into GitHub. **Login now**
65+
1. You will be prompted to log into GitHub. **Login now with your GitHub profile.**
6666
6767
### 2.2 Setup GitHub Codespaces
6868
6969
1. You will see a page titled **"Create codespace for Azure-Samples/contoso-chat"**
70-
- Check that the Branch is `msignite-LAB401`
70+
- Check branch is `msignite-LAB401`
71+
- Check dev container config is `Contoso Chat (v2)` and region is `US East`
7172
- Click dropdown for **2-core** and verify it is `Prebuild ready`
7273
7374
!!! tip "Using the pre-build option makes your GitHub Codespaces load up faster."
@@ -137,25 +138,25 @@ Your GitHub Codespaces is running on the _original_ Azure Samples repo for this
137138
138139
### 2.4 Check Tools Installed
139140
140-
Use the following commands in the VS Code terminal to verify these tools are installed. This step is optional but gives you a sense for the command-line tools we will use in this lab.
141-
142-
```bash title=""
143-
python --version
144-
```
145-
```bash title=""
146-
fastapi --version
147-
```
148-
```bash title=""
149-
prompty --version
150-
```
151-
```bash title=""
152-
az version
153-
```
154-
```bash title=""
155-
azd version
156-
```
157-
158-
!!! success "CONGRATULATIONS. You setup your GitHub Codespaces with your fork of the repo!"
141+
The workshop uses the following tools and commands: `python`, `fastapi`, `prompty`, `az`, `azd`. These are pre-installed for you, but you can optionally verify these to get a sense for their current versions.
142+
143+
??? task "(Optional: Expand to view details) Verify intalled tools."
144+
145+
```bash title=""
146+
python --version
147+
```
148+
```bash title=""
149+
fastapi --version
150+
```
151+
```bash title=""
152+
prompty --version
153+
```
154+
```bash title=""
155+
az version
156+
```
157+
```bash title=""
158+
azd version
159+
```
159160
160161
161162
## 3. Authenticate with Azure

docs/workshop/docs/02-Setup/1-Provision-And-Setup/03-Validation.md

+11-9
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ Here's a reminder of the Azure Application Architecture - let's check our provis
2323

2424
![ACA Architecture](./../../img/aca-architecture.png)
2525

26-
1. Open a new browser tab and navigate to the link below. You will be prompted to login.
26+
1. Open a new browser tab and navigate to the link below. You may be prompted to login.
2727
``` title=""
2828
https://portal.azure.com/#browse/resourcegroups
2929
```
3030
31-
1. **Sign in** → Use the `Username` and `Password` from the "Azure Credentials" section in your Skillable Lab instructions panel.
31+
1. **Sign in** → If prompted, use the `Username` and `Password` from the "Azure Credentials" section in your Skillable Lab instructions panel.
3232
1. You may be presented with a "Welcome to Microsoft Azure" screen. Click **Cancel** (to dismiss it) or click **Get Started** (to take an introductory tour of the Azure Portal).
3333
1. You should be taken directly to the Resource Groups page for your subscription.
3434
- You should see an `rg-AITOUR` resource. This was created for you and contains all the resources needed to build and deploy your RAG-based copilot.
3535
1. **Click** `rg-AITOUR` to visit the Resource Group overview page.
36-
- **Check:** Deployments (under "Essentials") - You should see: *35 succeeded*.
36+
- **Check:** Deployments (look under "Essentials") - You should see: *35 succeeded*.
3737
- **Check:** Resources (in Overview) - You should see: *15 resources*.
3838
3939
!!! task "Leave the Azure Portal open on this tab. We'll revisit it later."
@@ -51,14 +51,16 @@ Here's a reminder of the Azure Application Architecture - let's check our provis
5151
5252
1. **Click `Sign in`** → you will auto-login with the Azure credentials used to sign into the portal.
5353
54-
- **Check:** You should see a Project and a Hub listed.
54+
- **Check:** You should see a Hub resource (with a name like _ai-hub-XXXXXXXX_)
55+
- **Check:** You should see a Project resource (with a name like _ai-project-XXXXXXXX_)
5556
56-
!!! info "The [AI Studio hub](https://learn.microsoft.com/azure/ai-studio/concepts/ai-resources) collects AI resources that can be shared between AI projects. The [AI Studio project](https://learn.microsoft.com/azure/ai-studio/how-to/create-projects?tabs=ai-studio) helps you organize your work when building applications."
57+
!!! info "The [Azure AI hub](https://learn.microsoft.com/azure/ai-studio/concepts/ai-resources) collects AI resources that can be shared between AI projects. The [Azure AI project](https://learn.microsoft.com/azure/ai-studio/how-to/create-projects?tabs=ai-studio) helps you organize your work when building applications."
5758
58-
- Click on the Hub resource name → it may be something like _ai-hub-45556973_
59-
- **Check:** There is 1 project listed under `Projects` for this hub.
59+
- Click the Project link. You will be taken to a Project details page.
6060
- Click "Connected Resources" in the left pane,
61-
- **Check:** You see Hub connections to OpenAI endpoints, Azure AI Search & Storage.
61+
- **Check:** You should see Hub connections to OpenAI endpoints, Azure AI Search & Storage.
62+
- Click "Models + endpoints" in the left pane.
63+
- **Check:** You should see deployed models for this project.
6264
6365
!!! info "For this application, we will use the chat completion models `gpt-4` and `gpt-35-turbo`, and the embedding model `text-embedding-ada-002`."
6466
@@ -106,7 +108,7 @@ The Azure AI Search resources contains the product index for our retailer's prod
106108
- you will see: Results dialog filled with index data for the entire product database.
107109
1. Enter `sleeping bag` in the text box, and click Search
108110
- Verify that the first result returned relates to a sleeping bag from the catalog
109-
!!! tip "Look under the 'answers' section of the response to see if the results match."
111+
!!! tip "Check the 'value' section of the response for semantically-ranked results."
110112
1. Enter `something to make food with` in the text box, and click Search
111113
- Verify that the first result returned relates to a camping stove
112114

docs/workshop/docs/03-Ideate/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1. Skillable VM tag - showing the countdown timer & launch page
1010
1. GitHub Codespaces tab - showing the Visual Studio Code IDE.
1111
1. Azure Portal tab - showing your `rg-AITOUR` resource group.
12-
1. Azire AI Studio tab - showing your AI project page.
12+
1. Azure AI Studio tab - showing your AI project page.
1313
1. Azure Container Apps - showing your deployed application.
1414

1515
We completed the setup, validated the infrastructure and verified that the application was deployed correctly.

docs/workshop/docs/04-Evaluate/02.md

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ The "scoring" task could be performed by a human, but this does not scale. Inste
1515
- `groundedness.prompty`
1616
- `relevance.prompty`
1717
1. Run each file and observe the output seen from Prompty execution.
18+
19+
!!! tip "Run a Prompty file by clicking the _play_ icon or pressing `F5` on your keyboard"
20+
1821
1. **Check:** You see prompty for Coherence, Fluency, Relevance and Groundedness.
1922
1. **Check:** Running the prompty assets gives scores between `1` and `5`
2023

docs/workshop/docs/Tear-Down/index.md

+43-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,54 @@
11
# Cleanup Resources
22

3-
!!! danger "Don't Forget - End the Skillable Session"
3+
## 1. Give us a ⭐️ on GitHub
44

5-
Visit the Skillable Lab page and click `End Session` to end the session and release all resources. This allows the lab to be run again without quota issues for others.
5+
!!! task "FOUND THIS WORKSHOP AND SAMPLE USEFUL? MAKE SURE YOU GET UPDATES."
66

7+
The **[Contoso Chat](https://aka.ms/aitour/contoso-chat)** sample is an actively updated project that will reflect the latest features and best practices for code-first development of RAG-based copilots on the Azure AI platform. **[Visit the repo](https://aka.ms/aitour/contoso-chat)** or click the button below, to give us a ⭐️.
8+
<!-- Place this tag where you want the button to render. -->
9+
<a class="github-button" href="https://github.com/Azure-Samples/contoso-chat" data-color-scheme="no-preference: light; light: light; dark: dark;" data-size="large" data-show-count="true" aria-label="Star Azure-Samples/contoso-chat on GitHub"> Give Contoso Chat a Star!</a>
10+
11+
---
12+
13+
## 2. Feedback & Cleanup
14+
15+
Check that the right tab is selected for your session, and complete the steps!
16+
17+
=== "Self-Guided"
18+
19+
!!! task "Reminder 1: Give us Feedback"
20+
21+
Have feedback that can help us make this lab better for others? [Open an issue](https://github.com/Azure-Samples/contoso-chat/issues/new) and let us know.
22+
23+
=== "Microsoft AI Tour"
24+
25+
!!! task "Reminder 1: Give us Feedback"
26+
27+
Visit [aka.ms/MicrosoftAITour/Survey](https://aka.ms/MicrosoftAITour/Survey) to give us feedback on this session (#WRK550)
28+
29+
!!! danger "Reminder 2: End the Skillable Session"
30+
31+
Visit the Skillable Lab page and click `End Session` to end the session and release all resources. This allows the lab to be run again without quota issues for others.
732

8-
!!! danger "Don't Forget - Stop Your Codespaces"
933

10-
Visit [https://github.com/codespaces](https://github.com/codespaces) - locate the Codespaces instance you are currently running and delete it to prevent continued usage of the storage or processing quotas.
34+
=== "Microsoft Ignite"
1135

12-
If you want to save any changes you have made to files to your fork, use the Source Control tool in VS Code Online to commit and push your changes before you delete the Codespace.
36+
!!! success "Reminder 1: Please Give us Feedback"
1337

14-
!!! info "Reminder - Give us Feedback"
38+
Visit [aka.ms/MicrosoftIgniteEvals](https://aka.ms/MicrosoftIgniteEvals) to give us feedback on this session (LAB401)
39+
40+
!!! warning "Reminder 2: End the Skillable Session"
1541

16-
Visit [aka.ms/MicrosoftAITour/Survey](https://aka.ms/MicrosoftAITour/Survey) to give us feedback on this session (#WRK550)
42+
Visit the Skillable Lab page and click `End Session` to end the session and release all resources. This allows the lab to be run again without quota issues for others.
1743

18-
!!! info "Reminder - Star the Repo"
44+
---
45+
46+
## 3. Stop your Codespaces
47+
48+
!!! warning "Reminder: Delete your Codespaces instance to preserve quota"
49+
50+
1. Visit [https://github.com/codespaces](https://github.com/codespaces) in your browser
51+
1. Locate the Codespaces instance you are currently running
52+
1. Delete it to prevent continued usage of the storage or processing quotas.
1953

20-
Visit [Contoso Chat](https://aka.ms/aitour/contoso-chat) and give us a 🌟 to help raise awareness of this workshop!
54+
If you want to save any changes you have made to files to your fork, use the Source Control tool in VS Code Online to commit and push your changes before you delete the Codespace.

docs/workshop/docs/index.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ The workshop teaches you to **build, evaluate, and deploy a retail copilot** cod
44

55
You can complete it as a **self-guided** workshop at home. Or you can register for an **instructor-led** workshop at specific events like the [Microsoft AI Tour (2024-2025)](https://aka.ms/aitour) and [Microsoft Ignite 2024](https://ignite.microsoft.com/en-US/sessions?search=LAB401). The primary difference will be in the initial setup steps and the Azure subscription used.
66

7+
<a class="github-button" href="https://github.com/Azure-Samples/contoso-chat" data-color-scheme="no-preference: light; light: light; dark: dark;" data-size="large" data-show-count="true" aria-label="Star Azure-Samples/contoso-chat on GitHub"> Give Contoso Chat a Star!</a>
8+
79
<br/>
810

911
!!! task "CHOOSE THE TAB FOR YOUR SESSION - This becomes the default context site-wide."

docs/workshop/in-person-starts/MSIgnite-2024-Skillable.md

+22-18
Original file line numberDiff line numberDiff line change
@@ -5,46 +5,50 @@ This file is dynamically retrieved and used by the Skillable VM as the Instructi
55

66
# LAB 401: Build a Retail Copilot Code-First on Azure AI Studio
77

8-
This is a 75-minute instructor-led workshop session at Microsoft Ignite 2024. You must [register](https://ignite.microsoft.com/sessions/LAB401?source=sessions) for an available session, to attend in person.
8+
This is a 75-minute instructor-led workshop at Microsoft Ignite 2024 where you learn to build, evaluate, and deploy, a RAG-based retail copilot on Azure AI.
99

10-
_You will learn to build, evaluate, and deploy, a custom retail copilot code-first on Azure AI - using the Retrieval Augmented Generation (RAG) design pattern to ground copilot responses in retailer data_.
11-
12-
13-
**‼️ -- DO NOT CLOSE THIS WINDOW -- ‼️** <br/> Closing this window will end your lab prematurely. It is ok to minimize this window so you can return to it later when required.
10+
**‼️ -- DO NOT CLOSE THIS WINDOW -- ‼️** <br/> Closing this window will end your lab prematurely. Instead, minimize this window so you can return to it later when required.
1411

1512
---
1613

1714
## 1. Lab Instructions
1815

1916
**Instructions Link:** ++https://aka.ms/aitour/contoso-chat/workshop++
2017

21-
The lab instructions are available at the link above. To get started:
22-
1. Open a new incognito (private) browser window on your workstation
23-
1. Copy the link above into the browser address bar and navigate to it.
24-
1. Start from the **Setup** section to make best use of your time.
18+
Open a new private browser in your workstation.
19+
20+
1. Copy the instructions link to the browser and navigate to it.
21+
1. In the "Before You Begin" section, **Select the Microsoft Ignite tab**
22+
1. Leave this browser open and follow the instructions for the lab.
2523

2624
## 2. Azure Credentials
2725

28-
You will make use of a temporary Azure subscription assigned to this lab instance, with the credentials below. You will need these for the setup stage of the workshop. Verify that you see both _Username_ and _Password_ values below.
26+
You will be assigned a temporary Azure subscription for this lab. Verify that the _Username_ and _Password_ credentials are not empty below. We will use them during setup.
2927

3028
- **Username:** [email protected](User1).Username++
3129
- **Password:** [email protected](User1).Password++
3230

33-
## 3. Skillable VM
31+
## 3. Skillable VM Credentials
3432

35-
The login screen to the left corresponds to the Skillable Windows VM for your lab instance. You should **NOT** need to use it for this lab - but it may prove helpful for troubleshooting issues with proctor help.
36-
37-
Use these credentials to login (username may be preset):
33+
The Skillable VM has a login screen (left) that we do **NOT** need to use today. However, we may need it for troubleshooting (with proctor help). The credentials below will be useful for logging in then.
3834

3935
- [email protected](WRK550-Win11(NEW)).Username+++
4036
- [email protected](WRK550-Win11(NEW)).Password+++
4137

4238
## 4. Time Tracking
4339

44-
This instruction panel has a _Countdown Timer_ (at the top) showing _"Hours Remaining"_ for lab completion (with _1h 15 min_ to start).
45-
- When the timer expires, the VM will terminate automatically
46-
- When it nears expiry, you will be notified so you can cleanup
40+
This Skillable page has a countdown timer (top right) that will show **Hours Remaining** for lab completion. Use this to track time left and decide if you want to do optional steps accordingly.
41+
42+
- You should start with at least 1h 15min on the clock.
43+
- You will be notified when there are 10 mins left
44+
- When timer expires, the VM will terminate automatically!
45+
46+
## 5. Revisiting Lab at Home
47+
48+
By the end of this workshop, you will have a copy of the sample app in your personal GitHub profile. Revisit it at home to explore and complete sections at your own pace.
4749

48-
You will walk away with a copy of the application in your GitHub profile. You can revisit that at home, with the _Self-Guided_ workshop option, to complete the workshop at your own pace, with your Azure subscription.
50+
1. You will need your own Azure subscription for this.
51+
1. You will need to set the "Before You Begin" tab to **Self-Guided**
52+
1. Then continue working through the lab steps there.
4953

5054
---

docs/workshop/mkdocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ theme:
4141
text: Roboto #Regular
4242
logo: img/logo.svg
4343
language: en
44+
custom_dir: overrides #Add custom header scripts
4445

4546
# Theme Modes ...............................................
4647
palette:

docs/workshop/overrides/main.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% extends "base.html" %}
2+
3+
{% block scripts %}
4+
<!-- Add scripts that need to run before here -->
5+
{{ super() }}
6+
<!-- Add scripts that need to run afterwards here -->
7+
8+
<!-- Place this tag in your head or just before your close body tag. -->
9+
<script async defer src="https://buttons.github.io/buttons.js"></script>
10+
11+
{% endblock %}

0 commit comments

Comments
 (0)