LLM_SUMMARIZE
描述
用于生成文本的简明摘要
语法
LLM_SUMMARIZE([<resource_name>], <text>)
参数
参数 | 说明 |
---|---|
<resource_name> | 指定的资源名称 |
<text> | 需要摘要的文本 |
返回值
返回文本的简明摘要
当输入有值为 NULL 时返回 NULL
结果为大模型生成,所以返回内容并不固定
示例
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. |
+------------------------------------------------------------------------------------------------+