0
0
Prompt Engineering / GenAIml~10 mins

System prompts and role setting in Prompt Engineering / GenAI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the system prompt for the AI model.

Prompt Engineering / GenAI
system_prompt = "You are a helpful assistant specialized in [1]."
Drag options to blanks, or click blank then click option'
Acooking recipes
Bsports commentary
Cmachine learning
Dweather forecasting
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing unrelated specializations like cooking or sports.
Leaving the prompt too vague.
2fill in blank
medium

Complete the code to assign a role to the AI assistant.

Prompt Engineering / GenAI
role = "[1]"
Drag options to blanks, or click blank then click option'
Amachine learning instructor
Bgraphic designer
Cdata scientist
Dsoftware developer
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing roles unrelated to teaching or AI.
Selecting roles that do not fit the topic.
3fill in blank
hard

Fix the error in setting the system prompt to include the role and topic.

Prompt Engineering / GenAI
system_prompt = "You are a [1] who teaches [2]."
Drag options to blanks, or click blank then click option'
Amachine learning
Bgraphic designer
Cmachine learning instructor
Dcooking
Attempts:
3 left
💡 Hint
Common Mistakes
Putting the topic where the role should be.
Using unrelated roles.
4fill in blank
hard

Fill both blanks to complete the system prompt with role and topic.

Prompt Engineering / GenAI
system_prompt = "You are a [1] specialized in [2]."
Drag options to blanks, or click blank then click option'
Amachine learning instructor
Bdata analyst
Cmachine learning
Dgraphic design
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping role and topic.
Choosing unrelated options.
5fill in blank
hard

Fill all three blanks to set system prompt, role, and topic correctly.

Prompt Engineering / GenAI
system_prompt = "You are a [1] who teaches [2] to [3]."
Drag options to blanks, or click blank then click option'
Amachine learning instructor
Bbeginners
Cmachine learning
Dexperts
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up audience with role or topic.
Choosing 'experts' instead of 'beginners'.