TEMPLATE_v3 = '''We now have a following in the medical field: """ {} """ You are an expert in biomedical research. You are asked to answer the following s based on the , the s and their s and s are as follows: - "Question 1": - "question": "What is the of this study?" - "instruction": "This task is to find the according to the ." - "definition": - "animal type": "The rodent type used in the article" - "rule": " of should be one of the two choices {{mice/rats}} or both" - "Question 2": - "question": "What is the of this study?" - "instruction": "This task is to find the according to the ." - "definition": - "exposure age": "The age when the animals were exposed to anesthetics. There are two kinds of : and " - "postnatal day": " means the days after the animals were born. For example, 'postnatal day ' means the animals were born for day. 'postnatal day ' is sometimes shortened to 'PND ' or 'pnd ', which still means 'postnatal day ', after birth. 'postnatal day ' is sometimes shortened to 'p', which still means 'postnatal day ', after birth" - "gestational day": " means the days after the animals were pregnant. For example, 'gestational day ' means the animals were pregnant for day. 'gestational day ' is sometimes abbreviated as 'E ', 'E' meaning before birth" - "rule": " of should be expressed as one of {{'postnatal day '/'gestational day '}}. For Example: "postnatal day 7", "Gestational day 21" - "Question 3": - "question": "Is there any done in this study?" - "instruction": "This task is to find whether there are any in the study according to the ." - "definition": - "behavior test": "If there are any of the described and done in the article, which mentioned as: 'Open field test', 'Morris water task', 'fear conditioning test', 'Dark/light avoidance'; 'passive/active avoidance test'; 'elevated maze', 'Forced swim test', 'Object recognition test', 'Social interaction/preference'." - "rule": " to should be one of the two choices {{Yes/No}}." - "Question 4": - "question": "What's the s of this study? - "instruction": "This task is to find the s according to the ." - "definition": - "intervention": "The s are anesthetic drugs, which in one of {{"isoflurane"/"sevoflurane"/"desflurane"/"ketamine"/"propofol"/"Midazolam"/"Nitrous oxide“}}." - "rule": "There are one or two s in the . Please find them all and answer the . If there is only one , the second one is 'None'." - "Question 5": - "question": "What's the of this study?" - "instruction": "This task is to find the according to the ." - "definition": - "genetic chain": "The is the genetic type of the animals being used in the article." - "rule": "Please do as the following examples: 'C57BL/6', 'C57BL/6J' should be extracted as 'C57BL/6'; 'Sprague Dawley', 'Sprague-Dawley', 'SD' should be extracted as 'Sprague Dawley'; 'CD-1' should be extracted as 'CD-1'; 'Wistar/ST' should be extracted as 'Wistar/ST'; 'Wistar' should be extracted as 'Wistar'; 'FMR-1 KO' should be extracted as 'FMR-1 KO'." Here is the instrucrtions for all the s: 1. Please select the related the "behavior tests" from the for each . 2. Please use the to answer the by following the and accroding to the . 3. Please provide coming from the . 4. Output the in the following JSON format: {{ "Question 1": {{ "answer": "{{mice/rats/both}}", "original sentences": [] }}, "Question 2": {{ "answer": "{{postnatal day /gestational day }}", "original sentences": [] }}, "Question 3": {{ "answer": "{{Yes/No}}", "original sentences": [] }}, "Question 4": {{ {{intervention 1}}: {{ "answer": "{{intervention 1}}", "original sentences": [] }} {{intervention 2}}: {{ "answer": "{{intervention 2}}", "original sentences": [] }} }}, "Question 5": {{ "answer": "{{genetic chain}}", "original sentences": [] }} }} ''' TEMPLATE_v2 = '''We now have a following in the medical field: """ {} """ We have some introduction here: 1. DOI: The DOI link for the article, usually can be found in the first line of the .txt file for the article. E.g., “DOI: 10.3892/mmr.2019.10397”. 2. Citation ID: The number in the file name. E.g., “1134”. 3. First author: The last name in the file name. E.g., “Guan”. 4. Year: The year in the file name. E.g., “2019”. 5. Animal type: The rodent type used in the article, should be one of the choices: mice, rats. E.g., “rats”. 6. Exposure age: The age when the animals were exposed to anesthetics, should be mentioned as "PND1", "PND7","postnatal day 7", "Gestational day 21", etc, which should be extract as: 'PND XX' , 'Gestational day xx'. E.g., “PND7”. 7. Behavior test: Whether there is any behavior test in the article, should be one of the choices: "Y", "N". "Y" is chosen if there are any of the behavior tests described and done in the article, which mentioned as: "Open field test", "Morris water task", "fear conditioning test", "Dark/light avoidance"; "passive/active avoidance test"; "elevated maze", "Forced swim test", "Object recognition test", "Social interaction/preference“. E.g., “N”. 8. Intervention 1 & Intervention 2: Intervention 1 and Intervention 2 are both anesthetic drugs, which listed as: "isoflurane", "sevoflurane", "desflurane", "ketamine", "propofol", "Midazolam", "Nitrous oxide“. If none, put “NA”. E.g., “propofol”. 9. Genetic chain: Genetic chain is the genetic type of the animals being used in the article, here is the examples: "C57BL/6", "C57BL/6J" should be extracted as "C57BL/6"; "Sprague Dawley", "Sprague-Dawley", "SD" should be extracted as "Sprague Dawley"; "CD-1" should be extracted as "CD-1"; "Wistar/ST" should be extracted as "Wistar/ST"; "Wistar" should be extracted as "Wistar"; "FMR-1 KO" should be extracted as "FMR-1 KO“. E.g., “Sprague Dawley”. We have some s begin with "Question" here: """ {} """ Please finish the following task: 1. Please select the related the each from the . 2. Please use the to answer the . 3. Please provide coming from the . 4. Output the in the following json format: {{ "Question 1": {{ "question": {{}}, "answer": {{}}, "original sentences": [] }}, "Question 2": {{ "question": {{}}, "answer": {{}}, "original sentences": [] }}, ... }} ''' TEMPLATE_v1 = '''We now have a following in the medical field: """ {} """ We have some s begin with "Question" here: """ {} """ Please finish the following task: 1. Please select the related the each from the . 2. Please use the to answer the . 3. Please provide coming from the . 4. Output the in the following json format: {{ "Question 1": {{ "question": {{}}, "answer": {{}}, "original sentences": [] }}, "Question 2": {{ "question": {{}}, "answer": {{}}, "original sentences": [] }}, ... }} ''' QUESTIONS = [ "What is the DOI of this study?", "What is the Citation ID of this study?", "What is the First author of this study?", "What is the year of this study?", "What is the animal type of this study?", "What is the exposure age of this study?", "Is there any behavior test done in this study?", "What's the Intervention 1's name of this study?(anesthetics only)", "What's the Intervention 2's name of this study?(anesthetics only)", "What's the genetic chain of this study?", "Input question", ] QUESTIONS = [ f'Question {id_ +1 }: {q}' for id_, q in enumerate(QUESTIONS) if 'Input question' not in q] QUESTIONS = '\n'.join(QUESTIONS)