exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 7 question 13 discussion

Actual exam question from Microsoft's AI-102
Question #: 13
Topic #: 7
[All AI-102 Questions]

HOTSPOT
-

You have a chatbot that uses Azure OpenAI to generate responses.

You need to upload company data by using Chat playground. The solution must ensure that the chatbot uses the data to answer user questions.

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 Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mrg998
Highly Voted 7 months, 1 week ago
first one is chatCompletionsOptions() second one is AzureChatExtensionConfiguration - see link here https://learn.microsoft.com/en-us/java/api/com.azure.ai.openai.models.azurechatextensionconfiguration?view=azure-java-preview. This details AzureChatExtensionConfiguration & ChatCompletionsOptions() the other methods just dont exist on the SDK
upvoted 5 times
nastolgia
5 months ago
No.AzureExtensionsOptions: A general container for extension configurations. Extensions: A property within AzureExtensionsOptions that specifies the actual extensions to use (e.g., AzureCognitiveSearchChatExtensionConfiguration). Right answer is: AzureCognitiveSearchChatExtensionConfiguration
upvoted 3 times
Alan_CA
4 months, 1 week ago
nastolgia is right. See : https://azuresdkdocs.blob.core.windows.net/$web/dotnet/Azure.AI.OpenAI/1.0.0-beta.8/index.html#use-your-own-data-with-azure-openai
upvoted 2 times
...
...
...
JakeCallham
Highly Voted 8 months ago
answer is correct
upvoted 5 times
JakeCallham
8 months ago
AzureChatExtentionsOptions is the rights answer
upvoted 2 times
...
...
syupwsh
Most Recent 1 month, 4 weeks ago
ChatCompletionsOptions() is CORRECT. This class is used to configure options for generating chat completions in the Azure OpenAI service, such as setting the input messages and extensions (like using Azure Cognitive Search for integrating company data). In this case, you are configuring a chat completion to ensure the chatbot responds to user questions using the provided company data. AzureCognitiveSearchChatExtensionConfiguration is CORRECT. This class is specifically designed to integrate Azure Cognitive Search with Azure OpenAI, allowing the chatbot to use data from an Azure Cognitive Search index to answer user questions. In the context of the solution, it configures the search endpoint, key, and index name, ensuring that the chatbot can use the company data during chat interactions.
upvoted 1 times
...
BenALGuhl
3 months, 2 weeks ago
This was based on the beta version. Now with 2.1.0, the second selection would be completely different: https://azuresdkdocs.blob.core.windows.net/$web/dotnet/Azure.AI.OpenAI/2.1.0/index.html#use-your-own-data-with-azure-openai options.AddDataSource(new AzureSearchChatDataSource() { Endpoint = new Uri("https://your-search-resource.search.windows.net"), IndexName = "contoso-products-index", Authentication = DataSourceAuthentication.FromApiKey( Environment.GetEnvironmentVariable("OYD_SEARCH_KEY")), });
upvoted 2 times
...
anto69
9 months, 3 weeks ago
Seems correct answer
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago