You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve file conversion import error and enhance prompt examples
- Remove redundant relative import that caused ImportError when running file_conversion.py directly
- Remove debug print statement from production code
- Add descriptive message fields to all prompt examples for better feedback
- Examples now clearly explain what content was extracted and what was skipped
"text": "satellite" // each read_aloud question should be a coherent word, phrase or sentence, so you need to separate "satellite", "volleyball", "tomato" and "supermarket" even though they're in the a line
120
+
}},
121
+
...
122
+
{{
123
+
"id": "ra5",
124
+
"type": "read_aloud",
125
+
"text": "Agricultural Bank of China"
126
+
}},
127
+
{{
128
+
"id": "qr1",
129
+
"type": "quick_response",
130
+
"text": "When was the Spring Festival this year?" // when you see this `/` slash, separate it to two questions (you don't want the student to answer both in 10 seconds)
131
+
}},
132
+
{{
133
+
"id": "qr2",
134
+
"type": "quick_response",
135
+
"text": "When was the Lantern Festival this year?"
136
+
}}
137
+
{{
138
+
"id": "tr1",
139
+
"type": "translation",
140
+
"text": "小明住在北京,是一个人民小学的五年级学生。" // if it's provided as the answer (English), you need to translate it back to Chinese so it becomes the question text.
141
+
}},
142
+
{{
143
+
"id": "tr2",
144
+
"type": "translation",
145
+
"text": "我每天早上刷牙,洗脸,吃早餐。“ // skip "My telephone number is ", that's not a valid sentence.
146
+
}}
147
+
] // skip "My Favorite City" and "My Best Friend" also, they're also not a complete sentence, not suitable for translation questions
148
+
}}
149
+
150
+
3. **Example Three**
151
+
Input:
152
+
153
+
```markdown
154
+
# Paper 1
155
+
Would you like me to carry the suitcase for you, Mrs. Lee?
156
+
157
+
不要忘了去参观上海科技馆。
158
+
159
+
# Paper 2
160
+
reach out to sb.
161
+
162
+
这个公司成功地设计了几辆车、
163
+
164
+
165
+
浔阳江头夜送客,枫叶荻花秋瑟瑟。
166
+
主人下马客在船,举酒欲饮无管弦。
167
+
醉不成欢惨将别,别时茫茫江浸月。
168
+
忽闻水上琵琶声,主人忘归客不发。
169
+
```
170
+
171
+
Output:
172
+
173
+
{{
174
+
"success": true,
175
+
"message": "Extracted 4 questions from mixed content: 1 read aloud phrase, 1 quick response, and 2 translation questions. Skipped classical poetry as too complex for 10-year-olds",
176
+
"extracted_questions": [
177
+
{{
178
+
"id": "ra1",
179
+
"type": "read_aloud",
180
+
"text": "reach out to sb."
181
+
}},
182
+
{{
183
+
"id": "qr1",
184
+
"type": "quick_response",
185
+
"text": "Would you like me to carry the suitcase for you, Mrs.Lee?"
186
+
}},
187
+
{{
188
+
"id": "tr1",
189
+
"type": "translation",
190
+
"text": "不要忘了去参观上海科技馆。"
191
+
}},
192
+
{{
193
+
"id": "tr2",
194
+
"type": "translation",
195
+
"text": "这个公司成功地设计了几辆车。"
196
+
}}
197
+
] // the poetry below is too hard for 10-year-old kids to translate, probably for question types beyond read_aloud, multiple_choice, quick_response and translation, skip.
0 commit comments