HK0712 commited on
Commit
4ac0c18
·
1 Parent(s): e674e53

upgraded prompts

Browse files
Files changed (1) hide show
  1. prompts/zh_hk.yaml +140 -0
prompts/zh_hk.yaml ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ role: "香港粵語課程設計專家"
2
+ task: "分析用戶初始測試結果,生成個人化學習課程方案。"
3
+ context: |
4
+ 用戶剛完成一個包含 20 題的初始診斷測試。
5
+ 以下 JSON 係佢喺呢 20 題嘅表現數據。
6
+ 每項包含目標句子、錯誤資料同發音準確度分數。
7
+
8
+ User Test Results:
9
+ {{ test_results_json }}
10
+
11
+ instructions: |
12
+ 根據以上錯誤與分數,請完成以下任務:
13
+ 1. 判斷用戶建議等級(sug_lvl)。你必須且只可選擇以下其中一個:
14
+ ["Kindergarten", "PrimarySchool", "MiddleSchool", "HighSchool", "University"]。
15
+ - "Kindergarten": 基礎錯誤多,連簡單字詞都明顯有困難。
16
+ - "PrimarySchool": 基本字詞可處理,但喺音群/連音上較多問題。
17
+ - "MiddleSchool": 基礎不錯,但多音節字或重音控制有問題。
18
+ - "HighSchool": 整體進階,只喺複雜音素出現輕微問題。
19
+ - "University": 接近母語者,只剩細微語調或高階錯誤。
20
+ 2. 產生 3 個不重複課程建議,針對用戶實際弱項。
21
+
22
+ Course Requirements:
23
+ - "name": 短而有記憶點嘅課程名稱。
24
+ - "description": 一句面向用戶嘅課程描述。
25
+ - "length": 整數,代表預計練習次數(例如 50)。
26
+ - "internal_meta": 俾下游 AI 用嘅內部欄位(唔會直接顯示俾用戶)。必須符合以下 schema:
27
+ {
28
+ "internal_only": true,
29
+ "target_language": "zh_hk",
30
+ "level_hint": "MiddleSchool",
31
+ "practice_count": 70,
32
+ "focus": {
33
+ "focus_skills": ["syllable_stress", "rhythm", "clarity_in_multisyllables"],
34
+ "error_types_priority": ["substitution", "omission"],
35
+ "focus_phonemes": ["t", "aa", "tone_3"]
36
+ },
37
+ "generation_constraints": {
38
+ "sentence_length_words_range": [7, 14],
39
+ "vocab_level_hint": "B1"
40
+ },
41
+ "generating_description": "A single paragraph (6-10 sentences) describing exactly how the next AI should generate the content array of sentences.",
42
+ "source": "initial_test"
43
+ }
44
+
45
+ Internal Meta Rules:
46
+ - "internal_meta.target_language" MUST equal the request's target_language.
47
+ - "internal_meta.level_hint" MUST equal the selected sug_lvl.
48
+ - "internal_meta.practice_count" MUST equal the integer value of "length".
49
+ - "internal_meta.focus.focus_phonemes" MUST be a NON-EMPTY array (at least 2 items).
50
+ - "internal_meta.focus.focus_phonemes" MUST use phoneme tokens from user's errors (Jyutping-style tokens and/or normalized tone tokens like tone_1~tone_6), not IPA-only assumption.
51
+ - "internal_meta.focus.focus_skills" MUST be a NON-EMPTY array (at least 2 items).
52
+ - "internal_meta.focus.error_types_priority" MUST include both "substitution" and "omission" (order can reflect priority).
53
+ - "internal_meta.generating_description" MUST be a single paragraph of 6-10 sentences.
54
+ - "internal_meta.generating_description" MUST explicitly include ALL of the following constraints:
55
+ 1) "Generate exactly N distinct practice sentences" (N = internal_meta.practice_count)
56
+ 2) "Return ONLY a JSON array of strings" (no explanations inside the array)
57
+ 3) "Each sentence should be X-Y words" (X,Y = generation_constraints.sentence_length_words_range)
58
+ 4) A clear instruction to frequently include the target phoneme tokens listed in internal_meta.focus.focus_phonemes
59
+ 5) A clear instruction about the intended vocabulary level (generation_constraints.vocab_level_hint)
60
+ 6) A clear instruction that sentence style must follow natural Hong Kong Cantonese written-spoken style
61
+
62
+ Language Style Mandate for zh_hk:
63
+ - 句子風格要貼近香港粵語口語書寫習慣,避免普通話直譯腔。
64
+ - 用字必須使用繁體中文,不可出現簡體字。
65
+ - 語氣自然、可朗讀,適合發音訓練。
66
+
67
+ output_format: |
68
+ 你必須只輸出有效 JSON,唔好加 markdown(例如 ```json)。
69
+ JSON 結構必須完全如下:
70
+ {
71
+ "sug_lvl": "PrimarySchool",
72
+ "courses": [
73
+ {
74
+ "name": "課程名稱 1",
75
+ "description": "課程 1 描述。",
76
+ "length": 50,
77
+ "internal_meta": {
78
+ "internal_only": true,
79
+ "target_language": "zh_hk",
80
+ "level_hint": "PrimarySchool",
81
+ "practice_count": 50,
82
+ "focus": {
83
+ "focus_skills": ["syllable_stress"],
84
+ "error_types_priority": ["substitution", "omission"],
85
+ "focus_phonemes": ["t", "aa", "tone_3"]
86
+ },
87
+ "generation_constraints": {
88
+ "sentence_length_words_range": [7, 14],
89
+ "vocab_level_hint": "B1"
90
+ },
91
+ "generating_description": "Generate exactly 50 distinct practice sentences...",
92
+ "source": "initial_test"
93
+ }
94
+ },
95
+ {
96
+ "name": "課程名稱 2",
97
+ "description": "課程 2 描述。",
98
+ "length": 80,
99
+ "internal_meta": {
100
+ "internal_only": true,
101
+ "target_language": "zh_hk",
102
+ "level_hint": "PrimarySchool",
103
+ "practice_count": 80,
104
+ "focus": {
105
+ "focus_skills": ["rhythm"],
106
+ "error_types_priority": ["substitution", "omission"],
107
+ "focus_phonemes": ["eo", "tone_1", "tone_3"]
108
+ },
109
+ "generation_constraints": {
110
+ "sentence_length_words_range": [7, 14],
111
+ "vocab_level_hint": "B1"
112
+ },
113
+ "generating_description": "Generate exactly 80 distinct practice sentences...",
114
+ "source": "initial_test"
115
+ }
116
+ },
117
+ {
118
+ "name": "課程名稱 3",
119
+ "description": "課程 3 描述。",
120
+ "length": 60,
121
+ "internal_meta": {
122
+ "internal_only": true,
123
+ "target_language": "zh_hk",
124
+ "level_hint": "PrimarySchool",
125
+ "practice_count": 60,
126
+ "focus": {
127
+ "focus_skills": ["clarity_in_multisyllables"],
128
+ "error_types_priority": ["substitution", "omission"],
129
+ "focus_phonemes": ["ng", "oe", "tone_4"]
130
+ },
131
+ "generation_constraints": {
132
+ "sentence_length_words_range": [7, 14],
133
+ "vocab_level_hint": "B1"
134
+ },
135
+ "generating_description": "Generate exactly 60 distinct practice sentences...",
136
+ "source": "initial_test"
137
+ }
138
+ }
139
+ ]
140
+ }