AI-102 Exam QuestionsBrowse all questions from this exam

AI-102 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.

Show Answer
Correct Answer:

Discussion

10 comments
Sign in to comment
GHill1982
Mar 14, 2024

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.

Dhibi
May 15, 2024

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.

NagaoShingo
Jun 14, 2024

1. user 2. temperature

shorymor
Apr 20, 2024

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

vovap0vovap
May 25, 2024

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

chandiochan
Mar 29, 2024

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.

f2c587e
Mar 30, 2024

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

formacionkiteris
Jun 4, 2024

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

fba825b
Jun 16, 2024

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

fba825b
Jun 16, 2024

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

nithin_reddy
Jul 20, 2024

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