Original (2)
Original (2)
FOR USE ONLY AS PART OF MICROSOFT VIRTUAL TRAINING DAYS PROGRAM. THESE MATERIALS ARE NOT AUTHORIZED
FOR DISTRIBUTION, REPRODUCTION OR OTHER USE BY NON-MICROSOFT PARTIES.
AI hub resource
AI projects
Create and manage connections
Deploy and test
Secrets associated with connections are securely persisted in the corresponding Azure Key Vault,
adhering to robust security and compliance standards.
Explore Azure AI Studio
Demo Create Azure AI Hub & Project
Create Connections to External Resources
Plan a responsible generative AI solution
The Microsoft guidance for responsible generative AI is designed to be practical and actionable. It
defines a four stage process to develop and implement a plan for responsible AI when using
generative models. The four stages in the process are:
Measure the presence of these harms in the outputs generated by your solution.
Mitigate the harms at multiple layers in your solution to minimize their presence and impact, and ensure
transparent communication about potential risks to users.
Operate the solution responsibly by defining and following a deployment and operational readiness plan.
Operate a responsible generative AI solution
• Complete prerelease reviews
• Release and operate the solution
• Utilize Azure AI Content Safety:
Feature Functionality
Prompt shields Scans for the risk of user input attacks on language models
Groundedness detection Detects if text responses are grounded in a user's source content
Custom categories Define custom categories for any new or emerging patterns
Demo Responsible AI Toolbox
Manage access for collaboration
Use the Azure built-in roles
With role-based access control (RBAC) you can assign roles to users to give them access on the
AI hub or project level.
• Use the Azure built-in roles, available by default:
Deploy the model No, you aren't billed for Yes, you're billed minimally per the Yes, you're billed for the
deploying an Azure OpenAI infrastructure of the endpoint. infrastructure hosting the
model to your project. model per minute.
Call the model Yes, you're billed based on Yes, you're billed based on your None.
endpoint your token usage. token usage.
Chat with model in playground
Experiment and improve your
model performance quickly and
easily by chatting with your
model in the chat playground.
Explore, deploy, and chat with language models
Demo
in the Azure AI Studio
Compare benchmarks across models
Model benchmarks are used to assess the quality of language models before deploying and
integrating them.
Ungrounded Grounded
A RAG pattern is an architectural design for RAG by including retrieved relevant data in a prompt:
You can fine-tune a model by selecting a base model and training it on your own training data.
Once fine-tuning is complete, you can deploy your fine-tuned model to an endpoint.
Prepare your data to fine-tune a chat completion model
The data must be formatted as a JSON Lines (JSONL) document.
For fine-tuning on a chat completion task your data should include:
System message:
“You are an Xbox customer support agent whose primary goal is to help users with issues they are
experiencing with their Xbox devices. You are friendly and concise. You only provide factual
answers to queries, and do not provide answers that are not related to Xbox.”
User message:
“Is Xbox better than PlayStation?”
Assistant answer:
“I apologize, but I cannot provide personal opinions. My primary job is to assist you with any
issues related to your Xbox device. Do you have any Xbox-related issues that need addressing?”
Demo Fine-Tuning a Model
Summary
• Initialization:
Define the use case and design the solution.
• Experimentation: Experimentation Evaluation
Develop a flow and test with a small dataset. & refinement
• Evaluation and refinement:
Assess the flow with a larger dataset.
• Production:
Deploy and monitor the flow and application.
Production
Understand a flow and its components
inputs
Inputs: Represent data passed
into the flow. Can be different
data types like strings, integers, or Prompt tool: Prepares prompts
boolean. Prompt as strings for complex scenarios
Completed or integration with other tools.
Variant 1
You are a skilled lawyer…
Variant 1
Variant 2
GPT-4, temperature = 0 You’re an expert
on the Constitution…
Variant 2
Variant N
GPT-4, temperature = 0.5 You won several lawsuits…
Variant N
GPT-3.5, temperature = 0
Summary
The Kids
children kids happily
played ran
joyfully park joyfully around
in the
the playground
park
happily
Demo • Develop a custom copilot with Prompt Flow
Add your data in a prompt flow
To ground your language model’s responses, add your
own data source to retrieve relevant context:
Accuracy: Coherence:
Compares model generated text with correct answer Measures whether the model output flows smoothly,
according to the dataset. Result is one if generated reads naturally, and resembles human-like language
text matches the answer exactly, and zero otherwise.
• Azure AI Studio
• Azure AI SDKs
• Jupyter Notebooks
• Prompt Flow
• VS Code, Visual Studio, GitHub CodeSpaces
• Semantic Kernel and LangChain
• Azure OpenAI Service
• Azure AI Large Language Models
• Azure Cognitive Search and Vector Search
Custom Copilot Code-First Development
Demo
Summary