hands-on lab

Using Aurora RDS With an Amazon Bedrock Knowledge Base

Difficulty: Beginner
Duration: Up to 1 hour and 30 minutes
Students: 25
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

Amazon Bedrock allows you to use of generative AI models in your workflows and applications in a variety of fully-managed and partially-managed ways. Knowledge Bases are a key feature of Amazon Bedrock, enabling you to create fully automated Retrieval Augmented Generative (RAG) models solutions using your own data. Knowledge Bases support using your own custom vector store, which can have many benefits including, cost, privacy, and performance optimizations.

Learning how to configure a vector store for use with Amazon Bedrock will benefit anyone looking to implement a RAG solution using their own data in the public AWS cloud.

In this hands-on lab, you will configure an Amazon RDS PostgreSQL cluster as a vector store for use with an Amazon Bedrock Knowledge Base, and you will create an Amazon Bedrock Knowledge Base that uses it.

Please note: This lab creates an Amazon RDS PostgreSQL cluster which can take up to ten minutes to provision. Please ensure you have enough time available before starting the lab.

Learning objectives

Upon completion of this beginner-level lab, you will be able to:

  • Create vector store database objects in an Aurora PostgreSQL cluster
  • Update a secret in AWS Secrets Manager to use credentials that you created
  • Create an Amazon Bedrock Knowledge Base that uses the vector store you configured

Intended audience

  • Anyone interested in using generative AI in the AWS cloud
  • Cloud Architects
  • Data Engineers
  • DevOps Engineers
  • Machine Learning Engineers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • Amazon Bedrock
  • Aurora PostgreSQL
  • AWS Secrets Manager

The following content can be used to fulfill the prerequisites:

Environment before

Environment after

Covered topics

Lab steps

Logging In to the Amazon Web Services Console
Connecting to an RDS Cluster
Creating an RDS Vector Store Database
Creating an Amazon Bedrock Knowledge Base
Synchronizing a Knowledge Base Data Source