Skip to main content

LLM_SUMMARIZE

Description​

Used to generate a concise summary of the text.

Syntax​

LLM_SUMMARIZE([<resource_name>], <text>)

Parameters​

ParameterDescription
<resource_name>The specified resource name
<text>The text to be summarized

Return Value​

Returns a concise summary of the text.

If any input is NULL, returns NULL.

The result is generated by a large language model, so the output may vary.

Examples​

SET default_llm_resource = 'resource_name';
SELECT LLM_SUMMARIZE('Apache Doris is an MPP-based real-time data warehouse known for its high query speed.') AS Result;
+-------------------------------------------------------------------+
| Result |
+-------------------------------------------------------------------+
| Apache Doris is a high-speed, MPP-based real-time data warehouse. |
+-------------------------------------------------------------------+
SELECT LLM_SUMMARIZE('resourse_name','Doris supports high-concurrency, real-time analytics and is widely used in business intelligence scenarios.') AS Result;
+------------------------------------------------------------------------------------------------+
| Result |
+------------------------------------------------------------------------------------------------+
| Doris is a high-concurrency, real-time analytics tool commonly used for business intelligence. |
+------------------------------------------------------------------------------------------------+