What is the main role of a system prompt in a generative AI model interaction?
Think about how the AI knows how to respond in a certain way.
The system prompt guides the AI on how to behave, including tone, style, and role, before processing user inputs.
You want to create a generative AI that acts as a friendly customer support agent. Which system prompt role setting best fits this goal?
Consider the tone and purpose needed for customer support.
The system prompt in option D sets a friendly and helpful tone suitable for customer support, matching the goal.
Given the following Python code snippet that sets a system prompt for an AI model, what will be the printed output?
system_prompt = "You are a polite assistant." user_input = "Hello!" response = f"System says: {system_prompt} User says: {user_input}" print(response)
Look at how the f-string formats the output.
The f-string inserts the system_prompt and user_input values into the string exactly as shown in option B.
You test two different system prompts for an AI assistant. Prompt A yields 85% user satisfaction, and Prompt B yields 75%. Which metric best explains the difference?
Think about what measures how happy users are with the AI's responses.
User satisfaction score directly measures how well the system prompt meets user expectations.
An AI assistant is set with this system prompt: "You are a sarcastic assistant." However, the AI responds very politely without sarcasm. What is the most likely cause?
Consider how system prompts interact with other instructions.
If later instructions or user inputs override the system prompt, the AI may not follow the sarcastic role.