surfaceclassificationcategory
Classificationdimension · returns varchar

CATEGORY

Categorize text via zero-shot NLI with default or custom labels

Per-row classifier — stable across GROUP BY.

classificationnlispecialist-zootext

Arguments

nametypedescription
textVARCHAR
categoriesVARCHAR
allow_otherBOOLEAN

About

Content categorization — buckets text into either a default content taxonomy or user-specified categories. Slightly more opinionated than BUCKET: has a sensible default label set if none is provided. Backend: specialist zoo zero-shot NLI via /classify_batch. Default category labels cover common content types. User-provided `categories` arg overrides the default. `allow_other=true` (default) adds an "Other" bucket that catches ambiguous rows. For LLM-style categorization with domain judgment, use CATEGORY_LLM — see category_dimension_llm.cascade.yaml.

Examples

Category assigned

SELECT
  category ('iPhone review article')

Nearby rabbit holes

same domain
Climb back to The Looking Glass