ai-103 Practice Question 1989
Exam: ai-103
Domain: Implement natural language processing solutions
Topic: Process natural language text
Difficulty: medium
A developer is working on an application that needs to generate human-like responses to user queries using Azure OpenAI Service. The application should be able to handle a wide range of topics and provide contextually relevant answers. Which of the following best describes how the developer should use the Azure OpenAI service to achieve this goal?
Answer Options
A
Use the Azure Cognitive Search to index and search for relevant documents.
B
Use the Completions API to generate text based on the input prompt.
C
Use the Text Generation API to generate text based on a specific topic.
D
Use the Azure Cognitive Search to perform keyword searches on user queries.
Correct Answer
B: Use the Completions API to generate text based on the input prompt.
Explanation
The correct answer is B because Azure OpenAI Service's Completions API can generate text based on the input prompt, allowing for contextually relevant responses to a wide range of topics. Option A is incorrect because the Chat API is designed for conversational interactions but not necessarily for generating text based on a specific topic. Option C is incorrect because the Text Generation API is not available in Azure OpenAI Service. Option D is incorrect because the Azure Cognitive Search is used for searching and indexing content, not for generating text.