From the course: Generative AI and Large Language Models on AWS
Unlock this course with a free trial
Join today to access over 24,000 courses taught by industry experts.
Invoking Claude with Bedrock - Amazon Web Services (AWS) Tutorial
From the course: Generative AI and Large Language Models on AWS
Invoking Claude with Bedrock
- [Instructor] One of the advantages of Amazon Bedrock is the ability to toggle between lots of different foundation models with just a little bit of code. And if you see here, this is a Python example, let's go ahead and walk through it. First up I have boto3, which is the unified interface for the SDK in Python for AWS. And now here's a trick here that is important to point out, is that I'm using "us-west-2" because that's where this particular model lives. So bedrock can be rolled out in different regions depending on which models that you're looking at. And then what I do is just tweak this a little bit to take a look at listing the different foundation models. And so let's go ahead and first list the foundation models that are available. So I'll go ahead and say python and we'll say list_models, right? So this is pretty nice. It tells me that anthropic is available and, for example, 2.1, I could go ahead and use that. But what I want to do next here is actually invoke it. So…
Contents
-
-
Course introduction55s
-
Cloud service model for AI3m 47s
-
Cloud deployment model for AI3m 35s
-
(Locked)
Benefits of cloud computing3m 2s
-
(Locked)
AWS cloud adoption framework for AI2m 46s
-
(Locked)
Development environment for AI4m 18s
-
(Locked)
MLOps challenges and opportunities with Python and Rust8m 18s
-
(Locked)
Generative AI workflow with Rust5m 50s
-
(Locked)
Python for data science in the era of Rust and generative AI6m 7s
-
(Locked)
Emerging Rust LLMOps workflows3m 57s
-
(Locked)
AWS CodeCatalyst for Rust4m 55s
-
(Locked)
SageMaker Code editor3m 43s
-
(Locked)
Lightsail for research3m 28s
-
(Locked)
Serverless Bedrock diagram2m 28s
-
(Locked)
Bedrock knowledge agent with retrieval-augmented generation (RAG)2m 6s
-
(Locked)
Demo: AWS Bedrock list with Rust2m 50s
-
(Locked)
Diagram: Serverless Rust on AWS2m 21s
-
(Locked)
Diagram: Rust Axum Greedy Coin microservice3m 14s
-
(Locked)
Demo: Rust Axum Greedy Coin3m 40s
-
(Locked)
Demo: Rust Axum Docker4m 42s
-
(Locked)
Diagram: Prompt engineering3m 47s
-
(Locked)
Summarizing text with Claude5m 28s
-
(Locked)
AWS CodeWhisperer for Rust7m 47s
-
(Locked)
Installing and configuring CodeWhisperer2m 19s
-
(Locked)
Using CodeWhisperer CLI4m 28s
-
(Locked)
Building Bash functions5m 38s
-
(Locked)
Building a Bash CLI3m 13s
-
(Locked)
Key components of AWS Bedrock3m 11s
-
(Locked)
Getting started with the Bedrock SDK2m 57s
-
(Locked)
Cargo SDK for Rust Bedrock1m 25s
-
(Locked)
Bedrock Boto3: Listing models2m 3s
-
(Locked)
Rust: Listing Bedrock models1m 57s
-
(Locked)
Invoking Claude with Bedrock3m 31s
-