Exam AI-102 All QuestionsBrowse all questions from this exam
Question 264

HOTSPOT

-

You have an Azure subscription that contains an Azure OpenAI resource named AI1.

You build a chatbot that will use AI1 to provide generative answers to specific questions.

You need to ensure that the responses are more creative and less deterministic.

How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

    Correct Answer:

Discussion
GHill1982

The ChatRole that should be used is ChatRole.User. This role is assigned to the messages that come from the user, which the chatbot is responding to. The Temperature setting can be adjusted to increase creativity in the responses.

NagaoShingo

1. user 2. temperature

Dhibi

Selecting ChatRole.User as one of the options would imply that the responses should be generated based on the user's input or perspective. However, in this scenario, the goal is to ensure that the responses from the chatbot are more creative and less deterministic. Including ChatRole.User might limit the creativity of the responses because the model would primarily consider the user's input rather than generating novel content. By primarily focusing on ChatRole.Assistant, the responses will be predominantly generated from the perspective of the AI assistant, allowing for more creative and varied outputs. This approach ensures that the chatbot's responses are not overly influenced by the user's input, leading to more diverse and imaginative answers.

vovap0vovap

Well, I think that should be ChatRole.System ChatRole.User naturally make no sense - that user request

shorymor

ChatRole.User (Assuming the input is an actual message from user) Temperature Documentation/Examples: https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/reproducible-output?tabs=pyton

chandiochan

Yes, if the content you're inserting is the actual user message, then you should use ChatRole.User. This role signifies that the message is coming from the user, as opposed to the assistant, which would be generating the response.

nithin_reddy

Right answer is ChatRole.Assistant and Temparature, the settings are on responses from chatbot

fba825b

First would be ChatRole.System as it is the first chat in the ChatMessage object and the second answer is Temperature

fba825b

Mistake! I actually think it should be ChatRole.User as we are then awaiting for the answer from the LLM (assistant)

formacionkiteris

First Option should be ChatRole.System. "Typical usage begins with a chat message for the System role that provides instructions for the behavior of the assistant followed by alternating messages between the User role and Assistant role." https://learn.microsoft.com/en-us/dotnet/api/azure.ai.openai.chatcompletionsoptions.messages?view=azure-dotnet-preview#remarks

f2c587e

D,C. Con rol de user el chat es menos formal. con temperatura se ajusta la creatividad en las respuestas.