-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 15 / Model Selection complete
- Loading branch information
Showing
20 changed files
with
414 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,32 @@ | ||
# 1.1 Learning Objectives | ||
# 1.1 Learning Roadmap | ||
|
||
!!! info "This workshop focuses on providing developers with an end-to-end workflow using the Azure AI Foundry Portal for development. It is assembled using a diverse set of resources from the official documentation." | ||
!!! info "TThis workshop teaches you the capabilities of the Azure AI Foundry Portal with a set of interactive labs that take you from catalog (model selection) to cloud (application deployment). The labs are derived from the documentation but assembled into an end-to-end narrative for an AI Engineer journey." | ||
|
||
This lab teaches you how to build a RAG-based copilot using the Azure AI Foundry **Portal** as the default developer environment. By completing this lab, you'll gain a complete understanding of the Azure AI Foundry Portal features and learn to do the following tasks: | ||
--- | ||
## 1. Core Objectives | ||
|
||
This workshop has two core objectives: | ||
|
||
- Develop familiarity with the layout and capabilities of the Azure AI Foundry Portal (web UI) | ||
- Learn how to build, evaluate, and deploy, a RAG-based generative AI app portal-first. | ||
|
||
In this context, _portal-first_ means that we prioritize using the Azure AI Foundry portal for the end-to-end developer workflow. By comprison, the [Hybrid](./../../1-Hybrid-Workshop/1-Overview/00.md) approach uses the Azure AI Foundry Portal (low-code) for setup and the Azure AI Foundry SDK (code-first) for ideation and evaluation. | ||
|
||
--- | ||
|
||
## 2. Learning Journey | ||
|
||
By completing the labs in this workshop, you will learn to do the following: | ||
|
||
1. **Model Selection** - use the Azure AI model catalog to discover and compare models. | ||
1. **Project Setup** - create an Azure AI hub & project with models and connected resources. | ||
1. **Ideation** - go from initial prompt to functional prototype using model (with & without data). | ||
1. **Evaluation** - learn about built-in and custom evaluators, run an evaluation flow & view results. | ||
1. **Observability** - learn about tracing and app insights, view run traces in the portal. | ||
1. **Deployment** - go from prototype to production by deploying an app and using the endpoint. | ||
|
||
1. **SETUP your Azure AI Foundry Project** | ||
- create a new Azure AI project | ||
- customize it by creating a new Azure AI hub resource | ||
- customize it by adding an Azure AI Search resource | ||
- customize it by adding an Application Insights resource | ||
1. **SELECT models from Azure AI model catalog** | ||
1. **ADD DATA to your application using the RAG pattern** | ||
1. **EVALUATE your application using built-in evaluators** | ||
1. **DEPLOY your application from the portal** | ||
Along the way, we'll also understand how to orchestrate complex workflows in the portal using the currently-provided tooling (prompt flow) and a retrieval-augmented generation pattern (RAG) to improve responses by grounding them in your data. | ||
|
||
--- | ||
|
||
??? info "BONUS → Once you've completed this exercise, try the [Hybrid Workshop](./../../1-Hybrid-Workshop/1-Overview/00.md) to get your first experience with the Azure AI Foundry SDK for a code-first development workflow." | ||
??? quote "OPTIONAL → Once you've completed this exercise, try the [Hybrid Workshop](./../../1-Hybrid-Workshop/1-Overview/00.md) to get your first experience with the Azure AI Foundry SDK for a code-first development workflow in Python." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,54 @@ | ||
# 1.1 Application Scenario | ||
# 1.2 Application Lifecycle | ||
|
||
To simplify our walkthrough, we'll use the same Application Scenario and Application Data resources defined in the [Hybrid Workshop](./../../1-Hybrid-Workshop/1-Overview/00.md) path. | ||
## 1. Generative AI Operations | ||
|
||
- See: [Contoso Outdoor](./../../1-Hybrid-Workshop/1-Overview/01.md#2-contoso-outdoor-chat-ui) to understand the enterprise retail application scenario. | ||
- See: [Application Data](./../../1-Hybrid-Workshop/1-Overview/02.md) to understand customer, product & manual data formats. | ||
When we think about the AI Engineer's journey from prompt to production, we also need to understand [the paradigm shifts in Generative AI Operations](https://techcommunity.microsoft.com/blog/aiplatformblog/the-future-of-ai-the-paradigm-shifts-in-generative-ai-operations/4254216) based on the following challenges faced by customers: | ||
|
||
- **Complex Model Landscape** - how can I select the right model for my use case? | ||
- **Data Quality & Quantity** - how can I discover or generate quality datasets for use? | ||
- **Operational Performance** - how can I balance tokens, cost & performance optimization? | ||
- **Security & Compliance** - how can I meet regulatory requirements & deliver trustworthy AI? | ||
|
||
The result is a paradigm shift from traditional MLOps to LLMOps - and now **GenAIOps** - with focus on a _comprehensive set of practives, tools, foundation models, and frameworks_ to intergrate people, processes and platforms. The Azure AI platform offers a robust suite of tools and services to support this end-to-end developer journey, as shown below. | ||
|
||
![GenAIOps toolchain](./../img/overview-genaiops-toolchains.png) | ||
|
||
Let's look at how we can go from prompt to production using a **Portal-first** approach where we prioritize usage of tools and processes in the browser-based UI for a low-code experience. | ||
|
||
--- | ||
|
||
![Contoso Chat](./../../1-Hybrid-Workshop/img/contoso-chat.png) | ||
## 2. E2E Development Worflow | ||
|
||
To put the labs in context, let's look at the end-to-end application lifecycle from an AI Engineer perspective. The process can be broken into three stages: _ideation_ (prompt to prototype), _augmentation_ (prototype to production) and _operationalization_ (performance optimization). | ||
|
||
![GenAIOps toolchain](./../img/overview-genaiops-flow.png) | ||
|
||
These stages map loosely onto GenAI Ops toolchains as follows: | ||
|
||
1. **Ideation** = _Getting started_, _Customization_, _Prompt Management_ → prompt to prototype. | ||
- **Augmentation** = _Evaluation_ and _Orchestration_ → prototype to production | ||
- **Operationalization** - _Automation_ and _Monitoring_ → usage to optimization | ||
|
||
Assume that you are building the retail copilot chat AI (backend) that can be accessed from the Contoso Outdoor UI (frontend) shown below. Your chat AI needs to do the following: | ||
In the **Hybrid** track we used the Azure AI Foundry portal for the initial setup but prioritized the SDK for development and production stages. In **this track** we'll instead look at each of the toolchains steps with a **Portal-first** approach. | ||
|
||
|
||
## 3. Retail RAG scenario | ||
|
||
While we can explore the development journey in abstract, it can help to have an application scenario to contextualize and frame the discussion. For convenience, let's repurpose the same application scenario used in the **Hybrid Track** (summarized below). | ||
|
||
!!! quote "Some labs (e.g., Model Selection) may be general-purpose and not reflect this specific scenario." | ||
|
||
_Assume that you are building the retail copilot chat AI (backend) that can be accessed from the Contoso Outdoor UI (frontend) shown below. Your chat AI needs to do the following:_ | ||
|
||
- Answer customer queries in natural language (= generative AI) | ||
- Give answers grounded in product data (= RAG design pattern) | ||
- Give answers that are **also** coherent, fluent & relevant (= evaluators) | ||
- Block customer requests that have harmful intent (= content safety) | ||
- Block customer requests that break the rules (= jailbreak protection) | ||
|
||
![Contoso Chat](./../../1-Hybrid-Workshop/img/contoso-chat.png) | ||
|
||
- See: [Contoso Outdoor](./../../1-Hybrid-Workshop/1-Overview/01.md#2-contoso-outdoor-chat-ui) to understand the enterprise retail application scenario. | ||
- See: [Application Data](./../../1-Hybrid-Workshop/1-Overview/02.md) to understand customer, product & manual data formats. | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.