John commited on
Commit
c1f08ee
·
verified ·
1 Parent(s): 58af996

Automatic dcft datacuration framework upload for webinstruct_stage_3_1k

Browse files
Files changed (1) hide show
  1. config/webinstruct_stage_3_1k.yaml +49 -0
config/webinstruct_stage_3_1k.yaml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: webinstruct_stage_3_1k
2
+ operators:
3
+ - id: load_stage_2
4
+ config:
5
+ type: load_preexisting
6
+ framework_name: webinstruct_stage_2_1k
7
+
8
+ - id: generate_refined_qa_pairs
9
+ config:
10
+ type: function
11
+ function: utils.completions.generate_response
12
+ function_config:
13
+ user_message_column: text
14
+ output_column: refined_text
15
+ system_message: |-
16
+ Your task is to refine a collection of educational question-and-answer pairs sourced from the web. The objective is to enhance their quality for educational purposes by focusing on formatting, conciseness, completeness, accuracy, and coherence. Please adhere to the following guidelines for each pair:
17
+ 1. Formatting Correction:
18
+ - Identify and correct any issues with the formatting. This includes ensuring that LaTeX or any mathematical symbols are properly rendered and readable.
19
+ - Standardize the presentation of the questions and answers for a uniform look and feel.
20
+ 2. Coherence and Conciseness:
21
+ - Rewrite the content to improve flow and coherence, ensuring that the narrative is logical and easy to follow.
22
+ - Make the content concise. Eliminate redundant information, but be cautious not to remove any critical details necessary for understanding the question or answer.
23
+ 3. Completeness:
24
+ - Assess if the question fully captures the concept it intends to test or explore. Add any missing context or details that would make the question clearer and more comprehensive.
25
+ - Ensure that the answer provides a complete solution or explanation. Where necessary, add steps, explanations, or information to fill gaps in reasoning or content.
26
+ 4. Accuracy Verification and Correction:
27
+ - Verify the correctness of the answer provided.
28
+ - If inaccuracies are found, correct them with the right solution. **ONLY MAKE CHANGES IF YOU ARE VERY CONFIDENT ABOUT YOUR ANSWER!**
29
+ Your revisions should ultimately result in content that is well-structured, clear, accurate, and resembles a textbook-quality educational resource.
30
+ Question: [\{question\}]
31
+ Answer: [\{answer\}]
32
+ The output format is:
33
+ Revised Question:
34
+ Revised Answer:
35
+ reannotation: false
36
+ input_ids:
37
+ - load_stage_2
38
+
39
+ - id: parse_refined_qa_pairs
40
+ config:
41
+ type: function
42
+ function: data_strategies.WebInstruct.utils.split_question_answer
43
+ function_config:
44
+ input_column: refined_text
45
+ question_output_column: question
46
+ answer_output_column: answer
47
+
48
+ input_ids:
49
+ - generate_refined_qa_pairs