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
Slide 1 of 48
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48

About This Presentation

Generative AI Bootcamp


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

Understanding Chunking Fixed-Size Chunking Context Aware Chunking

Exploring Vector Databases

Image Generation Applications

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
Tags