A Generative AI Engineer is designing a pipeline that tags product reviews for a quality team. The team maintains six issue categories, such as packaging damage, late delivery and missing parts. Analysis of past reviews shows that many reviews describe two or three problems at once, and the team wants every applicable category recorded. How should the engineer describe the model task?
Choose one.
Classification can be single-label (one category per input) or multi-label (any number of categories per input).
The deciding facts are that one review can describe several problems and that the team wants every applicable category. Single-label classification would force a choice and drop issues. Sentiment addresses a different question, and a summary sentence is unstructured text. Multi-label classification returns each matching category from the fixed set; Databricks ai_classify supports this with its multilabel option.
- Identify the output: categories from a fixed list of six.
- Check whether one input can belong to several categories: here it can.
- Choose multi-label classification so no applicable category is dropped.
Exam tip: If an input can fall into several known categories and you need all of them, specify multi-label classification.
Databricks GenAI: Prompt Design, Output Formats and Model Task Selection — the lesson that teaches this.