LLM_SUMMARIZE
Descriptionβ
Used to generate a concise summary of the text.
Syntaxβ
LLM_SUMMARIZE([<resource_name>], <text>)
Parametersβ
Parameter | Description |
---|---|
<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. |
+------------------------------------------------------------------------------------------------+