- Categories:
Aggregate functions (General) String & binary functions (AI Functions)
AI_SUMMARIZE_AGG¶
Summarizes a column of text data.
For example, AI_SUMMARIZE_AGG(churn_reason) will return a summary of the churn_reason column.
Unlike AI_COMPLETE and SUMMARIZE (SNOWFLAKE.CORTEX), this function supports datasets larger than the maximum language model context window.
- See also:
Syntax¶
Arguments¶
Required:
exprThis is an expression that contains text for summarization, such as restaurant reviews or phone transcripts.
Returns¶
Returns a string summary of the expression.
Usage notes¶
This function provides a general purpose summary. For a more specific summary, use AI_AGG.
Examples¶
AI_SUMMARIZE_AGG can be used as a simple scalar function on string constants.
AI_SUMMARIZE_AGG can be used on a column of data.
AI_SUMMARIZE_AGG can be used on multiple columns of data using CONCAT or the || operator.
AI_SUMMARIZE_AGG can also be used in combination with GROUP BY.
See also AI_AGG.