The new Azure Q&A format uses a structured messages
array. Here's a quick guide:
NEW FORMAT-
{
"messages": [
{"role": "system", "content": "You are a customer service chat bot."},
{"role": "user", "content": "Question?"},
{"role": "assistant", "content": "Answer."}
]
}
OLD FORMAT
{
"context": "You are a customer service chat bot.",
"content": "Question?",
"response": "Answer."
}
Why the Change?
- Clarity: Clearly separates roles (
system
,user
,assistant
). - Flexibility: Supports more complex interactions.
Context Field
Purpose: system
role sets the scenario (e.g., "You are a customer service chat bot.").
Content: Instructions or setup for the assistant.
- Why the Change? Clarity: Clearly separates roles (
system
,user
,assistant
). Flexibility: Supports more complex interactions. Context Field Purpose:system
role sets the scenario (e.g., "You are a customer service chat bot."). Content: Instructions or setup for the assistant