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

Connected

Exercise

Adjusting creativity with temperature control

You work for RoboChef Labs, a startup that builds AI-powered cooking robots. The team is experimenting with Amazon Bedrock to generate promotional stories, user guides, and product-marketing copy.

To start with, they need short stories to promote their cooking-robot line. Use the temperature parameter to tune Claude’s creativity and generate different versions.

In this exercise, the boto3 and json libraries, and the bedrock client, have been pre-imported.

Instructions

100 XP
  • Generate two robot stories using a low temperature for the first output and a high temperature for the second output and observe how the outputs differ.