Skip to content

Commit 55e2d86

Browse files
authored
Merge pull request #169 from nitya/aitour25-testing
AI Tour Workshop Updates
2 parents 054e432 + f0badd9 commit 55e2d86

23 files changed

+843
-837
lines changed

.devcontainer/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN sudo apt-get update && sudo apt-get install -y \
1717
# Install keyring-related and IPython packages in the same layer to reduce the image size and build time
1818
COPY ./src/api/requirements.txt .
1919
RUN pip install -r requirements.txt \
20-
&& pip install keyrings.alt dbus-python ipython ipykernel
20+
&& pip install keyrings.alt dbus-python ipython ipykernel mkdocs-material
2121

2222
# Configure the IPython kernel
2323
RUN ipython kernel install --name "python3" --user

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ page_type: sample
1515
urlFragment: contoso-chat
1616
---
1717

18+
> [!WARNING]
19+
> **This sample is being actively updated at present and make have breaking changes**. We are refactoring the code to use new Azure AI platform features and moving deployment from Azure AI Studio to Azure Container Apps. We will remove this notice once the migration is complete. Till then, please pause on submitting new issues as codebase is changing.
20+
>
21+
> **Some of the features used in this repository are in preview.** Preview versions are provided without a service level agreement, and they are not recommended for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/en-us/support/legal/preview-supplemental-terms/).**
22+
23+
1824
# Contoso Chat Retail with Azure AI Studio and Prompty
1925

2026
This sample creates a customer support chat agent for an online retailer called Contoso Outdoors. The solution uses a _retrieval-augmented generation pattern_ to ground responses in the company's product and customer data. Customers can ask questions about the retailer's product catalog, and also get recommendations based on their prior purchases.

docs/README-v1.md

-407
This file was deleted.

docs/README-v2.md

-298
This file was deleted.

docs/TESTING.md

-131
This file was deleted.

docs/workshop/docs/img/logo.svg

+44
Loading

docs/workshop/docs/index.md

+133
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
# AI Tour Edition
2+
3+
The [Microsoft AI Tour](https://aka.ms/aitour) edition is meant to be used with the instructor-led **WRK550** workshops run using the Skillable lab platform. This version is designed for a **75 minute** in-venue session and provides you with an Azure subscription that is **pre-provisioned** with required resources. Just bring your own laptop (and charger) and dive in!
4+
5+
---
6+
7+
8+
## 1. Getting Started
9+
10+
_Let's organize our development environment and get setup for the workshop._
11+
12+
??? note "Step 1: Launch Skillable"
13+
14+
1. Open a new browser window
15+
1. Navigate to Skillable Lab (`link`) = Tab 1️⃣
16+
1. Click `Launch` - opens window with Login, Instructions = Tab 2️⃣
17+
1. Click `Resources` tab - find admin `Password`
18+
1. Click to fill password for login - confirm
19+
1. You should see: Windows 11 Desktop ✅
20+
1. Revisit `Resources` tab - look for `Azure Portal` section
21+
1. Verify `Subscription`, `Username`, `Password` assigned ✅
22+
23+
**🌟 | CONGRATULATIONS!** - Your Skillable setup is ready.
24+
25+
??? note "Step 2: Launch GitHub Codespaces"
26+
27+
1. Open a new browser tab = Tab 3️⃣
28+
1. Navigate to the workshop sample ([Contoso Chat](https://aka.ms/aitour/contoso-chat))
29+
1. Log into GitHub - use a personal login account
30+
1. Fork this sample to your profile - uncheck `main` to get branches
31+
1. Switch to `aitour-2025` branch in your fork
32+
1. Click green `Code` button, select `Codespaces` tab
33+
1. Click `Create new codespaces on aitour-fy25`
34+
1. This should launch a new browser tab = Tab 4️⃣
35+
1. Verify the new tab shows a VS Code editor ✅
36+
1. Codespaces is loading ... this take a while
37+
38+
**🌟 | CONGRATULATIONS!** - Your Codespaces is running
39+
40+
??? note "Step 3: View Azure Portal"
41+
42+
1. Open a new browser tab = Tab 5️⃣
43+
1. Navigate to the [Azure Portal](https://portal.azure.com)
44+
1. Sign in with Skillable `Username`-`Password` from Step 1.
45+
1. Click `Resource Groups` - refresh periodically if needed
46+
1. See: resource group `rg-AITOUR` created ✅
47+
1. Click resource group item - view details page
48+
1. Click `Deployments` - refresh, check if all `Succeeded` ✅
49+
1. Click `Overview` - check if `15 resources` created ✅
50+
51+
**🌟 | CONGRATULATIONS!** - Your Azure Infra is Provisioned!
52+
53+
??? note "Step 4: View Azure AI Studio"
54+
55+
1. Open a new browser tab = Tab 6️⃣
56+
1. Navigate to the [Azure AI Studio](https://ai.azure.com)
57+
1. Click `Sign in` - should auto-login with Azure credentials
58+
1. Click `All resources` - see: a hub resource listed
59+
1. Click hub resource - see: a project resource listed
60+
1. Click project resource, `Settings` - see: 5 connections listed
61+
1. Verify `aoai-connection` and `search-service-connection` setup ✅
62+
1. Click `Deployments` tab - see 4 models in each category
63+
1. Verify `gpt-4`, `gpt-35-turbo`, `text-embedding-ada-002` exist ✅
64+
65+
**🌟 | CONGRATULATIONS!** - Your Azure AI Project was created!
66+
67+
??? note "Step 5: View Container Apps Endpoint"
68+
69+
1. Return to Azure Portal = Tab 5️⃣
70+
1. Visit the `rg-AITOUR` Resource group page
71+
1. Click the `Container Apps` resource - see details page
72+
1. Look for `Application Url` - at top right
73+
1. Click to launch in new tab = Tab 7️⃣
74+
1. See: page with `Welcome to Container Apps`
75+
76+
**🌟 | CONGRATULATIONS!** - Your ACA Endpoint is provisioned!
77+
78+
79+
??? tip "This Completes Setup. Let's Review"
80+
81+
_You should have 7 open tabs as follows_.
82+
83+
1. Skillable Lab
84+
2. Skillable VM
85+
3. GitHub Repo
86+
4. GitHub Codespaces
87+
5. Azure Portal
88+
6. Azure AI Studio
89+
7. Azure Container Apps.
90+
91+
---
92+
93+
## 2. Setup Local Dev Env
94+
95+
_Let's get back to the GitHub Codespaces tab and configure our Visual Studio Code environment to work with our provisioned Azure backend._
96+
97+
98+
??? note "Step 1: Validate Codespaces Ready"
99+
100+
1. Return to GitHub Codespaces (tab 4️⃣)
101+
1. See: VS Code editor with terminal open
102+
1. Verify: `Prompty Extension` in sidebar (left, bottom)
103+
1. Verify: Cursor ready in VS Code terminal (bottom)
104+
1. Verify Python installed: `python --version` ✅
105+
1. Verify Azure CLI installed: `az version` ✅
106+
1. Verify Azure Developer CLI installed: `azd version` ✅
107+
1. Verify Prompty installed: `prompty --version` ✅
108+
1. Verify FastAPI installed: `fastapi --version` ✅
109+
110+
??? note "Step 2: Authenticate with Azure via CLIs"
111+
112+
1. Log into Azure CLI - `az login --use-device-code`
113+
1. Complete authflow - use default tenant, subscription
114+
1. You are now logged into Azure CLI ✅
115+
1. Log into Azure Developer CLI - `azd auth login`
116+
1. Complete authflow - see: "Logged in to Azure" ✅
117+
118+
??? note "Step 3: Refresh Azure Dev Env in local env"
119+
120+
1. Run `azd env refresh -e AITOUR` in terminal
121+
1. Select default subscription
122+
1. Select `francecentral` as Azure location
123+
1. See: `SUCCESS: Environment refresh completed`
124+
1. See: `.azure/AITOUR/.env` created with values ✅
125+
126+
??? note "Step 4: Run post-provisioning hooks"
127+
128+
1. Run `azd hooks run postprovision` in terminal
129+
1. Run `bash infra/hooks/update-roles.sh` in terminal
130+
1. Run `bash infra/hooks/populate-data.sh` in terminal
131+
1. This will take a few minutes ....
132+
1. Builds and deploys container app ..
133+
1. Sets .env variables

docs/workshop/docs/self-paced.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Self-Guided Edition

docs/workshop/mkdocs.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
site_name: "Contoso Chat Workshop"
2+
theme:
3+
name: material
4+
5+
# Change Font: https://squidfunk.github.io/mkdocs-material/setup/changing-the-fonts/?h=fonts
6+
# Google Fonts Supported By Default: https://fonts.google.com/
7+
font:
8+
code: Roboto Mono #Monospaced
9+
text: Roboto #Regular
10+
logo: img/logo.svg
11+
palette:
12+
- scheme: default # Light Mode
13+
primary: blue # black
14+
accent: pink
15+
toggle:
16+
icon: material/brightness-2
17+
name: Switch to dark mode
18+
- scheme: slate # Dark Mode
19+
primary: amber # amber
20+
accent: cyan
21+
toggle:
22+
icon: material/brightness-7
23+
name: Switch to light mode
24+
25+
# features:
26+
# - navigation.tabs
27+
28+
markdown_extensions:
29+
- admonition
30+
- pymdownx.details
31+
- pymdownx.superfences
32+
- pymdownx.tasklist:
33+
custom_checkbox: true
34+
- attr_list
35+
- pymdownx.emoji:
36+
emoji_index: !!python/name:material.extensions.emoji.twemoji
37+
emoji_generator: !!python/name:material.extensions.emoji.to_svg

0 commit comments

Comments
 (0)