surfaceclassificationcategory_llm
Classificationdimension · returns varchar

CATEGORY_LLM

LLM-backed categorization (escape hatch for CATEGORY)

Per-row classifier — stable across GROUP BY.

classificationllmllm-escape-hatchtext

Arguments

nametypedescription
textVARCHAR
categoriesVARCHAR
allow_otherBOOLEAN

About

LLM-backed escape hatch for content categorization. Use when CATEGORY (zero-shot NLI) misclassifies — typically when the categories overlap, require domain judgment, or the text straddles multiple buckets.

Examples

LLM escape hatch assigns category

SELECT
  category_llm ('iPhone review article')

Nearby rabbit holes

same domain
Climb back to The Looking Glass