用于生成文本的简明摘要。
语法
AI_SUMMARIZE([<resource_name>], <text>)
参数
|
参数 |
说明 |
|
|
指定的资源名称 |
|
|
需要摘要的文本 |
返回值
-
返回文本的简明摘要。
-
当输入有值为 NULL 时返回 NULL。
-
结果为大模型生成,所以返回内容并不固定。
示例
SET default_ai_resource = 'resource_name';
SELECT AI_SUMMARIZE('SelectDB is an MPP-based real-time data warehouse known for its high query speed.') AS Result;
+-------------------------------------------------------------------+
| Result |
+-------------------------------------------------------------------+
| SelectDB is a high-speed, MPP-based real-time data warehouse. |
+-------------------------------------------------------------------+
SELECT AI_SUMMARIZE('resourse_name','SelectDB supports high-concurrency, real-time analytics and is widely used in business intelligence scenarios.') AS Result;
+--------------------------------------------------------------------------------------------------+
| Result |
+--------------------------------------------------------------------------------------------------+
| SelectDB is a high-concurrency, real-time analytics tool commonly used for business intelligence.|
+--------------------------------------------------------------------------------------------------+