GROUP BY clause. Each
aggregate LLM function page documents Text, Image, and Voice modalities.
1. Available Aggregate Functions
llm_reduce: Summarize or consolidate a groupllm_rerank: Reorder rows by relevance (sliding window)llm_first: Most relevant row in a groupllm_last: Least relevant row in a group
2. Context Columns API
3. When to Use Aggregate Functions
- Summarization:
llm_reduceover text, image collections, or audio clips - Ranking:
llm_first,llm_last, orllm_rerankby text, visual, or spoken criteria - Structured output: JSON schemas via
model_parameters— see each function’s Output section

