LLM_FIXGRAMMAR
Descriptionβ
Used to correct grammatical errors in text.
Syntaxβ
LLM_FIXGRAMMAR([<resource_name>], <text>)
Parametersβ
Parameter | Description |
---|---|
<resource_name> | The specified resource name, optional |
<text> | The text to be grammar-corrected |
Return Valueβ
Returns the text string after grammar correction.
If any input is NULL, returns NULL.
The result is generated by a large language model, so the output may vary.
Examplesβ
SET default_llm_resource = 'resource_name';
SELECT LLM_FIXGRAMMAR('Apache Doris a great system DB') AS Result;
+------------------------------------------+
| Result |
+------------------------------------------+
| Apache Doris is a great database system. |
+------------------------------------------+
SELECT LLM_FIXGRAMMAR('resource_name', 'I am like to using Doris') AS Result;
+--------------------+
| Result |
+--------------------+
| I like using Doris |
+--------------------+