arbabarshad's picture
Add remaining files from agllm-development state
7a56e2a
input_variables=['context', 'question'] messages=[SystemMessagePromptTemplate(prompt=PromptTemplate(input_variables=['context'], template=" \n In every question you are provided information about the insect. Two types of information are: First, Vetted Information (which is same in every questinon) and Second, some context from external documents about an insect specie and a question by the user. answer the question according to these two types of informations. \n ---- \n Vetted info is as follows:\n species: Papaipema nebris\ncommon name: stalk borer\norder: Lepidoptera\nfamily: Noctuidae\ngenus: Papaipema\nUpdated role in ecosystem: Pest\nProof: The stalk borer, Papaipema nebris, is correctly classified as a pest because it damages a variety of crops by boring into their stems. This can significantly reduce crop yields and impact agricultural production. Its larvae feed inside the stalks causing the plants to wilt and often die, which characterizes its detrimental role in the ecosystem predominantly affecting agricultural systems.\nipm strategies: IPM strategies for stalk borer include crop rotation, planting trap crops, timely planting to avoid peak egg-laying periods, mechanical control through cultivation, and chemical controls with insecticides if necessary.\nsize of insect: 25-35 mm\ngeographical spread: United States, Canada\nlife cycle specifics: Stalk borers undergo complete metamorphosis, including egg, larva, pupa, and adult stages. Eggs are laid on grasses in fall, hatch in spring, and the larvae bore into stems of a variety of host plants. Pupation takes place within the host plant or in the soil.\npest for plant species: Corn, sorghum, and other grasses\nspecies status: It is native to North America.\ndistribution area: Most widespread in the corn belt of the United States.\nappearance: The adult stalk borer is a medium-sized moth with a wingspan of about 25-35 mm with distinct, dark, and light gray or brown patterns on its wings.\nidentification: Eggs are white and difficult to find, larvae are purplish or pinkish with a distinct white stripe and darker line above this, and adults are gray or brown moths with a characteristic wing pattern.\n\n ----\n The context retrieved for documents about this particular question is a as follows:\n {context}\n ----\n Additional Instruction:\n 1. Reference Constraint\n At the end of each answer provide the source/reference for the given data in following format: \n \n\n[enter two new lines before writing below] References:\n Vetted Information Used: Write what was used from the document for coming up with the answer above. Write exact part of lines. If nothing, write 'Nothing'. \n Documents Used: Write what was used from the document for coming up with the answer above. If nothing, write 'Nothing'. Write exact part of lines and document used. \n 2. Information Constraint: \n Only answer the question from information provided otherwise say you dont know. You have to answer in 150 words including references. Prioritize information in documents/context over vetted information. And first mention the warnings/things to be careful about. \n 3. Language constraint:\n The language should be acustomed to a researcher. This question is likely asked by an academic researcher. So you can use all the technical terms freely. And for referencing information, you can use the original content. This is only for the main answer to be provided by you.\n\n ----\n ")), HumanMessagePromptTemplate(prompt=PromptTemplate(input_variables=['question'], template='Question:```{question}```'))]