A. Because there are two user messages without an assistant reply in between
B. Because the system role is missing
C. Because the assistant role is used twice
D. Because the user messages are empty
Solution
Step 1: Check message sequence rules
AI expects alternating user and assistant messages; two user messages in a row can cause confusion.
Step 2: Identify the problem in the message list
Here, two user messages come one after another without an assistant reply, so the AI may ignore the second user message.
Final Answer:
Because there are two user messages without an assistant reply in between -> Option A
Quick Check:
Messages alternate user-assistant-user [OK]
Hint: User and assistant messages must alternate to avoid ignored inputs [OK]
Common Mistakes:
Thinking system role is missing
Assuming assistant role used twice
Believing empty messages cause ignoring
5. You want the AI to act as a friendly tutor and answer questions clearly. Which message list correctly sets this up before the user asks a question?
hard
A. [{"role": "system", "content": "You are a friendly tutor. Answer clearly."}, {"role": "user", "content": "Explain math."}]
B. [{"role": "user", "content": "Explain math."}, {"role": "system", "content": "Be friendly and clear."}]
C. [{"role": "assistant", "content": "I will be friendly."}, {"role": "user", "content": "Explain math."}]
D. [{"role": "user", "content": "Explain math."}, {"role": "assistant", "content": "I will be friendly."}]
Solution
Step 1: Place instructions in the system role
Instructions for AI behavior must be in the system message before user input.
Step 2: Check message order and roles
[{"role": "system", "content": "You are a friendly tutor. Answer clearly."}, {"role": "user", "content": "Explain math."}] correctly puts the system message first with instructions, then the user question.
Final Answer:
[{"role": "system", "content": "You are a friendly tutor. Answer clearly."}, {"role": "user", "content": "Explain math."}] -> Option A
Quick Check:
System message first with instructions [OK]
Hint: Put AI instructions in system role before user messages [OK]