What is the difference between system, user, and assistant messages?
LLM Engineer Interview Questions: Prompt Engineering, Few-Shot, Chain-of-Thought, Structured Outputs
Audio flashcard · 0:19Nortren·
What is the difference between system, user, and assistant messages?
0:19
System messages set the model's role, behavior, and constraints, processed before any user input. User messages are inputs from the user. Assistant messages are previous responses from the model. The model is trained on this multi-role format, and structuring conversations correctly significantly improves output quality compared to mixing everything into one prompt.
platform.openai.com