joelniklaus HF Staff commited on
Commit
cbf941b
·
1 Parent(s): 2b161d7

wrap prompts as text blocks

Browse files
app/src/content/chapters/appendix.mdx CHANGED
@@ -10,56 +10,84 @@ For our ablations we train a 1.2B parameter language model using a Qwen2-style a
10
 
11
  ##### continue
12
 
 
13
  Continue the following text in the same style as the original. Start with the continuation directly.
14
  Text:
15
  [TEXT]
 
 
16
  ##### summarize
17
 
 
18
  Summarize the following text. Write a standalone summary without referencing the text. Directly start with the summary. Do not say anything else.
19
  Text:
20
  [TEXT]
21
  Summary:
 
 
22
  #### Format
23
 
24
  ##### article
25
 
 
26
  Transform the document into a magazine-style feature article. Open with an engaging lead, then blend narrative storytelling with factual explanation. Maintain an accessible yet polished tone suitable for a general but informed readership. Output only the feature article, nothing else.
27
  Document:
28
  [TEXT]
 
 
29
  ##### commentary
30
 
 
31
  Summarize the document in a concise paragraph that captures its central arguments or findings. Then, write an expert commentary that critically reflects on its implications, limitations, or broader context. Maintain an analytical and professional tone throughout. Output only the summary and the commentary, nothing else.
32
  Document:
33
  [TEXT]
 
 
34
  ##### discussion
35
 
 
36
  Reformulate the document as a dialogue between a teacher and a student. The teacher should guide the student toward understanding the key points while clarifying complex concepts. Keep the exchange natural, informative, and faithful to the original content. Output only the dialogue, nothing else.
37
  Document:
38
  [TEXT]
 
 
39
  ##### faq
40
 
 
41
  Rewrite the document as a comprehensive FAQ (Frequently Asked Questions). Extract or infer the key questions a reader would have about this topic, then provide clear, direct answers. Order questions logically—from foundational to advanced, or by topic area. Each answer should be self-contained and understandable without reference to other answers. Ensure the FAQ works as a standalone document. Output only the FAQ, nothing else.
42
  Document:
43
  [TEXT]
 
 
44
  ##### math
45
 
 
46
  Rewrite the document to create a mathematical word problem based on the numerical data or relationships in the text. Provide a step-by-step solution that shows the calculation process clearly. Create a problem that requires multi-step reasoning and basic arithmetic operations. It should include the question followed by a detailed solution showing each calculation step. Output only the problem and solution, nothing else.
47
  Document:
48
  [TEXT]
 
 
49
  ##### table
50
 
 
51
  Rewrite the document as a structured table that organizes the key information, then generate one question-answer pair based on the table. First extract the main data points and organize them into a clear table format with appropriate headers using markdown table syntax with proper alignment. After the table, generate one insightful question that can be answered using the table data. Provide a clear, concise answer to the question based on the information in the table. Output only the table followed by the question-answer pair, nothing else.
52
  Document:
53
  [TEXT]
 
 
54
  ##### tutorial
55
 
 
56
  Rewrite the document as a clear, step-by-step tutorial or instructional guide. Use numbered steps or bullet points where appropriate to enhance clarity. Preserve all essential information while ensuring the style feels didactic and easy to follow. Output only the tutorial, nothing else.
57
  Document:
58
  [TEXT]
 
 
59
  #### Nemotron
60
 
61
  ##### distill
62
 
 
63
  Your task is to read and paraphrase the provided text following these instructions:
64
  - Aim to create a condensed but accurate and informative version of the original text, not a simplistic summary.
65
  - Capture and preserve the crucial information, key concepts, important values, and factual details in the original text, while making it more readable and accessible.
@@ -72,8 +100,11 @@ Here is the text:
72
  [TEXT]
73
  Task:
74
  After thoroughly reading the above text, paraphrase it in high-quality and clear English following the instructions.
 
 
75
  ##### diverse_qa_pairs
76
 
 
77
  Task: Read the text, ask questions and answer them.
78
  Follow these instructions:
79
  1. Ask diverse questions that require different cognitive skills or cover different aspects of the text.
@@ -99,8 +130,11 @@ Here are the questions and answers based on the provided text:
99
  - Question: [second question] Answer: [second answer]
100
 
101
  ....
 
 
102
  ##### extract_knowledge
103
 
 
104
  Your task is to rewrite knowledge from the provided text following these instructions:
105
  - Rewrite the text as a passage or passages using easy-to-understand and high-quality English like sentences in textbooks and Wikipedia.
106
  - Focus on content in disciplines such as humanities, social sciences, natural sciences, technology, engineering, math, law and legal, business, management, art, education, agricultural sciences, politics, and history.
@@ -114,8 +148,11 @@ Text:
114
  [TEXT]
115
  Task:
116
  Rewrite facts and knowledge from the above text as a passage or passages following the instructions.
 
 
117
  ##### knowledge_list
118
 
 
119
  Review the text and extract the key information. Follow these instructions:
120
  - Carefully read the above text and provide a concise and organized list of factual information, concrete details, key concepts, and important numbers and statistics extracted from the text.
121
  - Ensure each point is clear, specific, and supported by the original text.
@@ -126,15 +163,21 @@ Text:
126
  [TEXT]
127
  Task:
128
  Extract the factual information, concrete details, and key concepts from the above text following the instructions.
 
 
129
  ##### wikipedia_style_rephrasing
130
 
 
131
  For the following paragraph give me a diverse paraphrase of the same in high quality English language as in sentences on Wikipedia. Begin your answer on a separate line with "Here is a paraphrased version:".
132
  Text:
133
  [TEXT]
 
 
134
  #### REWIRE
135
 
136
  ##### guided_rewrite_improved
137
 
 
138
  Below is a draft from an AI Assistant when trying to accomplish a task or solve a problem. Analyze and understand the task and problem(s) to be solved. Then pretend to be the expert who is most skillful to accomplish this task, and use detailed thinking and internal reasoning to identify a strategy and develop a plan about how to solve this problem. Experts usually apply meta-reasoning and planning to reason about how to best accomplish the task before jumping to a solution.
139
  Deliberate meta-reasoning also involves reflection which can help identify issues and take a step back to explore other paths. Below are some generic examples of starting questions experts could ask themselves during the meta-reasoning process. The expert will come up with the most relevant questions that can help with their thinking process, which are also very specific to the task.
140
  Consider these questions during your internal reasoning process:
@@ -149,8 +192,11 @@ Finally, rewrite the original content from the author's perspective, maintaining
149
  IMPORTANT: Your output must be ONLY the actual rewritten content itself - nothing else. Do NOT include any analysis, commentary, description, summary, or explanation about the improvements made. Do NOT add any meta-commentary like "This version improves..." or similar statements. Do NOT reference "the original draft" or "the draft" in your output. Output ONLY the content as if it were the final published piece that readers would see, with absolutely no additional text before or after it.
150
  Original Draft:
151
  [TEXT]
 
 
152
  ##### guided_rewrite_original
153
 
 
154
  Below is a draft from an AI Assistant when trying to accomplish task or solving a problem. Analyze and understand the task and problem(s) to be solved. Then pretend to be the expert who is most skillful to acomplish this task, write down the detailed thinking process and internal monologue that went into identifying a strategy and lay out a plan about how to solve this problem. Experts usually apply meta-reasoning and planning to reason about how to best accomplish the task before jumping to solution.
155
  Deliberate meta-reasoning also involves reflection which can help identify issues and take a step back to explore other paths. Below are some generic examples of starting questions experts could ask themselves during meta-reasoning process. The expert will come up with the most relevant questions that can help with their thinking process, which are also very specific to the task.
156
  Let's first try to understand the task and exactly what problem(s) to be solved. What is the core issue or problem that needs to be addressed? What are the key assumptions underlying this problem?
@@ -162,6 +208,7 @@ Let's make a step by step plan and implement it with good notion and explanation
162
  Finally, write an improved response after thinking about how to accomplish the task. Take information and details from the original draft whenever they are useful. Therefore, the improved response should not be shorter than the original response. The improved response should have better formatting and readability, with more coherent and in-depth reasoning, while removing any noise or digression. Note that the best experts chosen to answer each prompt may be different, so please make sure the you do not sound like the same expert for all tasks.
163
  IMPORTANT: Start your analysis and thinking right away. DO NOT add any filler text, explanations or notes about your response. Put the thinking and planning between {'<'}thinking starts{'>'} and {'<'}thinking ends{'>'}, and the improved response between {'<'}improved response starts{'>'} and {'<'}improved response ends{'>'}.
164
  Original Draft: [TEXT]
 
165
 
166
  ### Decay vs Scratch
167
 
 
10
 
11
  ##### continue
12
 
13
+ ```text
14
  Continue the following text in the same style as the original. Start with the continuation directly.
15
  Text:
16
  [TEXT]
17
+ ```
18
+
19
  ##### summarize
20
 
21
+ ```text
22
  Summarize the following text. Write a standalone summary without referencing the text. Directly start with the summary. Do not say anything else.
23
  Text:
24
  [TEXT]
25
  Summary:
26
+ ```
27
+
28
  #### Format
29
 
30
  ##### article
31
 
32
+ ```text
33
  Transform the document into a magazine-style feature article. Open with an engaging lead, then blend narrative storytelling with factual explanation. Maintain an accessible yet polished tone suitable for a general but informed readership. Output only the feature article, nothing else.
34
  Document:
35
  [TEXT]
36
+ ```
37
+
38
  ##### commentary
39
 
40
+ ```text
41
  Summarize the document in a concise paragraph that captures its central arguments or findings. Then, write an expert commentary that critically reflects on its implications, limitations, or broader context. Maintain an analytical and professional tone throughout. Output only the summary and the commentary, nothing else.
42
  Document:
43
  [TEXT]
44
+ ```
45
+
46
  ##### discussion
47
 
48
+ ```text
49
  Reformulate the document as a dialogue between a teacher and a student. The teacher should guide the student toward understanding the key points while clarifying complex concepts. Keep the exchange natural, informative, and faithful to the original content. Output only the dialogue, nothing else.
50
  Document:
51
  [TEXT]
52
+ ```
53
+
54
  ##### faq
55
 
56
+ ```text
57
  Rewrite the document as a comprehensive FAQ (Frequently Asked Questions). Extract or infer the key questions a reader would have about this topic, then provide clear, direct answers. Order questions logically—from foundational to advanced, or by topic area. Each answer should be self-contained and understandable without reference to other answers. Ensure the FAQ works as a standalone document. Output only the FAQ, nothing else.
58
  Document:
59
  [TEXT]
60
+ ```
61
+
62
  ##### math
63
 
64
+ ```text
65
  Rewrite the document to create a mathematical word problem based on the numerical data or relationships in the text. Provide a step-by-step solution that shows the calculation process clearly. Create a problem that requires multi-step reasoning and basic arithmetic operations. It should include the question followed by a detailed solution showing each calculation step. Output only the problem and solution, nothing else.
66
  Document:
67
  [TEXT]
68
+ ```
69
+
70
  ##### table
71
 
72
+ ```text
73
  Rewrite the document as a structured table that organizes the key information, then generate one question-answer pair based on the table. First extract the main data points and organize them into a clear table format with appropriate headers using markdown table syntax with proper alignment. After the table, generate one insightful question that can be answered using the table data. Provide a clear, concise answer to the question based on the information in the table. Output only the table followed by the question-answer pair, nothing else.
74
  Document:
75
  [TEXT]
76
+ ```
77
+
78
  ##### tutorial
79
 
80
+ ```text
81
  Rewrite the document as a clear, step-by-step tutorial or instructional guide. Use numbered steps or bullet points where appropriate to enhance clarity. Preserve all essential information while ensuring the style feels didactic and easy to follow. Output only the tutorial, nothing else.
82
  Document:
83
  [TEXT]
84
+ ```
85
+
86
  #### Nemotron
87
 
88
  ##### distill
89
 
90
+ ```text
91
  Your task is to read and paraphrase the provided text following these instructions:
92
  - Aim to create a condensed but accurate and informative version of the original text, not a simplistic summary.
93
  - Capture and preserve the crucial information, key concepts, important values, and factual details in the original text, while making it more readable and accessible.
 
100
  [TEXT]
101
  Task:
102
  After thoroughly reading the above text, paraphrase it in high-quality and clear English following the instructions.
103
+ ```
104
+
105
  ##### diverse_qa_pairs
106
 
107
+ ```text
108
  Task: Read the text, ask questions and answer them.
109
  Follow these instructions:
110
  1. Ask diverse questions that require different cognitive skills or cover different aspects of the text.
 
130
  - Question: [second question] Answer: [second answer]
131
 
132
  ....
133
+ ```
134
+
135
  ##### extract_knowledge
136
 
137
+ ```text
138
  Your task is to rewrite knowledge from the provided text following these instructions:
139
  - Rewrite the text as a passage or passages using easy-to-understand and high-quality English like sentences in textbooks and Wikipedia.
140
  - Focus on content in disciplines such as humanities, social sciences, natural sciences, technology, engineering, math, law and legal, business, management, art, education, agricultural sciences, politics, and history.
 
148
  [TEXT]
149
  Task:
150
  Rewrite facts and knowledge from the above text as a passage or passages following the instructions.
151
+ ```
152
+
153
  ##### knowledge_list
154
 
155
+ ```text
156
  Review the text and extract the key information. Follow these instructions:
157
  - Carefully read the above text and provide a concise and organized list of factual information, concrete details, key concepts, and important numbers and statistics extracted from the text.
158
  - Ensure each point is clear, specific, and supported by the original text.
 
163
  [TEXT]
164
  Task:
165
  Extract the factual information, concrete details, and key concepts from the above text following the instructions.
166
+ ```
167
+
168
  ##### wikipedia_style_rephrasing
169
 
170
+ ```text
171
  For the following paragraph give me a diverse paraphrase of the same in high quality English language as in sentences on Wikipedia. Begin your answer on a separate line with "Here is a paraphrased version:".
172
  Text:
173
  [TEXT]
174
+ ```
175
+
176
  #### REWIRE
177
 
178
  ##### guided_rewrite_improved
179
 
180
+ ```text
181
  Below is a draft from an AI Assistant when trying to accomplish a task or solve a problem. Analyze and understand the task and problem(s) to be solved. Then pretend to be the expert who is most skillful to accomplish this task, and use detailed thinking and internal reasoning to identify a strategy and develop a plan about how to solve this problem. Experts usually apply meta-reasoning and planning to reason about how to best accomplish the task before jumping to a solution.
182
  Deliberate meta-reasoning also involves reflection which can help identify issues and take a step back to explore other paths. Below are some generic examples of starting questions experts could ask themselves during the meta-reasoning process. The expert will come up with the most relevant questions that can help with their thinking process, which are also very specific to the task.
183
  Consider these questions during your internal reasoning process:
 
192
  IMPORTANT: Your output must be ONLY the actual rewritten content itself - nothing else. Do NOT include any analysis, commentary, description, summary, or explanation about the improvements made. Do NOT add any meta-commentary like "This version improves..." or similar statements. Do NOT reference "the original draft" or "the draft" in your output. Output ONLY the content as if it were the final published piece that readers would see, with absolutely no additional text before or after it.
193
  Original Draft:
194
  [TEXT]
195
+ ```
196
+
197
  ##### guided_rewrite_original
198
 
199
+ ```text
200
  Below is a draft from an AI Assistant when trying to accomplish task or solving a problem. Analyze and understand the task and problem(s) to be solved. Then pretend to be the expert who is most skillful to acomplish this task, write down the detailed thinking process and internal monologue that went into identifying a strategy and lay out a plan about how to solve this problem. Experts usually apply meta-reasoning and planning to reason about how to best accomplish the task before jumping to solution.
201
  Deliberate meta-reasoning also involves reflection which can help identify issues and take a step back to explore other paths. Below are some generic examples of starting questions experts could ask themselves during meta-reasoning process. The expert will come up with the most relevant questions that can help with their thinking process, which are also very specific to the task.
202
  Let's first try to understand the task and exactly what problem(s) to be solved. What is the core issue or problem that needs to be addressed? What are the key assumptions underlying this problem?
 
208
  Finally, write an improved response after thinking about how to accomplish the task. Take information and details from the original draft whenever they are useful. Therefore, the improved response should not be shorter than the original response. The improved response should have better formatting and readability, with more coherent and in-depth reasoning, while removing any noise or digression. Note that the best experts chosen to answer each prompt may be different, so please make sure the you do not sound like the same expert for all tasks.
209
  IMPORTANT: Start your analysis and thinking right away. DO NOT add any filler text, explanations or notes about your response. Put the thinking and planning between {'<'}thinking starts{'>'} and {'<'}thinking ends{'>'}, and the improved response between {'<'}improved response starts{'>'} and {'<'}improved response ends{'>'}.
210
  Original Draft: [TEXT]
211
+ ```
212
 
213
  ### Decay vs Scratch
214