> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# ai_summarize

> Asks the model to generate a short summary that preserves the main information.

Asks the model to generate a short summary that preserves the main information.

## Syntax

```sql theme={null}
ai_summarize(input[, provider[, model]])
```

## Arguments

* `input`: A VARCHAR expression containing the text to summarize.

For the types and default behavior of `provider` and `model`, see [Common calling rules](/documents/4.2/sql-reference/sql-functions/ai-functions/ai_functions.md#common-calling-rules).

## Return value

Returns a nullable VARCHAR containing the summary generated by the model.

## Examples

```sql theme={null}
SELECT ai_summarize('The meeting concluded that API testing must be completed before the new version is released. The test lead will report progress on Friday.');

SELECT ai_summarize(
    input => 'The meeting concluded that API testing must be completed before the new version is released. The test lead will report progress on Friday.',
    provider => 'support_chat'
);
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.