Generative A IBootcamp-Presentation echnologies and how they connect Using tools available to building key Generative AI use cases
micromemail
163 views
48 slides
Jul 02, 2024
Slide 1 of 48
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
About This Presentation
Generative AI Bootcamp
Size: 22.4 MB
Language: en
Added: Jul 02, 2024
Slides: 48 pages
Slide Content
Generative AI Bootcamp Leveling Up Your Generative AI in 3 hours or Less!
Learning Goals For Today’s Bootcamp Build A Foundation of Generative AI Knowledge Understanding new terms and technologies and how they connect Exploring Large Language Models Comparing Different Model Types Improving the Results of a Model Understand the tools available to build with Using tools available to building key Generative AI use cases Common Use Cases Prompt Engineering Foundations Advanced Prompt Engineering Build a Generative AI application Applying the concepts into an application build Deploying a model Integrating the model into an application Handling model responses
12 Lessons - Everything You Need to Know to Build Generative AI Applications Find the Repo Here: aka.ms / genai -beginners
Apply Here: https://azure.microsoft.com/products/ai-services/openai-service Request Access to Azure OpenAI Service
Who am I? Introduction to myself! /in/ koreypace / @ koreyspace / koreyspace
Who are you? Time to find out! https:// www.menti.com /alo59fd8wc6i
Generative AI Foundations Understanding the core terms and technologies
GPT-4 GPT-4-32k GPT-3.5-Turbo Text Embeddings Ada Davinci / Babbage Dalle3 OpenAI Models Open Source Models Llama 2 Falcon Dolly v2 Mistral Large Language Models (LLMs) Whisper
Understanding the Difference Criteria Open Source LLMs Proprietary LLMs Availability Publicly Available and can be used by anyone Owned by an organization, access limited. Customization Allowed to be inspected and customized for different use cases than original foundation model Limited customization – fine tuning available in certain cases Performance May not be as performant as proprietary models Often optimized for production use Cost Free to use – may require hosting resources May require a subscription or payment based on use Maintenance May not be maintained in long term Often maintained and updated by model owner
Understanding the Difference Model Types Embeddings Models Text Generation Models
Understanding the Difference Model Types Chat Completions Image Generation
Exploring the Models Azure AI Studio - https:// ai.azure.com
Exploring the Models Azure AI Studio
Exploring the Models Azure AI Studio
Comparing Models Azure AI Studio
Improving Results Img source: Four Ways that Enterprises Deploy LLMs | Fiddler AI Blog
Tools Available to Build with Generative AI What is out there and when to use it
Generative AI Applications Common Use Cases Text Image Search
Text Applications
LLMs sees prompt as a sequence of tokens.. Prompt Engineering How does a Prompt Work?
LLMs sees prompt as a sequence of tokens.. Prompt Engineering How does a Prompt Work? https:// platform.openai.com /tokenizer
Base LLMs will predict the next token Prompt Engineering How does a Prompt Work? https:// ai.azure.com /playground/gpt-35-turbo
Instruction-tuned LLM extends base behavior for task Prompt Engineering How does a Prompt Work? https:// ai.azure.com /playground/gpt-35-turbo
System Message Prompt Engineering How does a Prompt Work? Define the model’s profile, capabilities, and limitations for your scenario Define the model’s output format Provide example(s) to demonstrate the i ntended behavior of the model Provide additional behavioral guardrails
Prompt Engineering Building in Responsible AI with Metaprompting / System Message
Adding a Data Source Prompt Engineering Chat With Your Data
Providing Examples Prompt Engineering - Zero Shot Prompting - Few-Shot Prompting - Chain of Thought - Tree of Thought
Model Temperature Controlling Randomness Temperature 0 Repetitive / Deterministic Temperature .7 No Repetition / More Randomness
Break – 10 Mins
Search Applications
Understanding Embeddings How does a LLM find things? Embedding [1.76,0.33,] Vector Store / Database Some Data User Query Embeddings Model
Understanding Embeddings How does a LLM find things? Embedding [1.76,0.33,] Vector Store / Database YouTube Transcripts What is Azure ML? Embeddings Model
Image Generation Use Cases Image Generation Editing Images Creating Variations Only Available on DALLE-2 Open AI Model Accepts: Prompt - Description of Image Size of Image - # of Pixels N - # of images generated Temperature – Randomness of output Model Accepts: Image – Original Image Image Mask – Area for edits Prompt - Description of edits N - # of images generated Temperature – Randomness of output Model Accepts: Image – Original Image N - # of variations Size of Image – # of Pixels
Exploring Vector Databases
Build a Generative AI Application Let’s build something together!
Deploying a Model
Connecting to a Model – Sample Code
Connecting to a Model – Making a Request
Observing the Response
Integrating Responses – Function Calling User: ”I am a beginner with Azure AI” LLM Skill: Beginner Product: Azure Function find_course(skill, product) API Call /course/{product}/{skill } LLM I recommend AI-900
Integrating Responses – Function Calling
lead the AI transformation The opportunity is yours to
12 Lessons - Everything You Need to Know to Build Generative AI Applications Find the Repo Here: aka.ms / genai -beginners