AI-900 practice question 5 of 35
Which parameter should you configure to produce a more diverse range of tokens in the responses from a chat solution that uses the Azure OpenAI GPT-3.5 model?
Full set: 316 questionsDomain Describe fundamental principles of machine learning on Azure
The presencepenalty parameter is specifically designed to influence the diversity of the generated text. By applying a penalty to tokens that have already appeared in the conversation history and the generated output, it discourages the model from repeating itself. A positive presencepenalty value increases the likelihood that the model will introduce new topics and use a more varied vocabulary, directly addressing the requirement to produce a more diverse range of tokens.
A. Max response: This parameter (maxtokens) controls the maximum length of the generated response, not the diversity or variety of the words used within it.
B. Past messages included: This refers to the conversational history provided as context. While context influences the response, it is not a configurable parameter for controlling token diversity.
D. Stop sequence: This parameter defines specific sequences of text that, when generated, will cause the model to stop its output. It is a termination control, not a diversity control.
1. Microsoft Learn, Azure AI Services Documentation. "Learn how to work with the Azure OpenAI models". Under the "Chat completion" section, the presencepenalty parameter is defined: "Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics."
2. Microsoft Learn, Azure OpenAI Service REST API reference. In the "Create chat completion" API documentation, the presencepenalty parameter is described as a mechanism to penalize new tokens based on their existing presence in the text, which encourages the model to generate novel content.
Keep practicing
Take the free AI-900 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AI-900 practice questions
- Question 2Your company wants to build a recycling machine for bottles. The recycling machine must a…
- Question 8Which two tools can you use to call the Azure OpenAI service? Each correct answer present…
- Question 9For a machine learning progress, how should you split data for training and evaluation?
- Question 10You need to develop a chatbot for a website. The chatbot must answer users questions base…
- Question 12You use Azure Machine Learning designer to publish an inference pipeline. Which two param…
- Question 13A medical research project uses a large anonymized dataset of brain scan images that are …
