Skip to content

Sample jupyter notebooks on common AWS Bedrock usage scenarios

Notifications You must be signed in to change notification settings

snapsoft-io/bedrock-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Bedrock Samples

Installing the environment

Running the commands in the repo root:

python3.11 -m venv venv
. venv/bin/activate.fish
pip install notebook
pip install -U boto3
pip install black
pip install "black[jupyter]"
pip install polars

Running the notebooks

jupyter notebook

Setup

Change your-profile-here inside the notebooks for a valid AWS profile to use as authentication. As an alternative you can hardcode your credentials (not recommended)

Make sure you request access to the models you wish to test here:
https://us-east-1.console.aws.amazon.com/bedrock/home?region=us-east-1#/modelaccess