File size: 16,809 Bytes
fb4710e 862259b fb4710e 862259b 933172b 862259b 933172b fb4710e 862259b fb4710e |
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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
prompt_entity_gsd_chunk = """
# CONTEXT #
In my capacity as a genomics specialist, I have recently completed the review of a scholarly publication. I am interested in extracting specific genomic information, or entities, from the body of the paper.
To facilitate this process, I have constructed a predefined schema that outlines the desired entities and their corresponding description.
This is the schema provided:
{{
"Genes" : {{
"type" : "list of strings",
"description" : "All relevant genes mentioned in the text. Gene names can only contain uppercase letters and digits."
}},
"SNPs" : {{
"type" : "list of strings",
"description" : "Unique identifier associated with each value in Genes schema. These identifiers typically begin with 'rs' and appear near the gene name in the text."
}},
"Diseases" : {{
"type" : "list of strings",
"description" : "Type of diseases that related to each value in Genes, typically appear near the gene name in the text."
}}
}}
Note that the values within each list of Genes, SNPs, and Diseases columns correspond directly to each other. Consequently, the lengths of these lists must be identical.
This is a passage from the paper: {docs}
# OBJECTIVE #
Given a predefined schema outlining relevant entities, meticulously extract these entities from the provided text passage. Exercise caution when handling the reference section of the document, abstain from extracting information from this section.
IMPORTANT: It is crucial to maintain the utmost accuracy in this process, as any false or fabricated information (hallucination) can have severe consequences for academic integrity and research credibility. If an entity is entirely absent from the passage, just leave the corresponding field blank with an empty string ('').
# RESPONSE #
The extracted information will be utilizing the JSON format. Information within strings will be demarcated by double quotes (" "), while quotes contained within strings will be denoted by single quotes (' '). List data will be enclosed within square brackets ([]).
This is the example of the respose:
{{
"Genes": ["A", "B", "C"],
"SNPs": ["rs1", "rs2", "rs3"],
"Diseases": ["X", "Y", "Z"]
}}
If there is no specific extracted entities, just leave the corresponding field blank with an empty lists ([]).
"""
prompt_entity_gsd_combine = """
# CONTEXT #
In my role as a genomics specialist, I have extracted specific entities from a scholarly publication. These entities were identified and retrieved from various sections throughout the document. My current objective is to consolidate this extracted information into a concise summary, facilitating a comprehensive understanding of the publication's key findings.
To achieve this, I have constructed a predefined schema that outlines the desired entities and the methods for their summarization.
{{
"Genes" : {{
"type" : "list of strings",
"description" : "Identify the most relevant gene from the compiled gene list across all sections."
}},
"SNPs" : {{
"type" : "list of strings",
"description" : "Upon completion of the gene combination process, associate each resulting value with its unique identifier."
}},
"Diseases" : {{
"type" : "list of strings",
"description" : "Upon completion of the gene combination process, associate each resulting value with its diseases."
}}
}}
This is a set of summaries: {doc_summaries}
If there is no extracted entities, just leave the corresponding result with an empty list ([]) later.
# OBJECTIVE #
In the context of a predefined schema that specifies entities and their corresponding operations, construct a comprehensive synopsis that incorporates all critical details gleaned from each section.
IMPORTANT: It is crucial to maintain the utmost accuracy in this process, as any false or fabricated information (hallucination) can have severe consequences for academic integrity and research credibility.
# RESPONSE #
The extracted information will be utilizing the JSON format. Information within strings will be demarcated by double quotes (" "), while quotes contained within strings will be denoted by single quotes (' '). List data will be enclosed within square brackets ([]).
This is the example of the respose:
{{
"Genes": ["A", "B", "C"],
"SNPs": ["rs1", "rs2", "rs3"],
"Diseases": ["X", "Y", "Z"]
}}
"""
prompt_entity_summ_chunk = """
# CONTEXT #
In my capacity as a genomics specialist, I have recently completed the review of a scholarly publication. I am interested in extracting the summary from the body of the paper.
This is a passage from the paper: {docs}
# OBJECTIVE #
Extract the summary or the conclusion from the provided text passage. Exercise caution when handling the reference section of the document, abstain from extracting information from this section.
IMPORTANT: It is crucial to maintain the utmost accuracy in this process, as any false or fabricated information (hallucination) can have severe consequences for academic integrity and research credibility.
# RESPONSE #
Provide the information in a concise way, using four concise paragraphs. The text should be presented in a continuous format, omitting introductory elements like numbers or titles within each paragraph.
1. Overview. Explanation of the provided documents and their exploration of the genetic underpinnings of the disease, and understanding of genetic factors in disease pathology.
2. Main Themes. Identification of genetic variants and mutations contributing to disease susceptibility. Role of specific genes and genetic pathways in disease development and progression.
3. Key Genetic Factors and Their Implications. Highlighting specific genes or genetic variants associated with the disease. Discussion of how these genetic factors may influence disease susceptibility, severity, or treatment response.
4. Conclusion. Recap of the key findings regarding genetic factors and disease mechanisms. Suggestions for future research directions or clinical applications based on the insights gained from genetic analysis.
"""
prompt_entity_summ_combine = """
# CONTEXT #
In my role as a genomics specialist, I have extracted some summaries from a scholarly publication. These summaries were identified and retrieved from various sections throughout the document.
My current objective is to consolidate this extracted information into a concise summary, facilitating a comprehensive understanding of the publication's key findings.
This is a set of summaries: {doc_summaries}
# OBJECTIVE #
Construct a comprehensive synopsis that incorporates all critical details gleaned from the summaries of each section.
IMPORTANT: It is crucial to maintain the utmost accuracy in this process, as any false or fabricated information (hallucination) can have severe consequences for academic integrity and research credibility.
# RESPONSE #
Provide the information in a concise way, using four concise paragraphs. The text should be presented in a continuous format, omitting introductory elements like numbers or titles within each paragraph..
1. Overview. Explanation of the provided documents and their exploration of the genetic underpinnings of the disease, and understanding of genetic factors in disease pathology.
2. Main Themes. Identification of genetic variants and mutations contributing to disease susceptibility. Role of specific genes and genetic pathways in disease development and progression.
3. Key Genetic Factors and Their Implications. Highlighting specific genes or genetic variants associated with the disease. Discussion of how these genetic factors may influence disease susceptibility, severity, or treatment response.
4. Conclusion. Recap of the key findings regarding genetic factors and disease mechanisms. Suggestions for future research directions or clinical applications based on the insights gained from genetic analysis.
"""
prompt_entities_chunk = """
# CONTEXT #
In my capacity as a genomics specialist, I have recently completed the review of a scholarly publication. I am interested in extracting specific genomic information, or entities, from the body of the paper.
To facilitate this process, I have constructed a predefined schema that outlines the desired entities and their corresponding description.
This is the schema provided:
{{
"Population" : {{
"type" : "string",
"description" : "Population / race used by the author in the given text."
}},
"Sample Size" : {{
"type" : "string",
"description" : "Sample size of the population used in the research that mentioned in the paper."
}},
"Study Methodology" : {{
"type" : "string",
"description" : "Study methodology mentioned in the text."
}},
"Study Level" : {{
"type" : "string",
"description" : "Study level mentioned in the text."
}}
}}
This is a passage from the paper: {docs}
# OBJECTIVE #
Given a predefined schema outlining relevant entities, meticulously extract these entities from the provided text passage. Exercise caution when handling the reference section of the document, abstain from extracting information from this section.
IMPORTANT: It is crucial to maintain the utmost accuracy in this process, as any false or fabricated information (hallucination) can have severe consequences for academic integrity and research credibility. If an entity is entirely absent from the passage, just leave the corresponding field blank with an empty string ('').
# RESPONSE #
The extracted information will be utilizing the JSON format. Information within strings will be demarcated by double quotes (" "), while quotes contained within strings will be denoted by single quotes (' ').
This is the example of the respose:
{{
"Population": "South Asian",
"Sample Size": "403 Relatively Small",
"Study Methodology": "Double-Blind Randomized Controlled Trial",
"Study Level": "Postdoctoral"
}}
If there is no specific extracted entities, just leave the corresponding field blank with an empty string ("").
"""
prompt_entities_combine = """
# CONTEXT #
In my role as a genomics specialist, I have extracted some summaries from a scholarly publication. These summaries were identified and retrieved from various sections throughout the document. My current objective is to consolidate this extracted information into a concise summary, facilitating a comprehensive understanding of the publication's key findings.
This is a set of summaries: {doc_summaries}
If there is no extracted entities, just leave the corresponding result with an empty string ("") later.
# OBJECTIVE #
Construct a comprehensive synopsis that incorporates all critical details gleaned from the summaries of each section.
IMPORTANT: It is crucial to maintain the utmost accuracy in this process, as any false or fabricated information (hallucination) can have severe consequences for academic integrity and research credibility.
# RESPONSE #
The extracted information will be utilizing the JSON format. Information within strings will be demarcated by double quotes (" "), while quotes contained within strings will be denoted by single quotes (' ').
This is the example of the respose:
{{
"Population": "South Asian",
"Sample Size": "403 Relatively Small",
"Study Methodology": "Double-Blind Randomized Controlled Trial",
"Study Level": "Postdoctoral"
}}
"""
prompt_entity_one_chunk = """
# CONTEXT #
In my capacity as a genomics specialist, I have recently completed the review of a scholarly publication. I am interested in extracting specific genomic information, or entities, from the body of the paper. To facilitate this process, I have constructed a predefined schema that outlines the desired entities and their corresponding description.
This is the schema provided:
{{
"Title" : {{
"type" : "string",
"description" : "Title of the given text."
}},
"Authors" : {{
"type" : "string",
"description" : "Authors / writers of the given text. To maintain readability, consider only the first 10 author names, ensuring the other key informations and response format are clear."
}},
"Publisher Name" : {{
"type" : "string",
"description" : "Publisher name of the given text."
}},
"Publication Year" : {{
"type" : "string",
"description" : "The year when the given text published."
}},
}}
This is a passage from the paper: {}
# OBJECTIVE #
Given a predefined schema outlining relevant entities, meticulously extract these entities from the provided text passage.
IMPORTANT: It is crucial to maintain the utmost accuracy in this process, as any false or fabricated information (hallucination) can have severe consequences for academic integrity and research credibility. If an entity is entirely absent from the passage, just leave the corresponding field blank with an empty string ('').
# RESPONSE #
The extracted information will be utilizing the JSON format. Information within strings will be demarcated by double quotes (" "), while quotes contained within strings will be denoted by single quotes (' ').
This is the example of the respose:
{{
"Title": "Lorem Ipsum",
"Authors": "John Doe, Jane Doe, Alias",
"Publisher Name": "Journal of Internal Medicine",
"Publication Year": "2024"
}}
If there is no specific extracted entities, just leave the corresponding field blank with an empty string ("").
"""
prompt_table = """
# CONTEXT #
In my capacity as a genomics specialist, I have table data obtained from a published research paper in the field of genomics. The data is provided in a list of JSONs format, with each JSON object representing a single row in a tabular structure. The first JSON element in the list represents the header row of the table, containing the names of each column.
This is the data:
{}
# OBJECTIVE #
Given the provided table data, the following tasks need to be completed:
1. Identify all unique gene names present within the table. Each row can contains more than one gene name.
2. If present, extract any entries starting with "rs" (presumably representing Single Nucleotide Polymorphisms or rsIDs) that correspond to the same row as their associated gene names. Each gene name can correspond with more than one SNPs.
3. If available, extract any disease information associated with both the gene name and its corresponding SNP/rsID.
It is crucial to maintain the utmost accuracy in this process, as any false or fabricated information (hallucination) can have severe consequences for academic integrity and research credibility.
If an SNPs or Diseases is absent from the table, leave the corresponding field blank with an empty string ('').
# RESPONSE #
The output should only be a string containing list of JSON objects, each representing an entry with the following structure:
[
{{
"Genes": "A",
"SNPs": ["rs123", "rs456"],
"Diseases": "A disease"
}}
]
If there is no specific extracted entities provided from the table, just leave the response with an empty lists ([]).
"""
prompt_validation = """
# CONTEXT #
In my capacity as a genomics specialist, I have table data containing gene names with their corresponding SNPs and diseases. The data is provided in a list of JSON format, with each JSON object representing a single row in a tabular structure.
The problem is because the data is extracted using OCR, some gene names and SNPs may have a typo.
This is the data:
{}
# OBJECTIVE #
Given the provided table data, the following tasks need to be completed:
1. Check whether the gene name is the correct gene name. If the gene name is suspected of a typo, fix it into the correct form. If the gene name seems like a mistake entirely or invalid, remove the data row. Common errors include:
- Combined Names: Two gene names erroneously merged into one. Duplicate this data row so each gene name has its own data.
- OCR Errors: Similar characters misread by the system. Correct these to the intended form.
2. If SNP is not empty, check whether the gene name corresponds with the SNP. Fix it with the correct SNP if the original SNP is wrong.
3. If diseases are not empty, check whether the gene name corresponds with the diseases. Fix it with the correct diseases if the original disease is wrong.
# RESPONSE #
The output must be only a string containing a list of JSON objects, adhering to the identical structure present in the original input data. Each object representing a validated entry with the following structure:
[
{{
"Genes": "A",
"SNPs": "rs123",
"Diseases": "A disease"
}}
]
""" |