Categories:

String & Binary Functions (Large Language Model)

SUMMARIZE (SNOWFLAKE.CORTEX)

Summarizes the given English-language input text.

Syntax

SNOWFLAKE.CORTEX.SUMMARIZE(<text>)
Copy

Arguments

text

A string containing the English text from which a summary should be generated.

Returns

A string containing a summary of the original text.

Access control requirements

Users must use a role that has been granted the SNOWFLAKE.CORTEX_USER database role. See Required Privileges for more information on this privilege.

Example

In this example, a table named reviews contains a column named review_content containing the text of reviews submitted by users. The query returns a summary of each review.

SELECT SNOWFLAKE.CORTEX.SUMMARIZE(review_content) FROM reviews LIMIT 10;
Copy