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

Connected

Exercise

Implementing chain of thought prompting

StellarStack is about to launch its flagship cloud platform. Marketing wants an email that explains why developers should migrate. To guide Claude’s reasoning, you’ll add a “think-step” checklist to the prompt.

The json library has been imported.

Instructions

100 XP
  • Outline three steps the model should take in preparing the response, using a numbered list (1., 2., 3.).
  • Using the steps list for the chain of thought, populate the "text" field of text_data by appending them after "\nSteps: ".