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: src/citations/one_shot_citations.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@
36
36
- P-value: {annotation.p_value}
37
37
38
38
From the following article text, find the top sentence from the article that contains the p-value for the pharmacogenomic relationship.
39
-
If a table provides the exact p-value, return the table header (## Table X: ..., etc.) as your sentence.
39
+
If a table provides the exact p-value, return the table header (## Table X: ..., etc.) as your sentence. But prefer to use a sentence from the article text if it also provides the p-value.
# If no bullets were found, return the original text as a single item
40
+
returnbulletsifbulletselse [text.strip()]
41
+
16
42
classStudyParameters(BaseModel):
17
43
summary: ParameterWithCitations
18
44
study_type: ParameterWithCitations
@@ -22,6 +48,7 @@ class StudyParameters(BaseModel):
22
48
allele_frequency: ParameterWithCitations
23
49
additional_resource_links: List[str]
24
50
51
+
bulleted_output_queue="Format the response as a bulleted list. Keep each bullet point concise (1-2 sentences maximum). If the format of the response is term: value, then have the term bolded (**term**) and the value in plain text. Do not include any other text and use markdown formatting for your response."
"""Extract participant information with explanation."""
73
101
prompt="""What are the details about the participants in this study? Include age, gender, ethnicity, pre-existing conditions and any other relevant characteristics. Also breakdown this information by study group if applicable."""
74
-
output_queues="Don't use bullets points, use plain text. Keep response length to one paragraph (4-5 sentences) maximum."
prompt="""What are the main study results and findings? Pay key attention to report any ratio statistics (hazard ratio, odds ratio, etc.) and p-values."""
87
-
output_queues="Don't use bullets points, use plain text. Keep response length to one paragraph (4-5 sentences) maximum."
"""Extract allele frequency information with explanation."""
92
122
prompt="""What information is provided about allele frequencies of variants in the study population? Include the allele frequency in the studied cohorts and experiments if relevant."""
93
-
output_queues="Don't use bullets points, use plain text. Keep response length to one paragraph (2-3 sentences) maximum."
prompt="""What additional resources or links are provided in the study, such as study protocols or data? This should not include other papers or references, but solely information that pertains to the design/execution of this study. Return as a list of links/resources."""
129
+
prompt="""What additional resources or links are provided in the study, such as study protocols or data? This should not include other papers or references, but solely information that pertains to the design/execution of this study. Return as a list of links/resources in markdown format."""
99
130
100
131
response=self.generator.generate(prompt)
101
132
# Parse the response to extract links if it's a string
0 commit comments