1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Amazon Bedrock

Connected

Exercise

Using the correct model in Bedrock

You work for BeanBliss, a specialty-coffee company that helps independent cafés keep their menus fresh with locally roasted beans. As the team gears up to introduce AI-driven demand-planning tools, they’ve asked you to demonstrate how the Claude model in Amazon Bedrock could help forecasting customer demand more effectively.

The boto3 and json libraries have been pre-imported.

Instructions

100 XP
  • Initialize the Bedrock client for inference.
  • Invoke the model using the bedrock client.