Construct a prompt to summarize a paper
Usage
build_prompt_preprint(
title,
abstract,
nsentences = 2L,
instructions = c("I am giving you a paper's title and abstract.",
"Summarize the paper in as many sentences as I instruct.",
"Do not include any preamble text to the summary",
"just give me the summary with no preface or intro sentence.")
)
Examples
build_prompt_preprint(title="A great paper", abstract="This is the abstract.")
#> [1] "I am giving you a paper's title and abstract. Summarize the paper in as many sentences as I instruct. Do not include any preamble text to the summary just give me the summary with no preface or intro sentence.\nNumber of sentences in summary: 2\nTitle: A great paper\nAbstract: This is the abstract."