Spaces:
Running
Running
File size: 1,548 Bytes
799ac7c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# pylint: disable=C0301
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.
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.
For example:
Question: What is the effect of overexpressing the BG1 gene on grain size and development?
Answer: Overexpression of the BG1 gene leads to significantly increased grain size, demonstrating its role in grain development.
Question: What role does TAC4 play in the gravitropism of rice shoots?
Answer: TAC4 is a key regulator of gravitropism in rice shoots, promoting the bending of shoots towards the gravity vector.
Here is the text passage you need to generate a QA pair for:
{context}
"""
TEMPLATE_ZH: str = """给定一个文本段落。你的任务是根据该文本的内容生成一个问答(QA)对。
答案应准确且直接从文本中得出。确保QA对与给定文本的主题或重要细节相关。
例如:
问题:过表达BG1基因对谷粒大小和发育有什么影响?
答案:BG1基因的过表达显著增加了谷粒大小,表明其在谷物发育中的作用。
问题:TAC4在水稻茎的重力性状中扮演什么角色?
答案:TAC4是水稻茎重力性状的关键调节因子,促进茎向重力矢量弯曲。
以下是你需要为其生成QA对的文本段落:
{context}
"""
ATOMIC_GENERATION_PROMPT = {
"en": TEMPLATE_EN,
"zh": TEMPLATE_ZH,
}
|