Home icon
Prompt engineering techniques and best practices: Learn by doing with Anthropic’s Claude 3 on Amazon Bedrock

Machine Learning Blog



This article provides an in-depth guide on prompt engineering techniques and best practices when working with Anthropic's Claude 3 models on Amazon Bedrock. It covers the importance of crafting effective prompts, introduces the Claude 3 model family, and offers a detailed breakdown of the components that make up a prompt.

Specifically, the article covers:

  • Prompt engineering and its significance in generating desired outputs from large language models (LLMs)
  • An overview of the Claude 3 model family (Haiku, Sonnet, and Opus) and their capabilities
  • The anatomy of a prompt and the recommended order of its components
  • Best practices for text-only prompts, such as using XML tags, providing examples, defining personas, and allowing the model to "think"
  • Best practices for prompts involving images, including image placement, sizing, and visual prompts
  • Detailed examples demonstrating prompt engineering techniques for information extraction and retrieval-augmented generation tasks
  • Conclusion summarizing the key points and encouraging readers to try the techniques on Amazon Bedrock


Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.