Skip to Content

AI-900: How to Choose the Right GPT Text Classification Prompt?

Unlock AI-900 certification success with targeted GPT prompt strategies. Learn to identify text classification prompts like “What is the genre of this book?” and avoid common pitfalls in Azure AI exam questions.

Table of Contents

Question

Which of the following is a suitable prompt to a GPT for performing text classification?

A. What is the genre of this book?
B. Create an image representing this book.
C. Create a tagline for this book.
D. Summarize the text into a short blurb.

Answer

A. What is the genre of this book?

Explanation

The prompt, “What is the genre of this book?”, effectively guides the GPT model towards classifying the provided text into a specific genre category, making it the most suitable option for this task. Responses can be in various formats, depending on the prompt and the model’s capabilities. They can be:

  • Text: This is the most common format, where the model generates paragraphs, sentences, or creative text formats such as poems or code.
  • Visual: For specific models or prompts, the response might be an image or another visual representation.
  • Code: In response to prompts asking for code generation, the model might generate code snippets in various programming languages.

The content of the response is influenced by two main factors:

  • Prompt: The prompt provided sets the context and guides the model’s response.
  • Model’s Training Data: The model’s training data heavily influences the information it generates.

The prompt, “Summarize the text into a short blurb”, is not an example of a text classification prompt. While GPT models can be used for summarization, this prompt does not directly ask for classifying the text into a specific category (genre).

The prompt, “Create a tagline for this book”, is similar to the one for summarization and focuses on generating creative text content (a tagline) rather than classifying the existing text.

The prompt, “Create an image representing this book”, instructs the model to generate an image which is not directly related to text classification.

Microsoft Azure AI Fundamentals AI-900 certification exam practice question and answer (Q&A) dump

Microsoft Azure AI Fundamentals AI-900 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Azure AI Fundamentals AI-900 exam and earn Microsoft Azure AI Fundamentals AI-900 certification.