AWS Certified AI PractitionerFoundation ModelsEasy

A developer is iterating quickly on an application that uses a foundation model for creative text generation. They want to explore different output styles, tones, and content structures by simply changing the input to the model, without modifying the model's weights or architecture. Which technique is this developer primarily utilizing?

  1. AModel Architecture Design
  2. BPrompt Engineering
  3. CReinforcement Learning
  4. DFull Fine-Tuning
Show answer & explanation

Correct answer: B. Prompt Engineering

Prompt engineering involves carefully designing the input text (prompt) to a foundation model to guide its behavior and elicit desired outputs, without altering the model's internal parameters. This allows for rapid iteration and exploration of different generation styles.

Why the other options are wrong

  • A. Model architecture design involves changing the internal structure of the model, not just its input.
  • C. Reinforcement learning is a training paradigm that involves learning through trial and error with a reward signal, not simply input manipulation.
  • D. Full fine-tuning involves updating the model's weights, which is a much more involved and time-consuming process than simply changing the prompt.

Prompt Engineering

The practice of designing and refining input prompts for foundation models to achieve desired outputs, explore different behaviors, or steer generation towards specific styles or content.

  • No model weight changes
  • Rapid iteration
  • Crucial for leveraging pre-trained FMs

Memory trick: PROMPT Engineering is like giving the AI clear INSTRUCTIONS.

More Foundation Models questions