AI_CLASSIFY

Applies to: ✅ Data 360 SQL ❌ Tableau Hyper API

Analyzes text and classifies it into the best matching category from a list of categories you define. This function uses the classification model to categorize support cases, customer inquiries, product feedback, and other unstructured text.

  • <input_text>: The text to classify.
  • <input_categories>: A text array of categories with at least one unique value. An empty category list results in the Input categories cannot be empty validation error message.

After analyzing the input_text, returns the category with the highest confidence score from the input_categories.

  • Input text length: The function supports input text up to 512 tokens (approximately 400-500 words). For longer text such as full emails or lengthy documents, split the content into shorter passages before classifying.
  • Best for short text: This function works best on short, intent-rich text such as support case descriptions, product inquiries, and customer feedback.
  • Category consistency: The input_categories parameter must be constant across all rows in the query.
  • Performance: Requests to the function time out after 30 seconds.
  • First execution: When executing this function on a large number of rows for the first time, you can encounter timeout or capacity errors. Start with smaller row counts and gradually increase volume to avoid these issues.
  • Non-NULL values: input_text must be a non-NULL value. Add IS NOT NULL to the WHERE clause in your SQL statement to avoid NULL value errors.
  • Multilingual support: The underlying model supports multiple languages.

Classify issues in an automobile repair center based on the type of issue.

Returns:

issuesIdentified__ccategory
Electrical system failure causing intermittent starting and dashboard warningsElectrical
Shock absorber replacement due to oil leakage and poor ride qualityChassis
Engine overheating issue traced to failed radiator and thermostat replacementEngine
Exhaust system repair and catalytic converter replacementEngine
Steering system malfunction requiring tie rod and power steering pump replacementChassis

Returns only the rows matching the defined classification.

Returns all reported vehicle issues related to the engine.