AI_SUMMARIZE#

Summarizes the input text and returns only the summary.

Syntax#

AI_SUMMARIZE ( text_expression )

Arguments#

text_expression

The text to summarize. Any character expression (char, varchar, nchar or nvarchar).

Return types#

nvarchar(max)

Remarks#

The function executes in Querona against the session’s ambient AI model (see AI (generative)) and works over data from any connected source. A failed call — provider error, content restriction, or input over roughly 15 KB — returns NULL for that row without aborting the query; an authorization failure (for example a rejected API key) raises a statement-level error instead. The function is non-deterministic and is re-evaluated on every execution.

Example#

SELECT AI_SUMMARIZE(review_text) AS summary
FROM   hotel_reviews;

See Also#