Patrick Walukagga commited on
Commit
59d3a91
·
1 Parent(s): 2b8d655

Rag changes

Browse files
.gitignore CHANGED
@@ -1,3 +1,4 @@
 
1
  # Byte-compiled / optimized / DLL files
2
  __pycache__/
3
  *.py[cod]
@@ -159,4 +160,14 @@ cython_debug/
159
  # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
160
  # and can be added to the global gitignore or merged into this file. For a more nuclear
161
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
162
- #.idea/
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Python ###
2
  # Byte-compiled / optimized / DLL files
3
  __pycache__/
4
  *.py[cod]
 
160
  # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
161
  # and can be added to the global gitignore or merged into this file. For a more nuclear
162
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
163
+ #.idea/
164
+
165
+ ### Python Patch ###
166
+ # Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
167
+ poetry.toml
168
+
169
+ # ruff
170
+ .ruff_cache/
171
+
172
+ # LSP config files
173
+ pyrightconfig.json
app.py CHANGED
@@ -11,7 +11,13 @@ from utils.prompts import (
11
  evidence_based_prompt,
12
  sample_questions,
13
  )
 
14
 
 
 
 
 
 
15
  rag_cache = {}
16
 
17
 
 
11
  evidence_based_prompt,
12
  sample_questions,
13
  )
14
+ import openai
15
 
16
+ from config import STUDY_FILES, OPENAI_API_KEY
17
+
18
+ openai.api_key = OPENAI_API_KEY
19
+
20
+ # Cache for RAG pipelines
21
  rag_cache = {}
22
 
23
 
config.py CHANGED
@@ -1,5 +1,9 @@
1
  import os
2
 
 
 
 
 
3
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
4
 
5
  STUDY_FILES = {
 
1
  import os
2
 
3
+ from dotenv import load_dotenv
4
+
5
+ load_dotenv()
6
+
7
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
8
 
9
  STUDY_FILES = {
data/ebola_virus_zotero_items.json CHANGED
@@ -11,7 +11,7 @@
11
  "Marco Tuccori"
12
  ],
13
  "doi": "",
14
- "year": null,
15
  "item_type": "journalArticle",
16
  "url": ""
17
  },
@@ -28,7 +28,7 @@
28
  "Sina Bavari"
29
  ],
30
  "doi": "10.1146/annurev-pharmtox-010716-105055",
31
- "year": null,
32
  "item_type": "journalArticle",
33
  "url": "https://www.annualreviews.org/doi/10.1146/annurev-pharmtox-010716-105055"
34
  },
@@ -48,7 +48,7 @@
48
  "Xiangguo Qiu"
49
  ],
50
  "doi": "10.1016/j.molmed.2017.07.002",
51
- "year": null,
52
  "item_type": "journalArticle",
53
  "url": "https://linkinghub.elsevier.com/retrieve/pii/S1471491417301090"
54
  },
@@ -66,7 +66,7 @@
66
  "Robert L. Gottlieb"
67
  ],
68
  "doi": "10.1038/s41577-021-00542-x",
69
- "year": null,
70
  "item_type": "journalArticle",
71
  "url": "https://www.nature.com/articles/s41577-021-00542-x"
72
  },
@@ -85,7 +85,7 @@
85
  "M. P. Grobusch"
86
  ],
87
  "doi": "10.1080/13543784.2016.1240785",
88
- "year": null,
89
  "item_type": "journalArticle",
90
  "url": "https://www.tandfonline.com/doi/full/10.1080/13543784.2016.1240785"
91
  },
@@ -99,7 +99,7 @@
99
  "Luciana Borio"
100
  ],
101
  "doi": "10.1128/microbiolspec.EI10-0014-2016",
102
- "year": null,
103
  "item_type": "journalArticle",
104
  "url": "https://journals.asm.org/doi/10.1128/microbiolspec.EI10-0014-2016"
105
  },
@@ -117,7 +117,7 @@
117
  "Larry Zeitlin"
118
  ],
119
  "doi": "10.3233/HAB-150284",
120
- "year": null,
121
  "item_type": "journalArticle",
122
  "url": "https://www.medra.org/servlet/aliasResolver?alias=iospress&doi=10.3233/HAB-150284"
123
  },
@@ -130,7 +130,7 @@
130
  "Olivier Garraud"
131
  ],
132
  "doi": "10.1016/j.transci.2016.12.014",
133
- "year": null,
134
  "item_type": "journalArticle",
135
  "url": "https://linkinghub.elsevier.com/retrieve/pii/S1473050216302002"
136
  },
@@ -144,7 +144,7 @@
144
  "K Karunamoorthi"
145
  ],
146
  "doi": "",
147
- "year": null,
148
  "item_type": "journalArticle",
149
  "url": ""
150
  },
@@ -162,7 +162,7 @@
162
  "Larry Zeitlin"
163
  ],
164
  "doi": "10.3233/HAB-150284",
165
- "year": null,
166
  "item_type": "journalArticle",
167
  "url": ""
168
  },
@@ -176,7 +176,7 @@
176
  "Aaron A. R. Tobian"
177
  ],
178
  "doi": "10.1111/trf.12913",
179
- "year": null,
180
  "item_type": "journalArticle",
181
  "url": ""
182
  },
@@ -194,7 +194,7 @@
194
  "Robert L. Gottlieb"
195
  ],
196
  "doi": "10.1038/s41577-021-00542-x",
197
- "year": null,
198
  "item_type": "journalArticle",
199
  "url": ""
200
  },
@@ -210,7 +210,7 @@
210
  "Marco Tuccori"
211
  ],
212
  "doi": "10.1128/CMR.00072-20",
213
- "year": null,
214
  "item_type": "journalArticle",
215
  "url": ""
216
  },
@@ -223,7 +223,7 @@
223
  "Olivier Garraud"
224
  ],
225
  "doi": "10.1016/j.transci.2016.12.014",
226
- "year": null,
227
  "item_type": "journalArticle",
228
  "url": ""
229
  },
@@ -237,7 +237,7 @@
237
  "Luciana Borio"
238
  ],
239
  "doi": "10.1128/microbiolspec.EI10-0014-2016",
240
- "year": null,
241
  "item_type": "journalArticle",
242
  "url": ""
243
  },
@@ -257,7 +257,7 @@
257
  "Xiangguo Qiu"
258
  ],
259
  "doi": "10.1016/j.molmed.2017.07.002",
260
- "year": null,
261
  "item_type": "journalArticle",
262
  "url": ""
263
  },
@@ -274,7 +274,7 @@
274
  "Sina Bavari"
275
  ],
276
  "doi": "10.1146/annurev-pharmtox-010716-105055",
277
- "year": null,
278
  "item_type": "journalArticle",
279
  "url": ""
280
  }
 
11
  "Marco Tuccori"
12
  ],
13
  "doi": "",
14
+ "date": "2020",
15
  "item_type": "journalArticle",
16
  "url": ""
17
  },
 
28
  "Sina Bavari"
29
  ],
30
  "doi": "10.1146/annurev-pharmtox-010716-105055",
31
+ "date": "2017-01-06",
32
  "item_type": "journalArticle",
33
  "url": "https://www.annualreviews.org/doi/10.1146/annurev-pharmtox-010716-105055"
34
  },
 
48
  "Xiangguo Qiu"
49
  ],
50
  "doi": "10.1016/j.molmed.2017.07.002",
51
+ "date": "09/2017",
52
  "item_type": "journalArticle",
53
  "url": "https://linkinghub.elsevier.com/retrieve/pii/S1471491417301090"
54
  },
 
66
  "Robert L. Gottlieb"
67
  ],
68
  "doi": "10.1038/s41577-021-00542-x",
69
+ "date": "06/2021",
70
  "item_type": "journalArticle",
71
  "url": "https://www.nature.com/articles/s41577-021-00542-x"
72
  },
 
85
  "M. P. Grobusch"
86
  ],
87
  "doi": "10.1080/13543784.2016.1240785",
88
+ "date": "2016-11-01",
89
  "item_type": "journalArticle",
90
  "url": "https://www.tandfonline.com/doi/full/10.1080/13543784.2016.1240785"
91
  },
 
99
  "Luciana Borio"
100
  ],
101
  "doi": "10.1128/microbiolspec.EI10-0014-2016",
102
+ "date": "2016-05-06",
103
  "item_type": "journalArticle",
104
  "url": "https://journals.asm.org/doi/10.1128/microbiolspec.EI10-0014-2016"
105
  },
 
117
  "Larry Zeitlin"
118
  ],
119
  "doi": "10.3233/HAB-150284",
120
+ "date": "2015-12-23",
121
  "item_type": "journalArticle",
122
  "url": "https://www.medra.org/servlet/aliasResolver?alias=iospress&doi=10.3233/HAB-150284"
123
  },
 
130
  "Olivier Garraud"
131
  ],
132
  "doi": "10.1016/j.transci.2016.12.014",
133
+ "date": "02/2017",
134
  "item_type": "journalArticle",
135
  "url": "https://linkinghub.elsevier.com/retrieve/pii/S1473050216302002"
136
  },
 
144
  "K Karunamoorthi"
145
  ],
146
  "doi": "",
147
+ "date": "",
148
  "item_type": "journalArticle",
149
  "url": ""
150
  },
 
162
  "Larry Zeitlin"
163
  ],
164
  "doi": "10.3233/HAB-150284",
165
+ "date": "2015-12-23",
166
  "item_type": "journalArticle",
167
  "url": ""
168
  },
 
176
  "Aaron A. R. Tobian"
177
  ],
178
  "doi": "10.1111/trf.12913",
179
+ "date": "2014-12",
180
  "item_type": "journalArticle",
181
  "url": ""
182
  },
 
194
  "Robert L. Gottlieb"
195
  ],
196
  "doi": "10.1038/s41577-021-00542-x",
197
+ "date": "2021-06",
198
  "item_type": "journalArticle",
199
  "url": ""
200
  },
 
210
  "Marco Tuccori"
211
  ],
212
  "doi": "10.1128/CMR.00072-20",
213
+ "date": "2020-09-16",
214
  "item_type": "journalArticle",
215
  "url": ""
216
  },
 
223
  "Olivier Garraud"
224
  ],
225
  "doi": "10.1016/j.transci.2016.12.014",
226
+ "date": "2017-02",
227
  "item_type": "journalArticle",
228
  "url": ""
229
  },
 
237
  "Luciana Borio"
238
  ],
239
  "doi": "10.1128/microbiolspec.EI10-0014-2016",
240
+ "date": "2016-06",
241
  "item_type": "journalArticle",
242
  "url": ""
243
  },
 
257
  "Xiangguo Qiu"
258
  ],
259
  "doi": "10.1016/j.molmed.2017.07.002",
260
+ "date": "2017-09",
261
  "item_type": "journalArticle",
262
  "url": ""
263
  },
 
274
  "Sina Bavari"
275
  ],
276
  "doi": "10.1146/annurev-pharmtox-010716-105055",
277
+ "date": "2017-01-06",
278
  "item_type": "journalArticle",
279
  "url": ""
280
  }
data/gene_xpert_zotero_items.json CHANGED
@@ -13,7 +13,7 @@
13
  "Hairong Huang"
14
  ],
15
  "doi": "10.21037/jtd.2018.02.60",
16
- "year": null,
17
  "item_type": "journalArticle",
18
  "url": "http://jtd.amegroups.com/article/view/19447/15515"
19
  },
@@ -33,7 +33,7 @@
33
  "David W. Dowdy"
34
  ],
35
  "doi": "10.1097/QAI.0000000000000712",
36
- "year": null,
37
  "item_type": "journalArticle",
38
  "url": "https://journals.lww.com/00126334-201509010-00011"
39
  },
@@ -52,7 +52,7 @@
52
  "Sydney Rosen"
53
  ],
54
  "doi": "10.1111/j.1365-3156.2012.03028.x",
55
- "year": null,
56
  "item_type": "journalArticle",
57
  "url": "https://onlinelibrary.wiley.com/doi/10.1111/j.1365-3156.2012.03028.x"
58
  },
@@ -75,7 +75,7 @@
75
  "Keertan Dheda"
76
  ],
77
  "doi": "10.1183/09031936.00145511",
78
- "year": null,
79
  "item_type": "journalArticle",
80
  "url": "http://erj.ersjournals.com/lookup/doi/10.1183/09031936.00145511"
81
  },
@@ -94,7 +94,7 @@
94
  "Achilles Katamba"
95
  ],
96
  "doi": "10.1186/s12913-016-1804-9",
97
- "year": null,
98
  "item_type": "journalArticle",
99
  "url": "http://bmchealthservres.biomedcentral.com/articles/10.1186/s12913-016-1804-9"
100
  },
@@ -115,7 +115,7 @@
115
  "A. H. Van'T Hoog"
116
  ],
117
  "doi": "10.5588/ijtld.16.0496",
118
- "year": null,
119
  "item_type": "journalArticle",
120
  "url": "http://www.ingentaconnect.com/content/10.5588/ijtld.16.0496"
121
  },
@@ -138,7 +138,7 @@
138
  "Julio Croda"
139
  ],
140
  "doi": "10.1093/cid/ciaa135",
141
- "year": null,
142
  "item_type": "journalArticle",
143
  "url": "https://academic.oup.com/cid/article/72/5/771/5736588"
144
  },
@@ -154,7 +154,7 @@
154
  "Anete Trajman"
155
  ],
156
  "doi": "10.1590/s1806-37562015000004524",
157
- "year": null,
158
  "item_type": "journalArticle",
159
  "url": "http://www.scielo.br/scielo.php?script=sci_arttext&pid=S1806-37132015000600536&lng=en&tlng=en"
160
  },
@@ -181,7 +181,7 @@
181
  "Keertan Dheda"
182
  ],
183
  "doi": "10.1016/S2214-109X(19)30164-0",
184
- "year": null,
185
  "item_type": "journalArticle",
186
  "url": "https://linkinghub.elsevier.com/retrieve/pii/S2214109X19301640"
187
  },
@@ -206,7 +206,7 @@
206
  "Luis E Cuevas"
207
  ],
208
  "doi": "10.1136/bmjgh-2021-007592",
209
- "year": null,
210
  "item_type": "journalArticle",
211
  "url": "https://gh.bmj.com/lookup/doi/10.1136/bmjgh-2021-007592"
212
  },
@@ -222,7 +222,7 @@
222
  "Elvira Richter"
223
  ],
224
  "doi": "10.1183/13993003.01333-2015",
225
- "year": null,
226
  "item_type": "journalArticle",
227
  "url": "http://erj.ersjournals.com/lookup/doi/10.1183/13993003.01333-2015"
228
  },
@@ -244,7 +244,7 @@
244
  "Susan Cleary"
245
  ],
246
  "doi": "10.1371/journal.pone.0251547",
247
- "year": null,
248
  "item_type": "journalArticle",
249
  "url": "https://dx.plos.org/10.1371/journal.pone.0251547"
250
  },
@@ -260,7 +260,7 @@
260
  "M. Shah"
261
  ],
262
  "doi": "10.5588/ijtld.13.0095",
263
- "year": null,
264
  "item_type": "journalArticle",
265
  "url": "http://openurl.ingenta.com/content/xref?genre=article&issn=1027-3719&volume=17&issue=10&spage=1328"
266
  },
@@ -285,7 +285,7 @@
285
  "Jacob Creswell"
286
  ],
287
  "doi": "10.3201/eid2703.204090",
288
- "year": null,
289
  "item_type": "journalArticle",
290
  "url": "https://wwwnc.cdc.gov/eid/article/27/3/20-4090_article.htm"
291
  },
@@ -300,7 +300,7 @@
300
  "A. Trajman"
301
  ],
302
  "doi": "10.5588/ijtld.13.0637",
303
- "year": null,
304
  "item_type": "journalArticle",
305
  "url": "http://openurl.ingenta.com/content/xref?genre=article&issn=1027-3719&volume=18&issue=5&spage=547"
306
  },
@@ -317,7 +317,7 @@
317
  "Deborah K. Glencross"
318
  ],
319
  "doi": "10.4102/ajlm.v10i1.1229",
320
- "year": null,
321
  "item_type": "journalArticle",
322
  "url": "http://www.ajlmonline.org/index.php/AJLM/article/view/1229"
323
  },
@@ -337,7 +337,7 @@
337
  "Maria Claudia Vater"
338
  ],
339
  "doi": "10.1590/0037-8682-0082-2018",
340
- "year": null,
341
  "item_type": "journalArticle",
342
  "url": "http://www.scielo.br/scielo.php?script=sci_arttext&pid=S0037-86822018000500631&tlng=en"
343
  },
@@ -361,7 +361,7 @@
361
  "Luis E. Cuevas"
362
  ],
363
  "doi": "10.1128/JCM.00864-15",
364
- "year": null,
365
  "item_type": "journalArticle",
366
  "url": "https://journals.asm.org/doi/10.1128/JCM.00864-15"
367
  },
@@ -386,7 +386,7 @@
386
  "Corinne S. Merle"
387
  ],
388
  "doi": "10.1371/journal.pone.0264206",
389
- "year": null,
390
  "item_type": "journalArticle",
391
  "url": "https://dx.plos.org/10.1371/journal.pone.0264206"
392
  },
@@ -406,7 +406,7 @@
406
  "Prathap Tharyan"
407
  ],
408
  "doi": "10.1371/journal.pone.0205233",
409
- "year": null,
410
  "item_type": "journalArticle",
411
  "url": "https://dx.plos.org/10.1371/journal.pone.0205233"
412
  },
@@ -423,7 +423,7 @@
423
  "Susan E Dorman"
424
  ],
425
  "doi": "10.1186/1471-2334-13-352",
426
- "year": null,
427
  "item_type": "journalArticle",
428
  "url": "https://bmcinfectdis.biomedcentral.com/articles/10.1186/1471-2334-13-352"
429
  },
@@ -450,7 +450,7 @@
450
  "Frank Cobelens"
451
  ],
452
  "doi": "10.1371/journal.pmed.1001120",
453
- "year": null,
454
  "item_type": "journalArticle",
455
  "url": "https://dx.plos.org/10.1371/journal.pmed.1001120"
456
  },
@@ -468,7 +468,7 @@
468
  "Achilles Katamba"
469
  ],
470
  "doi": "10.1371/journal.pone.0122574",
471
- "year": null,
472
  "item_type": "journalArticle",
473
  "url": "https://dx.plos.org/10.1371/journal.pone.0122574"
474
  },
@@ -486,7 +486,7 @@
486
  "Brittany Moore"
487
  ],
488
  "doi": "10.1007/s40258-018-0397-3",
489
- "year": null,
490
  "item_type": "journalArticle",
491
  "url": "http://link.springer.com/10.1007/s40258-018-0397-3"
492
  },
@@ -502,7 +502,7 @@
502
  "Charoen Chuchottaworn"
503
  ],
504
  "doi": "10.1016/j.vhri.2019.09.010",
505
- "year": null,
506
  "item_type": "journalArticle",
507
  "url": "https://linkinghub.elsevier.com/retrieve/pii/S221210992030008X"
508
  },
@@ -519,7 +519,7 @@
519
  "Kevin Schwartzman"
520
  ],
521
  "doi": "10.1371/journal.pone.0150119",
522
- "year": null,
523
  "item_type": "journalArticle",
524
  "url": "https://dx.plos.org/10.1371/journal.pone.0150119"
525
  },
@@ -533,7 +533,7 @@
533
  "Alemayehu Hailu"
534
  ],
535
  "doi": "10.1371/journal.pone.0259056",
536
- "year": null,
537
  "item_type": "journalArticle",
538
  "url": "https://dx.plos.org/10.1371/journal.pone.0259056"
539
  },
@@ -555,7 +555,7 @@
555
  "Esther Turunga"
556
  ],
557
  "doi": "10.1097/QAI.0000000000002371",
558
- "year": null,
559
  "item_type": "journalArticle",
560
  "url": "https://journals.lww.com/10.1097/QAI.0000000000002371"
561
  },
@@ -575,7 +575,7 @@
575
  "Jos\u00e9 Mar\u00eda Ten\u00edas-Burillo"
576
  ],
577
  "doi": "10.1016/j.eimc.2016.06.009",
578
- "year": null,
579
  "item_type": "journalArticle",
580
  "url": "https://linkinghub.elsevier.com/retrieve/pii/S0213005X16301550"
581
  },
@@ -595,7 +595,7 @@
595
  "Jos\u00e9 Mar\u00eda Ten\u00edas-Burillo"
596
  ],
597
  "doi": "10.1016/j.eimc.2016.06.009",
598
- "year": null,
599
  "item_type": "journalArticle",
600
  "url": "https://linkinghub.elsevier.com/retrieve/pii/S0213005X16301550"
601
  },
@@ -611,7 +611,7 @@
611
  "Nelson L.S. Lee"
612
  ],
613
  "doi": "10.1016/j.jinf.2014.12.015",
614
- "year": null,
615
  "item_type": "journalArticle",
616
  "url": "https://linkinghub.elsevier.com/retrieve/pii/S016344531500002X"
617
  }
 
13
  "Hairong Huang"
14
  ],
15
  "doi": "10.21037/jtd.2018.02.60",
16
+ "date": "3/2018",
17
  "item_type": "journalArticle",
18
  "url": "http://jtd.amegroups.com/article/view/19447/15515"
19
  },
 
33
  "David W. Dowdy"
34
  ],
35
  "doi": "10.1097/QAI.0000000000000712",
36
+ "date": "2015-09-1",
37
  "item_type": "journalArticle",
38
  "url": "https://journals.lww.com/00126334-201509010-00011"
39
  },
 
52
  "Sydney Rosen"
53
  ],
54
  "doi": "10.1111/j.1365-3156.2012.03028.x",
55
+ "date": "09/2012",
56
  "item_type": "journalArticle",
57
  "url": "https://onlinelibrary.wiley.com/doi/10.1111/j.1365-3156.2012.03028.x"
58
  },
 
75
  "Keertan Dheda"
76
  ],
77
  "doi": "10.1183/09031936.00145511",
78
+ "date": "07/2012",
79
  "item_type": "journalArticle",
80
  "url": "http://erj.ersjournals.com/lookup/doi/10.1183/09031936.00145511"
81
  },
 
94
  "Achilles Katamba"
95
  ],
96
  "doi": "10.1186/s12913-016-1804-9",
97
+ "date": "12/2016",
98
  "item_type": "journalArticle",
99
  "url": "http://bmchealthservres.biomedcentral.com/articles/10.1186/s12913-016-1804-9"
100
  },
 
115
  "A. H. Van'T Hoog"
116
  ],
117
  "doi": "10.5588/ijtld.16.0496",
118
+ "date": "2017-04-01",
119
  "item_type": "journalArticle",
120
  "url": "http://www.ingentaconnect.com/content/10.5588/ijtld.16.0496"
121
  },
 
138
  "Julio Croda"
139
  ],
140
  "doi": "10.1093/cid/ciaa135",
141
+ "date": "2021-03-01",
142
  "item_type": "journalArticle",
143
  "url": "https://academic.oup.com/cid/article/72/5/771/5736588"
144
  },
 
154
  "Anete Trajman"
155
  ],
156
  "doi": "10.1590/s1806-37562015000004524",
157
+ "date": "12/2015",
158
  "item_type": "journalArticle",
159
  "url": "http://www.scielo.br/scielo.php?script=sci_arttext&pid=S1806-37132015000600536&lng=en&tlng=en"
160
  },
 
181
  "Keertan Dheda"
182
  ],
183
  "doi": "10.1016/S2214-109X(19)30164-0",
184
+ "date": "06/2019",
185
  "item_type": "journalArticle",
186
  "url": "https://linkinghub.elsevier.com/retrieve/pii/S2214109X19301640"
187
  },
 
206
  "Luis E Cuevas"
207
  ],
208
  "doi": "10.1136/bmjgh-2021-007592",
209
+ "date": "02/2022",
210
  "item_type": "journalArticle",
211
  "url": "https://gh.bmj.com/lookup/doi/10.1136/bmjgh-2021-007592"
212
  },
 
222
  "Elvira Richter"
223
  ],
224
  "doi": "10.1183/13993003.01333-2015",
225
+ "date": "02/2016",
226
  "item_type": "journalArticle",
227
  "url": "http://erj.ersjournals.com/lookup/doi/10.1183/13993003.01333-2015"
228
  },
 
244
  "Susan Cleary"
245
  ],
246
  "doi": "10.1371/journal.pone.0251547",
247
+ "date": "2021-5-14",
248
  "item_type": "journalArticle",
249
  "url": "https://dx.plos.org/10.1371/journal.pone.0251547"
250
  },
 
260
  "M. Shah"
261
  ],
262
  "doi": "10.5588/ijtld.13.0095",
263
+ "date": "2013-10-01",
264
  "item_type": "journalArticle",
265
  "url": "http://openurl.ingenta.com/content/xref?genre=article&issn=1027-3719&volume=17&issue=10&spage=1328"
266
  },
 
285
  "Jacob Creswell"
286
  ],
287
  "doi": "10.3201/eid2703.204090",
288
+ "date": "03/2021",
289
  "item_type": "journalArticle",
290
  "url": "https://wwwnc.cdc.gov/eid/article/27/3/20-4090_article.htm"
291
  },
 
300
  "A. Trajman"
301
  ],
302
  "doi": "10.5588/ijtld.13.0637",
303
+ "date": "2014-05-01",
304
  "item_type": "journalArticle",
305
  "url": "http://openurl.ingenta.com/content/xref?genre=article&issn=1027-3719&volume=18&issue=5&spage=547"
306
  },
 
317
  "Deborah K. Glencross"
318
  ],
319
  "doi": "10.4102/ajlm.v10i1.1229",
320
+ "date": "2021-11-30",
321
  "item_type": "journalArticle",
322
  "url": "http://www.ajlmonline.org/index.php/AJLM/article/view/1229"
323
  },
 
337
  "Maria Claudia Vater"
338
  ],
339
  "doi": "10.1590/0037-8682-0082-2018",
340
+ "date": "10/2018",
341
  "item_type": "journalArticle",
342
  "url": "http://www.scielo.br/scielo.php?script=sci_arttext&pid=S0037-86822018000500631&tlng=en"
343
  },
 
361
  "Luis E. Cuevas"
362
  ],
363
  "doi": "10.1128/JCM.00864-15",
364
+ "date": "08/2015",
365
  "item_type": "journalArticle",
366
  "url": "https://journals.asm.org/doi/10.1128/JCM.00864-15"
367
  },
 
386
  "Corinne S. Merle"
387
  ],
388
  "doi": "10.1371/journal.pone.0264206",
389
+ "date": "2022-2-22",
390
  "item_type": "journalArticle",
391
  "url": "https://dx.plos.org/10.1371/journal.pone.0264206"
392
  },
 
406
  "Prathap Tharyan"
407
  ],
408
  "doi": "10.1371/journal.pone.0205233",
409
+ "date": "2018-10-29",
410
  "item_type": "journalArticle",
411
  "url": "https://dx.plos.org/10.1371/journal.pone.0205233"
412
  },
 
423
  "Susan E Dorman"
424
  ],
425
  "doi": "10.1186/1471-2334-13-352",
426
+ "date": "12/2013",
427
  "item_type": "journalArticle",
428
  "url": "https://bmcinfectdis.biomedcentral.com/articles/10.1186/1471-2334-13-352"
429
  },
 
450
  "Frank Cobelens"
451
  ],
452
  "doi": "10.1371/journal.pmed.1001120",
453
+ "date": "2011-11-8",
454
  "item_type": "journalArticle",
455
  "url": "https://dx.plos.org/10.1371/journal.pmed.1001120"
456
  },
 
468
  "Achilles Katamba"
469
  ],
470
  "doi": "10.1371/journal.pone.0122574",
471
+ "date": "2015-4-1",
472
  "item_type": "journalArticle",
473
  "url": "https://dx.plos.org/10.1371/journal.pone.0122574"
474
  },
 
486
  "Brittany Moore"
487
  ],
488
  "doi": "10.1007/s40258-018-0397-3",
489
+ "date": "8/2018",
490
  "item_type": "journalArticle",
491
  "url": "http://link.springer.com/10.1007/s40258-018-0397-3"
492
  },
 
502
  "Charoen Chuchottaworn"
503
  ],
504
  "doi": "10.1016/j.vhri.2019.09.010",
505
+ "date": "05/2020",
506
  "item_type": "journalArticle",
507
  "url": "https://linkinghub.elsevier.com/retrieve/pii/S221210992030008X"
508
  },
 
519
  "Kevin Schwartzman"
520
  ],
521
  "doi": "10.1371/journal.pone.0150119",
522
+ "date": "2016-3-18",
523
  "item_type": "journalArticle",
524
  "url": "https://dx.plos.org/10.1371/journal.pone.0150119"
525
  },
 
533
  "Alemayehu Hailu"
534
  ],
535
  "doi": "10.1371/journal.pone.0259056",
536
+ "date": "2021-10-25",
537
  "item_type": "journalArticle",
538
  "url": "https://dx.plos.org/10.1371/journal.pone.0259056"
539
  },
 
555
  "Esther Turunga"
556
  ],
557
  "doi": "10.1097/QAI.0000000000002371",
558
+ "date": "2020-07-1",
559
  "item_type": "journalArticle",
560
  "url": "https://journals.lww.com/10.1097/QAI.0000000000002371"
561
  },
 
575
  "Jos\u00e9 Mar\u00eda Ten\u00edas-Burillo"
576
  ],
577
  "doi": "10.1016/j.eimc.2016.06.009",
578
+ "date": "08/2017",
579
  "item_type": "journalArticle",
580
  "url": "https://linkinghub.elsevier.com/retrieve/pii/S0213005X16301550"
581
  },
 
595
  "Jos\u00e9 Mar\u00eda Ten\u00edas-Burillo"
596
  ],
597
  "doi": "10.1016/j.eimc.2016.06.009",
598
+ "date": "08/2017",
599
  "item_type": "journalArticle",
600
  "url": "https://linkinghub.elsevier.com/retrieve/pii/S0213005X16301550"
601
  },
 
611
  "Nelson L.S. Lee"
612
  ],
613
  "doi": "10.1016/j.jinf.2014.12.015",
614
+ "date": "04/2015",
615
  "item_type": "journalArticle",
616
  "url": "https://linkinghub.elsevier.com/retrieve/pii/S016344531500002X"
617
  }
data/vaccine_coverage_zotero_items.json CHANGED
@@ -17,7 +17,7 @@
17
  "Rania A Tohme"
18
  ],
19
  "doi": "10.15585/mmwr.mm7229a2",
20
- "year": null,
21
  "item_type": "journalArticle",
22
  "url": ""
23
  },
@@ -31,7 +31,7 @@
31
  "Edgar Mugema Mulogo"
32
  ],
33
  "doi": "10.21522/TIJPH.2013.09.03.Art019",
34
- "year": null,
35
  "item_type": "journalArticle",
36
  "url": ""
37
  },
@@ -45,7 +45,7 @@
45
  "Edgar Mugema Mulogo"
46
  ],
47
  "doi": "10.21522/TIJPH.2013.09.04.Art008",
48
- "year": null,
49
  "item_type": "journalArticle",
50
  "url": ""
51
  },
@@ -89,7 +89,7 @@
89
  "G. Shapira"
90
  ],
91
  "doi": "10.1371/journal.pmed.1004070",
92
- "year": null,
93
  "item_type": "journalArticle",
94
  "url": "https://www.scopus.com/inward/record.uri?eid=2-s2.0-85137126764&doi=10.1371%2fjournal.pmed.1004070&partnerID=40&md5=32f1cd887f5eb46121eb1e48abfcdaaf"
95
  },
@@ -111,7 +111,7 @@
111
  "Yahaya Gavamukulya"
112
  ],
113
  "doi": "10.1016/j.dib.2019.104269",
114
- "year": null,
115
  "item_type": "journalArticle",
116
  "url": ""
117
  },
@@ -137,7 +137,7 @@
137
  "Kirsty Le Doare"
138
  ],
139
  "doi": "10.1136/bmjgh-2021-006102",
140
- "year": null,
141
  "item_type": "journalArticle",
142
  "url": "https://search.ebscohost.com/login.aspx?direct=true&db=cmedm&AN=34452941&site=ehost-live&scope=site"
143
  },
@@ -152,7 +152,7 @@
152
  "Tsai-Ching Hsu"
153
  ],
154
  "doi": "",
155
- "year": null,
156
  "item_type": "journalArticle",
157
  "url": "https://search.ebscohost.com/login.aspx?direct=true&db=a9h&AN=148721705&site=ehost-live&scope=site"
158
  },
@@ -176,7 +176,7 @@
176
  "E. M. Mulogo"
177
  ],
178
  "doi": "10.1186/s12879-022-07579-w",
179
- "year": null,
180
  "item_type": "journalArticle",
181
  "url": ""
182
  },
@@ -192,7 +192,7 @@
192
  "D. Kajungu"
193
  ],
194
  "doi": "10.1186/s12913-023-09875-w",
195
- "year": null,
196
  "item_type": "journalArticle",
197
  "url": ""
198
  },
@@ -210,7 +210,7 @@
210
  "C. Banura"
211
  ],
212
  "doi": "10.1186/s12889-022-13113-z",
213
- "year": null,
214
  "item_type": "journalArticle",
215
  "url": ""
216
  },
@@ -242,7 +242,7 @@
242
  "N. Fadl"
243
  ],
244
  "doi": "10.1007/s10900-023-01261-1",
245
- "year": null,
246
  "item_type": "journalArticle",
247
  "url": ""
248
  },
@@ -264,7 +264,7 @@
264
  "Y. Gavamukulya"
265
  ],
266
  "doi": "10.1016/j.dib.2019.104269",
267
- "year": null,
268
  "item_type": "journalArticle",
269
  "url": ""
270
  },
@@ -286,7 +286,7 @@
286
  "Y. Gavamukulya"
287
  ],
288
  "doi": "10.9734/ijtdh/2019/v39i330209",
289
- "year": null,
290
  "item_type": "journalArticle",
291
  "url": ""
292
  },
@@ -303,7 +303,7 @@
303
  "H. W. Reynolds"
304
  ],
305
  "doi": "10.3390/vaccines11030647",
306
- "year": null,
307
  "item_type": "journalArticle",
308
  "url": ""
309
  },
@@ -320,7 +320,7 @@
320
  "E. Sacks"
321
  ],
322
  "doi": "10.1093/heapol/czaa099",
323
- "year": null,
324
  "item_type": "journalArticle",
325
  "url": ""
326
  },
@@ -341,7 +341,7 @@
341
  "L. Berman"
342
  ],
343
  "doi": "10.3390/vaccines11020375",
344
- "year": null,
345
  "item_type": "journalArticle",
346
  "url": ""
347
  },
@@ -359,7 +359,7 @@
359
  "P. Waiswa"
360
  ],
361
  "doi": "10.1186/s12913-021-06554-6",
362
- "year": null,
363
  "item_type": "journalArticle",
364
  "url": ""
365
  },
@@ -378,7 +378,7 @@
378
  "F. Guillen-Grima"
379
  ],
380
  "doi": "10.3390/vaccines11061103",
381
- "year": null,
382
  "item_type": "journalArticle",
383
  "url": ""
384
  }
 
17
  "Rania A Tohme"
18
  ],
19
  "doi": "10.15585/mmwr.mm7229a2",
20
+ "date": "2023",
21
  "item_type": "journalArticle",
22
  "url": ""
23
  },
 
31
  "Edgar Mugema Mulogo"
32
  ],
33
  "doi": "10.21522/TIJPH.2013.09.03.Art019",
34
+ "date": "2021",
35
  "item_type": "journalArticle",
36
  "url": ""
37
  },
 
45
  "Edgar Mugema Mulogo"
46
  ],
47
  "doi": "10.21522/TIJPH.2013.09.04.Art008",
48
+ "date": "2021",
49
  "item_type": "journalArticle",
50
  "url": ""
51
  },
 
89
  "G. Shapira"
90
  ],
91
  "doi": "10.1371/journal.pmed.1004070",
92
+ "date": "2022",
93
  "item_type": "journalArticle",
94
  "url": "https://www.scopus.com/inward/record.uri?eid=2-s2.0-85137126764&doi=10.1371%2fjournal.pmed.1004070&partnerID=40&md5=32f1cd887f5eb46121eb1e48abfcdaaf"
95
  },
 
111
  "Yahaya Gavamukulya"
112
  ],
113
  "doi": "10.1016/j.dib.2019.104269",
114
+ "date": "2019",
115
  "item_type": "journalArticle",
116
  "url": ""
117
  },
 
137
  "Kirsty Le Doare"
138
  ],
139
  "doi": "10.1136/bmjgh-2021-006102",
140
+ "date": "2021",
141
  "item_type": "journalArticle",
142
  "url": "https://search.ebscohost.com/login.aspx?direct=true&db=cmedm&AN=34452941&site=ehost-live&scope=site"
143
  },
 
152
  "Tsai-Ching Hsu"
153
  ],
154
  "doi": "",
155
+ "date": "2020",
156
  "item_type": "journalArticle",
157
  "url": "https://search.ebscohost.com/login.aspx?direct=true&db=a9h&AN=148721705&site=ehost-live&scope=site"
158
  },
 
176
  "E. M. Mulogo"
177
  ],
178
  "doi": "10.1186/s12879-022-07579-w",
179
+ "date": "2022",
180
  "item_type": "journalArticle",
181
  "url": ""
182
  },
 
192
  "D. Kajungu"
193
  ],
194
  "doi": "10.1186/s12913-023-09875-w",
195
+ "date": "2023",
196
  "item_type": "journalArticle",
197
  "url": ""
198
  },
 
210
  "C. Banura"
211
  ],
212
  "doi": "10.1186/s12889-022-13113-z",
213
+ "date": "2022",
214
  "item_type": "journalArticle",
215
  "url": ""
216
  },
 
242
  "N. Fadl"
243
  ],
244
  "doi": "10.1007/s10900-023-01261-1",
245
+ "date": "2024",
246
  "item_type": "journalArticle",
247
  "url": ""
248
  },
 
264
  "Y. Gavamukulya"
265
  ],
266
  "doi": "10.1016/j.dib.2019.104269",
267
+ "date": "2019",
268
  "item_type": "journalArticle",
269
  "url": ""
270
  },
 
286
  "Y. Gavamukulya"
287
  ],
288
  "doi": "10.9734/ijtdh/2019/v39i330209",
289
+ "date": "2019",
290
  "item_type": "journalArticle",
291
  "url": ""
292
  },
 
303
  "H. W. Reynolds"
304
  ],
305
  "doi": "10.3390/vaccines11030647",
306
+ "date": "2023",
307
  "item_type": "journalArticle",
308
  "url": ""
309
  },
 
320
  "E. Sacks"
321
  ],
322
  "doi": "10.1093/heapol/czaa099",
323
+ "date": "2020",
324
  "item_type": "journalArticle",
325
  "url": ""
326
  },
 
341
  "L. Berman"
342
  ],
343
  "doi": "10.3390/vaccines11020375",
344
+ "date": "2023",
345
  "item_type": "journalArticle",
346
  "url": ""
347
  },
 
359
  "P. Waiswa"
360
  ],
361
  "doi": "10.1186/s12913-021-06554-6",
362
+ "date": "2021",
363
  "item_type": "journalArticle",
364
  "url": ""
365
  },
 
378
  "F. Guillen-Grima"
379
  ],
380
  "doi": "10.3390/vaccines11061103",
381
+ "date": "2023",
382
  "item_type": "journalArticle",
383
  "url": ""
384
  }
rag/rag_pipeline.py CHANGED
@@ -35,7 +35,7 @@ class RAGPipeline:
35
  metadata = {
36
  "title": doc_data.get("title"),
37
  "authors": doc_data.get("authors", []),
38
- "year": doc_data.get("year"),
39
  "doi": doc_data.get("doi"),
40
  }
41
 
 
35
  metadata = {
36
  "title": doc_data.get("title"),
37
  "authors": doc_data.get("authors", []),
38
+ "year": doc_data.get("date"),
39
  "doi": doc_data.get("doi"),
40
  }
41
 
requirements.txt CHANGED
@@ -3,4 +3,5 @@ gradio
3
  llama-index
4
  openai
5
  pandas
6
- pydantic
 
 
3
  llama-index
4
  openai
5
  pandas
6
+ pydantic
7
+ python-dotenv
sample_queries.md ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ 1. For each of the studies on vaccine coverage, could you create a table that lists the findings from the vaccine coverage studies, incorporating variables such as STUDYID, TITLE, DOIs, YEAR?
2
+