surfacesummarizationconsensus_llm
Summarizationaggregate · returns varchar

CONSENSUS_LLM

LLM-only consensus (escape hatch for CONSENSUS)

Per-group — reads the whole group in one call.

summarizationllmllm-escape-hatchjson

Syntax

CONSENSUS_LLM({{ texts }})
CONSENSUS_LLM({{ texts }}, '{{ prompt }}')

Arguments

nametypedescription
textsJSON
prompt(optional)VARCHAR

About

LLM-only consensus extraction — bypasses the embedding-centrality representative selection used by CONSENSUS and shoves every text into the LLM prompt directly. This is context-window-bound: for small collections (hundreds of texts) it's fine; for larger collections it will either truncate or fail. The canonical CONSENSUS operator handles both shapes transparently — use CONSENSUS_LLM only when you specifically need the LLM to see every text.

Examples

LLM escape hatch finds consensus in positive service reviews

WITH
  test_data AS (
    SELECT
      *
    FROM
      (
        VALUES
          ('The service was excellent'),
          ('Staff was friendly and helpful'),
          ('Great customer service experience'),
          ('Very attentive and professional team')
      ) AS t (review)
  )
SELECT
  CONSENSUS_LLM (review)
FROM
  test_data

Nearby rabbit holes

same domain
Climb back to The Looking Glass