Microsoft Certified: Azure AI Engineer AssociateImplement generative AI solutionsMedium
A team is developing a new customer support chatbot using Azure OpenAI Service. The chatbot needs to generate responses that are both informative and empathetic. To ensure the chatbot's tone is consistently professional yet caring, the team wants to provide initial instructions that set the overall persona and behavior of the AI for the entire conversation. Which component of the Azure OpenAI Chat Completions API is best suited for defining this overarching context?
- AFunction messages
- BUser messages
- CSystem message
- DAssistant messages
Show answer & explanationAnswer & explanation
Correct answer: C. System message
The system message in the Azure OpenAI Chat Completions API is specifically designed to set the behavior, persona, and overall context for the assistant throughout the entire conversation. It acts as a high-level instruction that guides the model's responses, ensuring consistency in tone and style.
Why the other options are wrong
- A. Function messages are for tool use, not for defining the AI's persona.
- B. User messages are the user's input, not for defining the AI's persona.
- D. Assistant messages are the AI's previous responses, part of the conversation history, but not for setting the initial overall persona.
System Message (Azure OpenAI Chat Completions)
A special message type in the Chat Completions API used to set the behavior, tone, or persona of the assistant for the entire conversation.
- Provides overarching instructions or context to the LLM.
- Influences the assistant's responses throughout the dialogue.
- Typically the first message in a conversation, though it can be updated.
Memory trick: The System sets the stage for the AI's role.