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
Copy file name to clipboardExpand all lines: graphgen/templates/generation/atomic_generation.py
+28-12Lines changed: 28 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,44 @@
1
1
# pylint: disable=C0301
2
2
TEMPLATE_EN: str="""You are given a text passage. Your task is to generate a question and answer (QA) pair based on the content of that text.
3
-
The answer should be accurate and directly derived from the text. Make sure the QA pair is relevant to the main theme or important details of the given text.
4
-
For example:
5
-
Question: What is the effect of overexpressing the BG1 gene on grain size and development?
6
-
Answer: Overexpression of the BG1 gene leads to significantly increased grain size, demonstrating its role in grain development.
7
3
8
-
Question: What role does TAC4 play in the gravitropism of rice shoots?
9
-
Answer: TAC4 is a key regulator of gravitropism in rice shoots, promoting the bending of shoots towards the gravity vector.
4
+
Please note the following requirements:
5
+
1. Output only one QA pair without any additional explanations or analysis.
6
+
2. Do not repeat the content of the answer or any part of it.
7
+
3. The answer should be accurate and directly derived from the text. Make sure the QA pair is relevant to the main theme or important details of the given text.
8
+
9
+
Output format:
10
+
<question>question_text</question>
11
+
<answer>answer_text</answer>
12
+
13
+
For example:
14
+
<question>What is the effect of overexpressing the BG1 gene on grain size and development?</question>
15
+
<answer>Overexpression of the BG1 gene leads to significantly increased grain size, demonstrating its role in grain development.</answer>
10
16
11
17
Here is the text passage you need to generate a QA pair for:
0 commit comments