ABAO77 commited on
Commit
e80003b
·
1 Parent(s): 945e504

[update][abaoxomtieu]: update grammar prompt return word

Browse files
Files changed (1) hide show
  1. apis/V1/prompts/prompt.py +4 -5
apis/V1/prompts/prompt.py CHANGED
@@ -113,9 +113,8 @@ def grammar_check_prompt(sentence):
113
  # System instructions:
114
  0. No yapping
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,8 +134,8 @@ def grammar_check_prompt(sentence):
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
  """
 
113
  # System instructions:
114
  0. No yapping
115
  1. Read the text carefully.
116
+ 2. If there are any grammar mistakes, correct them. Each mistake should be corrected individually.
117
+ 3 if there are no mistakes, return the original text.
 
118
  Examples:
119
 
120
  Example 1:
 
134
 
135
  You must return in JSON format, field is mandatory:
136
  {{
137
+ "incorrect": [list of misspelled words, it can be repeated, if there are no mistakes, return an empty list],
138
+ "correct": [list of correct words corrected from incorrect word, it can be repeated in the same order as the incorrect list, if there are no mistakes, return an empty list],
139
  "corrected_sentence": corrected sentence
140
  }}
141
  """