Skip to contents

Generate a summary from a data frame of prompts

Usage

add_summary(preprints, model = "llama3.2", host = NULL)

Arguments

preprints

Output from get_preprints() followed by add_prompt().

model

A model available to Ollama (run ollamar::list_models()) to see what's available.

host

The base URL to use. Default is NULL, which uses Ollama's default base URL.

Value

A tibble, with a response column added.

Examples

if (FALSE) { # \dontrun{
# Individual papers
preprints <-
  get_preprints(c("genomics", "bioinformatics")) |>
  add_prompt() |>
  add_summary()
preprints
} # }