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
{{ message }}
Repository navigation
Commit 20dcdd9
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: NEWS.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,10 @@
1
+
# biorecap 0.2.0
2
+
3
+
- Added medRxiv support. The `get_preprints()` function will now pull from either the bioRxiv or medRxiv RSS feed depending on the subject passed to it. All downstream functions and reporting updated to reflect this change (fixes #5).
4
+
- Changed default model to llama 3.2 3B.
5
+
- Added new source column for the returned preprints indicating whether the preprint came from bioRxiv or medRxiv.
6
+
- Updated tests.
7
+
1
8
# biorecap 0.1.1
2
9
3
10
- Fix bug in `add_summary()` caused by upstream changes in ollamar (fixes #1).
#' @param subject A character vector of valid biorxiv subjects. See [subjects].
63
-
#' @param baseurl The base URL for the biorxiv RSS feed. Default is `https://connect.biorxiv.org/biorxiv_xml.php?subject=`. Do not change unless you know what you are doing.
62
+
#' @param subject A character vector of valid bioRxiv and/or medRxiv subjects. See [subjects].
64
63
#' @param clean Logical; try to strip out graphical abstract information? If TRUE, this strips away any text between `O_FIG` and `C_FIG`, and the words `graphical abstract` from the abstract text in the RSS feed.
65
64
#'
66
-
#' @return A data frame of bioRxiv preprints.
65
+
#' @return A data frame of preprints from bioRxiv and/or medRxiv.
#' @param output_dir Directory to save the report.
228
249
#' @param subject Character vector of subjects to include in the report.
229
250
#' @param nsentences Number of sentences to summarize each paper in.
230
251
#' @param model The model to use for generating summaries. See [ollamar::list_models()].
231
-
#' @param use_example_preprints Use the example preprints data included with the package instead of fetching new data from bioRxiv. For diagnostic/testing purposes only.
252
+
#' @param use_example_preprints Use the example preprints data included with the package instead of fetching new data from bioRxiv/medRxiv. For diagnostic/testing purposes only.
232
253
#' @param ... Other arguments passed to [rmarkdown::render()].
233
254
#'
234
255
#' @return Nothing; called for its side effects to produce a report.
Retrieve and summarize [bioRxiv](https://www.biorxiv.org/) preprints using a local LLM with [Ollama](https://ollama.com/) via [ollamar](https://cran.r-project.org/package=ollamar).
31
+
Retrieve and summarize [bioRxiv](https://www.biorxiv.org/)and [medRxiv](https://www.medrxiv.org/)preprints using a local LLM with [Ollama](https://ollama.com/) via [ollamar](https://cran.r-project.org/package=ollamar).
32
32
33
33
Turner, S. D. (2024). biorecap: an R package for summarizing bioRxiv preprints with a local LLM. _arXiv_, 2408.11707. https://doi.org/10.48550/arXiv.2408.11707.
34
34
@@ -73,43 +73,44 @@ list_models()
73
73
```
74
74
75
75
```
76
-
#> # A tibble: 3 × 4
77
-
#>name model parameter_size quantization_level
78
-
#><chr> <chr><chr> <chr>
79
-
#> 1 gemma2:latest gemma2:latest9.2BQ4_0
80
-
#> 2 llama3.1:latest llama3.1:latest 8.0B Q4_0
81
-
#> 3 llama3.1:70b llama3.1:70b 70.6BQ4_0
76
+
name size parameter_size quantization_level modified
Write an HTML report containing summaries of recent preprints in select subject areas to the current working directory.
84
+
Write an HTML report containing summaries of recent preprints in select subject areas to the current working directory. You can include both bioRxiv and medRxiv subjects, and biorecap will know which RSS feed to use.
The `get_preprints()` function retrieves preprints from bioRxiv's RSS feeds. You pass one or more subjects to the `subject` argument.
101
+
The `get_preprints()` function retrieves preprints from the RSS feed of either bioRxiv or medRxiv, based on the subject you provided. You pass one or more subjects to the `subject` argument.
102
102
103
103
```{r, eval=FALSE}
104
104
pp <- get_preprints(subject=c("bioinformatics",
105
-
"genomics",
106
-
"synthetic_biology"))
107
-
pp
105
+
"infectious_diseases"))
106
+
head(pp)
107
+
tail(pp)
108
108
```
109
109
110
110
```{r, echo=FALSE}
111
111
pp <- example_preprints
112
-
pp |> dplyr::select(-prompt, -summary)
112
+
pp |> dplyr::select(-prompt, -summary) |> head()
113
+
pp |> dplyr::select(-prompt, -summary) |> tail()
113
114
```
114
115
115
116
The `add_prompt()` function adds a prompt to each preprint that will be used to prompt the model.
@@ -137,9 +138,9 @@ The `add_summary()` function uses a locally running LLM available through Ollama
0 commit comments