メインコンテンツまでスキップ
に最終更新

AI_FIXGRAMMAR

説明​

テキストの文法上の誤りを修正します。

構文​

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

引数​

引数説明
<resource_name>指定するリソース名。省略可能
<text>文法を修正するテキスト

戻り値​

文法を修正したテキスト文字列を返します。

いずれかの入力が NULL の場合は NULL を返します。

結果は大規模言語モデルによって生成されるため、出力は変わることがあります。

例​

SET default_ai_resource = 'resource_name';
SELECT AI_FIXGRAMMAR('Apache Doris a great system DB') AS Result;
+------------------------------------------+
| Result |
+------------------------------------------+
| Apache Doris is a great database system. |
+------------------------------------------+
SELECT AI_FIXGRAMMAR('resource_name', 'I am like to using Doris') AS Result;
+--------------------+
| Result |
+--------------------+
| I like using Doris |
+--------------------+