Getting Started

In this workshop you will use Visual Studio Code Server hosted on an EC2 instance. Follow these steps to set up your environment.

1. Install Dependencies

uv sync

2. Configure AWS CLI (us-west-2 region)

aws configure set region us-west-2
aws configure get region

3. Available Models

  • Claude 3.7 Sonnet: us.anthropic.claude-3-7-sonnet-20250219-v1:0
  • Titan Text Embeddings V2: amazon.titan-embed-text-v2:0

Lab 01

Lab 1: Amazon Bedrock Knowledge Base Setup

Create an Amazon Bedrock Knowledge Base that serves as the intelligent information source for your mortgage assistant. This knowledge base enables agents to provide accurate, contextual responses to customer inquiries.

What You’ll Build

  • Document Storage — S3-backed document repository with versioning
  • Vector Search — OpenSearch Serverless for semantic similarity search
  • Embedding Generation — Amazon Titan embeddings for document chunks
  • Retrieval APIs — both retrieve and retrieve-and-generate capabilities

Notebook

01-bedrock-knowledge-base/01_create_knowledgebase.ipynb

Knowledge Base Contents

  • 15-Year vs 30-Year Mortgages — comparison and benefits analysis
  • Mortgage Refinancing — when and how to refinance
  • General Mortgage Concepts — terms, processes, and guidelines