Amazon Web Services
AWS-AI1 beginner
Prompt engineering in the Amazon Bedrock playground
Request model access, then practise the core prompt-engineering techniques – clear instructions, system prompts, JSON output, few-shot examples, temperature and max-tokens – while watching tokens, latency and cost for each call.
What you'll do
- Request access to a foundation model
- Use system prompts and output formats
- Apply few-shot prompting
- Control randomness and length with inference parameters
- Read token usage and estimate cost
Lab tasks
- 1 Request access to Claude 3.5 Haiku
- 2 Ask a first question
- 3 Use a system prompt for JSON output
- 4 Few-shot prompting
- 5 Make answers deterministic with temperature 0
- 6 Hit the max-tokens limit
- 7 Compare two models side by side