Claude With Amazon Bedrock
← All lessons
Lesson 22Claude With Amazon Bedrock

Being specific

Summary audio

Spoken summary — press play to read along: the line being spoken stays near the top.

Study notes

Prompt Engineering: The Concept of Specificity

  • Goal of Specificity: To direct the model toward a particular output by providing clear guidelines or steps, preventing infinite variations (e. g. , story length, character count).
  • Two Types of Guidelines: Prompts utilize two main methods of specificity:
  • Type A: Output Attributes (Qualities)
  • Focuses on what the final output should contain.
  • Used to control the length, structure, or specific characteristics of the response.
  • Example: "Keep the story under one thousand words. "
  • Type B: Process Steps (Actions)
  • Focuses on how the model should think or arrive at the answer.
  • Instruct the model to follow a sequence of actions to increase output quality.
  • Example: "First brainstorm three special talents, then pick the most interesting one. "
  • Best Practices:
  • Combining Techniques: Professional prompts often mix both Type A (attributes) and Type B (steps).
  • When to Use Type A: Generally recommended for almost any prompt to define desired output qualities.
  • When to Use Type B: Recommended for complex problems to force the model to consider a wider view or extra topics it might otherwise overlook.

Takeaways

  • Prompt specificity directs the model toward a particular output by providing clear guidelines, preventing infinite variations.
  • Type A specificity controls the final output's attributes, such as length or structure.
  • Type B specificity dictates the process or sequence of actions the model must follow to generate an answer.
  • Professional prompts often combine both Type A and Type B techniques for optimal results.
Flashcards 6 cards
Question
click to reveal · ←/→
Answer
click to flip back
Export to Anki (.tsv) ↓
Knowledge check 1 questions