Retrieval-Augmented Generation (RAG) with Amazon Bedrock

Retrieval-Augmented Generation (RAG) with Amazon Bedrock
Retrieval-Augmented Generation (RAG) with Amazon Bedrock

CLOUD LABS



Retrieval-Augmented Generation (RAG) with Amazon Bedrock

In this Cloud Lab, you’ll learn to configure an Aurora RDS cluster as a vector store. You’ll also set up an Amazon Bedrock Knowledge Base to enable advanced data retrieval techniques for RAG.

8 Tasks

beginner

1hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

Hands-on experience connecting to an RDS cluster and configuring it for vector data storage
An understanding of how to set up an RDS vector store database using PostgreSQL
The ability to create and manage an Amazon Bedrock Knowledge Base
The ability to synchronize a data source and test data retrieval from a Bedrock Knowledge Base
Understanding of retrieval-augmented generation (RAG) to enhance query responses using generative AI

Technologies
Bedrock
S3 logoS3
Secrets Manager
RDS
IAM logoIAM
Cloud Lab Overview

Amazon Bedrock offers a powerful platform for developers to leverage generative AI with structured data storage. It provides access to pretrained models and enables the deployment and customization of pretrained foundational modes that utilize large-scale datasets. This Cloud Lab introduces Amazon Bedrock and Knowledge Base, essential for developers looking to enhance applications with advanced analytics and AI capabilities.

You will set up an Amazon Bedrock Knowledge Base, using Amazon S3 for data storage and Amazon Aurora PostgreSQL for the vector store. AWS Secrets Manager will securely store and manage the database credentials and a user’s secret, ensuring enhanced security and easy access. You’ll configure a service role, enable specific models for text generation and embeddings, and integrate these models to transform unstructured data into a queryable format. Next, you’ll create the knowledge base, configure data sources, select models, and test the knowledge base using different prompts.

By the end of this Cloud Lab, you will understand how to implement the Amazon Bedrock Knowledge Base using Amazon Aurora as a vector store. This will significantly improve your ability to develop scalable, AI-driven applications, potentially advancing your career in cloud-based machine learning technologies.

The following is the high-level architecture diagram of the infrastructure you’ll create in this Cloud Lab:

A RAG workflow using Amazon Bedrock and Aurora PostgreSQL
A RAG workflow using Amazon Bedrock and Aurora PostgreSQL
Cloud Lab Tasks
1.Introduction
Getting Started
2.Set Up AWS Storage and Database
Create an S3 Bucket
Create an RDS Cluster
3.Bedrock Knowledge Base
Set Up the RDS for the Knowledge Base
Create the Amazon Bedrock Knowledge Base
Test the Knowledge Base
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Relevant Course

Use the following content to review prerequisites or explore specific concepts in detail.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image