全部產品
Search
文件中心

ApsaraDB for SelectDB:AI_SUMMARIZE

更新時間:Feb 04, 2026

用於產生文本的簡明摘要。

文法

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

參數

參數

說明

<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.|
+--------------------------------------------------------------------------------------------------+