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