Skip to content

Commit 7fa5612

Browse files
authored
Merge pull request #251 from nitya/main
refactor / updated model references
2 parents 69200cb + 3f560c6 commit 7fa5612

40 files changed

+264
-334
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ products:
1212
- azure-cognitive-search
1313
- azure-cosmos-db
1414
urlFragment: contoso-chat
15-
name: Contoso Chat - Retail RAG Copilot with Azure AI Studio and Prompty (Python Implementation)
15+
name: Contoso Chat - Retail RAG Copilot with Azure AI Foundry and Prompty (Python Implementation)
1616
description: Build, evaluate, and deploy, a RAG-based retail copilot that responds to customer questions with responses grounded in the retailer's product and customer data.
1717
---
1818
<!-- YAML front-matter schema: https://review.learn.microsoft.com/en-us/help/contribute/samples/process/onboarding?branch=main#supported-metadata-fields-for-readmemd -->
1919

2020

21-
# Contoso Chat: Retail RAG Copilot with Azure AI Studio and Prompty
21+
# Contoso Chat: Retail RAG Copilot with Azure AI Foundry and Prompty
2222

2323
[![Open in GitHub Codespaces](https://img.shields.io/static/v1?style=for-the-badge&label=GitHub+Codespaces&message=Open&color=brightgreen&logo=github)](https://github.com/codespaces/new?hide_repo_select=true&machine=basicLinux32gb&repo=725257907&ref=main&devcontainer_path=.devcontainer%2Fdevcontainer.json&geo=UsEast)
2424
[![Open in Dev Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/azure-samples/contoso-chat)
@@ -102,9 +102,9 @@ To deploy and explore the sample, you will need:
102102
1. An active GitHub account - [Signup for a free account here](https://github.com/signup)
103103
1. Access to Azure OpenAI Services - [Learn about Limited Access here](https://learn.microsoft.com/legal/cognitive-services/openai/limited-access)
104104
1. Access to Azure AI Search - [With Semantic Ranker](https://learn.microsoft.com/en-us/azure/search/semantic-search-overview) (premium feature)
105-
1. Available Quota for: `text-embedding-ada-002`, `gpt-35-turbo`. and `gpt-4`
105+
1. Available Quota for: `text-embedding-ada-002`, `gpt-4o-mini`. and `gpt-4`
106106

107-
We recommend deployments to `swedencentral` or `francecentral` as regions that can support all these models. In addition to the above, you will also need the ability to:
107+
We recommend deployments to `eastus2` or `francecentral` as regions that can support all these models. In addition to the above, you will also need the ability to:
108108
- provision Azure Monitor (free tier)
109109
- provision Azure Container Apps (free tier)
110110
- provision Azure CosmosDB for noSQL (free tier)
@@ -214,7 +214,7 @@ We can now proceed with next steps - click to expand for detailed instructions.
214214
<details>
215215
<summary> 3️⃣ | Validate the Infrastructure </summary>
216216

217-
1. Visit the [Azure Portal](https://portal.azure.con) - look for the `rg-ENVNAME` resource group created above
217+
1. Visit the [Azure Portal](https://portal.azure.com) - look for the `rg-ENVNAME` resource group created above
218218
1. Click the `Deployments` link in the **Essentials** section - wait till all are completed.
219219
1. Return to `Overview` page - you should see: **35** deployments, **15** resources
220220
1. Click on the `Azure CosmosDB resource` in the list
@@ -226,7 +226,7 @@ We can now proceed with next steps - click to expand for detailed instructions.
226226
1. Click on the `Azure Container Apps` resource in the list
227227
- Visit the resource detail page - click `Application Url`
228228
- Verify that you see a hosted endpoint with a `Hello World` message on page
229-
1. Next, visit the [Azure AI Studio](https://ai.azure.com) portal
229+
1. Next, visit the [Azure AI Foundry](https://ai.azure.com) portal
230230
- Sign in - you should be auto-logged in with existing Azure credential
231231
- Click on `All Resources` - you should see an `AIServices` and `Hub` resources
232232
- Click the hub resource - you should see an `AI Project` resource listed
@@ -316,7 +316,7 @@ This template currently uses the following models: `gpt35-turbo`, `gpt-4` and `t
316316

317317
Pricing for services may vary by region and usage and exact costs are hard to determine. You can _estimate_ the cost of this project's architecture with [Azure's pricing calculator](https://azure.microsoft.com/pricing/calculator/) with these services:
318318

319-
- Azure OpenAI - Standard tier, GPT-35-turbo and Ada models. [See Pricing](https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/)
319+
- Azure OpenAI - Standard tier, gpt-4, gpt-4o-mini and text-embedding-ada-002 models. [See Pricing](https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/)
320320
- Azure AI Search - Basic tier, Semantic Ranker enabled. [See Pricing](https://azure.microsoft.com/en-us/pricing/details/search/)
321321
- Azure Cosmos DB for NoSQL - Serverless, Free Tier. [See Pricing](https://azure.microsoft.com/en-us/pricing/details/cosmos-db/autoscale-provisioned/#pricing)
322322
- Azure Monitor - Serverless, Free Tier. [See Pricing](https://azure.microsoft.com/en-us/pricing/details/monitor/)
@@ -350,7 +350,7 @@ Have issues or questions about the workshop? Submit [a new issue](https://github
350350
## Resources
351351

352352
1. [Prompty Documentation](https://prompty.ai)
353-
1. [Azure AI Studio Documentation](https://aka.ms/aistudio)
353+
1. [Azure AI Foundry Documentation](https://aka.ms/aistudio)
354354
1. [Develop AI Apps using Azure AI Services](https://aka.ms/ai-apps-docs)
355355
1. [Azure AI Templates with Azure Developer CLI](https://aka.ms/ai-studio/azd-templates)
356356

data/manual_info/contoso-manuals-index.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"\n",
5656
"client = AIClient.from_config(credential = DefaultAzureCredential())\n",
5757
"\n",
58-
"# Use the same index name when registering the index in AI Studio\n",
58+
"# Use the same index name when registering the index in AI Foundry\n",
5959
"index = build_index(\n",
6060
" output_index_name=index_name,\n",
6161
" vector_store=\"azure_cognitive_search\",\n",

docs/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ products:
1212
- azure-cognitive-search
1313
- azure-cosmos-db
1414
urlFragment: contoso-chat
15-
name: Contoso Chat - Retail RAG Copilot with Azure AI Studio and Prompty (Python Implementation)
15+
name: Contoso Chat - Retail RAG Copilot with Azure AI Foundry and Prompty (Python Implementation)
1616
description: Build, evaluate, and deploy, a RAG-based retail copilot that responds to customer questions with responses grounded in the retailer's product and customer data.
1717
---
1818
<!-- YAML front-matter schema: https://review.learn.microsoft.com/en-us/help/contribute/samples/process/onboarding?branch=main#supported-metadata-fields-for-readmemd -->
1919

2020
> [!WARNING]
21-
> **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.
21+
> **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 Foundry 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.
2222
>
2323
> **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/).**
2424
2525

26-
# Contoso Chat: Retail RAG Copilot with Azure AI Studio and Prompty
26+
# Contoso Chat: Retail RAG Copilot with Azure AI Foundry and Prompty
2727

2828
[![Open in GitHub Codespaces](https://img.shields.io/static/v1?style=for-the-badge&label=GitHub+Codespaces&message=Open&color=brightgreen&logo=github)](https://github.com/codespaces/new?hide_repo_select=true&machine=basicLinux32gb&repo=725257907&ref=main&devcontainer_path=.devcontainer%2Fdevcontainer.json&geo=UsEast)
2929
[![Open in Dev Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/azure-samples/contoso-chat)
@@ -108,7 +108,7 @@ To deploy and explore the sample, you will need:
108108
1. An active GitHub account - [Signup for a free account here](https://github.com/signup)
109109
1. Access to Azure OpenAI Services - [Learn about Limited Access here](https://learn.microsoft.com/legal/cognitive-services/openai/limited-access)
110110
1. Access to Azure AI Search - [With Semantic Ranker](https://learn.microsoft.com/en-us/azure/search/semantic-search-overview) (premiun feature)
111-
1. Available Quota for: `text-embedding-ada-002`, `gpt-35-turbo`. and `gpt-4`
111+
1. Available Quota for: `text-embedding-ada-002`, `gpt-4`. and `gpt-4o-mini`
112112

113113
We recommend deployments to `swedencentral` or `francecentral` as regions that can support all these models. In addition to the above, you will also need the ability to:
114114
- provision Azure Monitor (free tier)
@@ -220,7 +220,7 @@ We can now proceed with next steps - click to expand for detailed instructions.
220220
<details>
221221
<summary> 3️⃣ | Validate the Infrastructure </summary>
222222

223-
1. Visit the [Azure Portal](https://portal.azure.con) - look for the `rg-ENVNAME` resource group created above
223+
1. Visit the [Azure Portal](https://portal.azure.com) - look for the `rg-ENVNAME` resource group created above
224224
1. Click the `Deployments` link in the **Essentials** section - wait till all are completed.
225225
1. Return to `Overview` page - you should see: **35** deployments, **15** resources
226226
1. Click on the `Azure CosmosDB resource` in the list
@@ -232,7 +232,7 @@ We can now proceed with next steps - click to expand for detailed instructions.
232232
1. Click on the `Azure Container Apps` resource in the list
233233
- Visit the resource detail page - click `Application Url`
234234
- Verify that you see a hosted endpoint with a `Hello World` message on page
235-
1. Next, visit the [Azure AI Studio](https://ai.azure.com) portal
235+
1. Next, visit the [Azure AI Foundry](https://ai.azure.com) portal
236236
- Sign in - you should be auto-logged in with existing Azure credential
237237
- Click on `All Resources` - you should see an `AIServices` and `Hub` resources
238238
- Click the hub resource - you should see an `AI Project` resource listed
@@ -322,7 +322,7 @@ This template currently uses the following models: `gpt35-turbo`, `gpt-4` and `t
322322

323323
Pricing for services may vary by region and usage and exact costs are hard to determine. You can _estimate_ the cost of this project's architecture with [Azure's pricing calculator](https://azure.microsoft.com/pricing/calculator/) with these services:
324324

325-
- Azure OpenAI - Standard tier, GPT-35-turbo and Ada models. [See Pricing](https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/)
325+
- Azure OpenAI - Global Standard tier, gpt-4, gpt-4o-mini [See Pricing](https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/)
326326
- Azure AI Search - Basic tier, Semantic Ranker enabled. [See Pricing](https://azure.microsoft.com/en-us/pricing/details/search/)
327327
- Azure Cosmos DB for NoSQL - Serverless, Free Tier. [See Pricing](https://azure.microsoft.com/en-us/pricing/details/cosmos-db/autoscale-provisioned/#pricing)
328328
- Azure Monitor - Serverless, Free Tier. [See Pricing](https://azure.microsoft.com/en-us/pricing/details/monitor/)
@@ -358,7 +358,7 @@ Have issues or questions about the workshop? Submit [a new issue](https://github
358358
## Resources
359359

360360
1. [Prompty Documentation](https://prompty.ai)
361-
1. [Azure AI Studio Documentation](https://aka.ms/aistudio)
361+
1. [Azure AI Foundry Documentation](https://aka.ms/aistudio)
362362
1. [Azure AI Templates with Azure Developer CLI](https://aka.ms/ai-studio/azd-templates)
363363

364364

docs/workshop/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## About Contoso Chat
99

10-
The Contoso Chat repository provides a reference sample for an Azure AI Architecture and workflow to build a custom RAG-based copilot **code-first** on Azure AI Studio. The sample has been actively used to skill up developers in core Azure AI tools, services, and practices, since its creation in 2023.
10+
The Contoso Chat repository provides a reference sample for an Azure AI Architecture and workflow to build a custom RAG-based copilot **code-first** on Azure AI Foundry. The sample has been actively used to skill up developers in core Azure AI tools, services, and practices, since its creation in 2023.
1111

1212
**The current version (v3) of the sample follows this architecture**.
1313

docs/workshop/docs/01-Introduction/02-RAG-Pattern.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ Let's learn how this design pattern works in the context of our Contoso Chat app
4040

4141
!!! info "The chat model uses prompt to generate a grounded response to user question."
4242

43-
This enhanced prompt is now sent to the Large Language "chat" model (e.g., Azure OpenAI `gpt-35-turbo` or `gpt-4o`) which sees the enhanced prompt (retrieved documents, customer profile data, chat history) as _grounding_ context for generating the final response, improving the quality (e.g., relevance, groundedness) of results returned from Contoso Chat.
43+
This enhanced prompt is now sent to the Large Language "chat" model (e.g., Azure OpenAI `gpt-4` or `gpt-4o-mini`) which sees the enhanced prompt (retrieved documents, customer profile data, chat history) as _grounding_ context for generating the final response, improving the quality (e.g., relevance, groundedness) of results returned from Contoso Chat.

docs/workshop/docs/01-Introduction/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
The workshop teaches you to **build, evaluate, and deploy a retail copilot** code-first on Azure AI. By the end of the workshop, you will learn to:
66

77
- Use the [Retrieval Augmented Generation (RAG) pattern](https://learn.microsoft.com/azure/ai-studio/concepts/retrieval-augmented-generation) <br/> (to ground responses in your own data).
8-
- Use [Prompty](https://prompty.ai) with [Azure AI Studio](https://ai.azure.com) for code-first development <br/> (to take your copilot from prompt to production)
8+
- Use [Prompty](https://prompty.ai) with [Azure AI Foundry](https://ai.azure.com) for code-first development <br/> (to take your copilot from prompt to production)
99
- Use [Azure Container Apps](https://aka.ms/azcontainerapps) <br/> for deployment (to get a hosted API endpoint for real-world use).
1010
- Use [Dev Containers](https://containers.dev) with GitHub Codespaces <br/> (to get a consistent, reproducible environment across teams)
1111
- Use [Azure Developer CLI](https://aka.ms/azd) with AI Application Templates <br/> (to provision & deploy apps consistently across teams)
1212

1313
## Learning Resources
1414

1515
1. **Prompty** | [Documentation](https://prompty.ai) · [Specification](https://github.com/microsoft/prompty/blob/main/Prompty.yaml) · [Tooling](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.prompty) · [SDK](https://pypi.org/project/prompty/)
16-
1. **Azure AI Studio** | [Documentation](https://learn.microsoft.com/en-us/azure/ai-studio/) · [Architecture](https://learn.microsoft.com/azure/ai-studio/concepts/architecture) · [SDKs](https://learn.microsoft.com/azure/ai-studio/how-to/develop/sdk-overview) · [Evaluation](https://learn.microsoft.com/azure/ai-studio/how-to/evaluate-generative-ai-app)
16+
1. **Azure AI Foundry** | [Documentation](https://learn.microsoft.com/en-us/azure/ai-studio/) · [Architecture](https://learn.microsoft.com/azure/ai-studio/concepts/architecture) · [SDKs](https://learn.microsoft.com/azure/ai-studio/how-to/develop/sdk-overview) · [Evaluation](https://learn.microsoft.com/azure/ai-studio/how-to/evaluate-generative-ai-app)
1717
1. **Azure AI Search** | [Documentation](https://learn.microsoft.com/azure/search/) · [Semantic Ranking](https://learn.microsoft.com/azure/search/semantic-search-overview)
1818
1. **Azure Container Apps** | [Azure Container Apps](https://learn.microsoft.com/azure/container-apps/) · [Deploy from code](https://learn.microsoft.com/en-us/azure/container-apps/quickstart-repo-to-cloud?tabs=bash%2Ccsharp&pivots=with-dockerfile)
1919
1. **Responsible AI** | [Overview](https://www.microsoft.com/ai/responsible-ai) · [With AI Services](https://learn.microsoft.com/en-us/azure/ai-services/responsible-use-of-ai-overview?context=%2Fazure%2Fai-studio%2Fcontext%2Fcontext) · [Azure AI Content Safety](https://learn.microsoft.com/en-us/azure/ai-services/content-safety/)

docs/workshop/docs/02-Setup/0-PreRequisites/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ You **must** have a GitHub account to get started. Take a minute to [sign up for
3838
On completing this workshop, you will have:
3939
4040
1. A personal copy of the [Contoso Chat](https://aka.ms/aitour/contoso-chat) repository in your GitHub profile. This contains all the materials you need to reproduce the workshop on your own later (e.g., as a _Self-Guided_ session).
41-
1. Hands-on understanding of the [Azure AI Studio](https://ai.azure.com) platform and relevant developer tools (e.g., Azure Developer CLI, Prompty, Fast API) to streamline end-to-end development workflows for your own AI apps.
41+
1. Hands-on understanding of the [Azure AI Foundry](https://ai.azure.com) platform and relevant developer tools (e.g., Azure Developer CLI, Prompty, Fast API) to streamline end-to-end development workflows for your own AI apps.
4242
4343
=== "Microsoft AI Tour"
4444

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ Here's a reminder of the Azure Application Architecture - let's check our provis
4040
4141
---
4242
43-
### 3.2 Azure AI Studio
43+
### 3.2 Azure AI Foundry
4444
45-
!!! tip "The Azure AI Studio portal lets us view and manage the Azure AI project for our app."
45+
!!! tip "The Azure AI Foundry portal lets us view and manage the Azure AI project for our app."
4646
4747
1. Open a new browser tab and [navigate to this page](https://ai.azure.com?feature.customportal=false#home):
4848
``` title=""
@@ -62,7 +62,7 @@ Here's a reminder of the Azure Application Architecture - let's check our provis
6262
- Click "Models + endpoints" in the left pane.
6363
- **Check:** You should see deployed models for this project.
6464
65-
!!! 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`."
65+
!!! info "For this application, we will use the chat completion models `gpt-4` and `gpt-4o-mini`, and the embedding model `text-embedding-ada-002`."
6666
6767
6868
---

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To execute the Prompty asset, we need specify the languge model to use for gener
2323
azure_deployment: ${env:AZURE_OPENAI_CHAT_DEPLOYMENT}
2424
```
2525
26-
!!! info "Prompty will use the AZURE_OPENAI_CHAT_DEPLOYMENT variable from the .env file we created earlier to find the OpenAI endpoint we pre-deployed. For now, that env specifies _gpt-35-turbo_ as the model."
26+
!!! info "Prompty will use the AZURE_OPENAI_CHAT_DEPLOYMENT variable from the .env file we created earlier to find the OpenAI endpoint we pre-deployed. For now, that env specifies _gpt-4o-mini_ as the model."
2727
2828
2929
## 2. Edit Basic information

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. Azure AI Studio tab - showing your AI project page.
12+
1. Azure AI Foundry 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/in-person-starts/MSIgnite-2024-Skillable.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ DO NOT DELETE OR EDIT THIS FILE UNLESS YOU ARE AN INSTRUCTOR FOR LAB 401
33
This file is dynamically retrieved and used by the Skillable VM as the Instruction Guide
44
-->
55

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

88
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

0 commit comments

Comments
 (0)