[update][abaoxomtieu]: update grammar prompt
Browse files
apis/V1/prompts/prompt.py
CHANGED
|
@@ -115,6 +115,7 @@ def grammar_check_prompt(sentence):
|
|
| 115 |
1. Read the text carefully.
|
| 116 |
2. Correct the grammar mistakes in the text.
|
| 117 |
3. Return the corrected text.
|
|
|
|
| 118 |
Examples:
|
| 119 |
|
| 120 |
Example 1:
|
|
@@ -134,8 +135,8 @@ def grammar_check_prompt(sentence):
|
|
| 134 |
|
| 135 |
You must return in JSON format, field is mandatory:
|
| 136 |
{{
|
| 137 |
-
"incorrect": [list of incorrect words or phrases, it can be repeated],
|
| 138 |
-
"correct": [list of correct words or phrases, it can be repeated],
|
| 139 |
"corrected_sentence": corrected sentence
|
| 140 |
}}
|
| 141 |
"""
|
|
|
|
| 115 |
1. Read the text carefully.
|
| 116 |
2. Correct the grammar mistakes in the text.
|
| 117 |
3. Return the corrected text.
|
| 118 |
+
4. If there are no mistakes, return the original text.
|
| 119 |
Examples:
|
| 120 |
|
| 121 |
Example 1:
|
|
|
|
| 135 |
|
| 136 |
You must return in JSON format, field is mandatory:
|
| 137 |
{{
|
| 138 |
+
"incorrect": [list of incorrect words or phrases, it can be repeated, if there are no mistakes, return an empty list],
|
| 139 |
+
"correct": [list of correct words or phrases, it can be repeated in the same order as the incorrect list, if there are no mistakes, return an empty list],
|
| 140 |
"corrected_sentence": corrected sentence
|
| 141 |
}}
|
| 142 |
"""
|