surfaceclassificationcomplexity
Classificationdimension · returns varchar

COMPLEXITY

Assess complexity level for grouping (zero-shot NLI)

Per-row classifier — stable across GROUP BY.

classificationnlispecialist-zootext

Syntax

COMPLEXITY({{ text }})
{{ text }} BY COMPLEXITY

Arguments

nametypedescription
textVARCHAR

About

Dimension operator that buckets text/content by complexity level. Useful for workload estimation, routing, and segmenting mixed-depth corpora. Backend: specialist zoo zero-shot NLI via /classify. Labels are a fixed closed set: trivial / low / medium / high / very_high The hypothesis template "The conceptual complexity of this text is {label}" scores each candidate against the input text and returns the top label. For LLM-style assessment with domain-specific complexity judgment, use COMPLEXITY_LLM — see complexity_dimension_llm.cascade.yaml.

Examples

Physics content assessed as complex

SELECT
  complexity (
    'E=mc2 explains how mass can be converted to energy through nuclear fusion in stellar cores, releasing binding energy'
  )

Greeting is trivial complexity

SELECT
  complexity ('Hi, how are you doing today?')

Nearby rabbit holes

same domain
Climb back to The Looking Glass