SlidePub
Home
Categories
Login
Register
Home
General
Jeff Maruschek: How does RAG REALLY work?
Jeff Maruschek: How does RAG REALLY work?
awschicago
546 views
25 slides
Jun 26, 2024
Slide
1
of 25
Previous
Next
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
About This Presentation
AWS Community Day Midwest 2024
Jeff Maruschek
How does RAG REALLY work?
Size:
1.02 MB
Language:
en
Added:
Jun 26, 2024
Slides:
25 pages
Slide Content
Slide 1
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jeff Maruschek
Amazon Web Services
Solutions Architect –DoD –Air Force
Retrieval-Augmented Generation (RAG)
Overview and Interactive Demos
Slide 2
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2
Introduction
Slide 3
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 3
Introduction
Slide 4
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 4
djmooseon Mixcloud:
Slide 5
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is RAG?
What are Embeddings?
Amazon Bedrock ChatBotDemo
Amazon Bedrock Knowledge Bases Demo
Agenda
5
Slide 6
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 6
What book genre is The Three-Body Problem?
Slide 7
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 7
What instrument does Joshua Bell play?
Slide 8
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 8
What instrument does the musician Joshua Bell
play?
Slide 9
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 9
Who is Joshua Bell?
Slide 10
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 10
Slide 11
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 11
Slide 12
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
•Retrieval
▪Fetches the relevant content from the
external knowledge base or data sources
based on a user query
•Augmentation
▪Adding the retrieved relevant context to
the user prompt, which goes as an input to
the foundation model
•Generation
▪Response from the foundation model
based on the augmented prompt.
12
What is RAG?
Slide 13
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 13
Slide 14
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What are embeddings?
EMBEDDING
MODEL
0.027-0.011 -0.023…
0.025-0.009 -0.025…
New York
Paris
Vector EmbeddingsHuman Text
•Numerical representation of
text (vectors) that captures
semantics and relationships
between words.
•Embedding models capture
features and nuances of the
text.
•Rich embeddings can be used
to compare text similarity.
•Multilingual Text Embeddings
can identify meaning in
different languages.
-0.0110.021 0.013…Animal
-0.0090.019 0.015…Horse
Slide 15
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 16
Slide 16
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 17
Slide 17
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 18
Slide 18
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 19
Slide 19
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 20
Amazon Bedrock ChatBotDemo
https://github.com/aws-samples/bedrock-claude-chat
Slide 20
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 21
Documents Used
Slide 21
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 22
Architecture
Slide 22
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
However, when it comes to implementing
RAG, there are challenges…
Creating vector
embeddings for large
volumes of data
Orchestration
Managing
multiple data
sources
Scaling retrieval
mechanism
Coding effort
Incremental
updates to vector
store
Slide 23
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 24
Amazon Bedrock Knowledge Bases Demo
https://aws.amazon.com/bedrock/knowledge-bases/
Slide 24
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. 25
Documents Used
Slide 25
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!
Jeff Maruschek
Solutions Architect –DoD –Air Force
[email protected]
26
Tags
awscommunity
aws community day
Categories
General
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
546
Slides
25
Age
527 days
Related Slideshows
22
Pray For The Peace Of Jerusalem and You Will Prosper
RodolfoMoralesMarcuc
33 views
26
Don_t_Waste_Your_Life_God.....powerpoint
chalobrido8
36 views
31
VILLASUR_FACTORS_TO_CONSIDER_IN_PLATING_SALAD_10-13.pdf
JaiJai148317
33 views
14
Fertility awareness methods for women in the society
Isaiah47
30 views
35
Chapter 5 Arithmetic Functions Computer Organisation and Architecture
RitikSharma297999
29 views
5
syakira bhasa inggris (1) (1).pptx.......
ourcommunity56
30 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-25)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better