MDFT Pro, a well-known training agency, is building an AI-powered educational assistant to help students understand various technology concepts and terminology. Mark, the Educational Content Developer, is implementing an Azure OpenAI-based application that provides definitions and explanations of common AI and technology terms.
However, the current implementation is producing generic or unhelpful answers when students ask about technical terminology. The AI assistant needs to provide clear, educational responses that are specifically relevant to the technology and AI learning context rather than broad, general definitions that may not be useful for students studying for certification exams.
Here is the current code implementation:
...
OpenAIClient client =
new OpenAIClient(new Uri(endpoint), new AzureKeyCredential(key));
ChatCompletionsOptions options = new ChatCompletionsOptions
{
Messages =
{
new ChatMessage(ChatRole.System, "You are a helpful assistant."),
new ChatMessage(ChatRole.User, "What is an LLM?")
}
};
ChatCompletions response = client.GetChatCompletions(
deploymentName, options);
ChatMessage completion = response.Choices[0].Message;
Console.WriteLine($"Chatbot: {completion.Content}");
...
Will changing the user prompt from “What is an LLM?” to “What is an LLM in the context of AI models?” improve the quality of the answer?
Choose the correct answer from the options below.
Explanations for each answer: