Package: promptr 1.0.0

promptr: Format and Complete Few-Shot LLM Prompts

Format and submit few-shot prompts to OpenAI's Large Language Models (LLMs). Designed to be particularly useful for text classification problems in the social sciences. Methods are described in Ornstein, Blasingame, and Truscott (2024) <https://joeornstein.github.io/publications/ornstein-blasingame-truscott.pdf>.

Authors:Joe Ornstein [aut, cre, cph]

promptr_1.0.0.tar.gz
promptr_1.0.0.zip(r-4.6)promptr_1.0.0.zip(r-4.5)
promptr_1.0.0.tgz(r-4.6-any)promptr_1.0.0.tgz(r-4.5-any)
promptr_1.0.0.tar.gz(r-4.6-any)promptr_1.0.0.tar.gz(r-4.5-any)
promptr_1.0.0.tgz(r-4.5-emscripten)
promptr.pdf |promptr.html
promptr/json (API)
NEWS

# Install 'promptr' in R:
install.packages('promptr', repos = c('https://joeornstein.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/joeornstein/promptr/issues

Datasets:

On CRAN:

Conda:

4.02 score 19 stars 11 scripts 156 downloads 5 exports 24 dependencies

Last updated from:1939d640db. Checks:8 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK116
source / vignettesOK175
linux-release-x86_64OK100
macos-devel-arm64OK171
macos-release-arm64OK152
windows-develOK60
windows-releaseOK65
wasm-releaseOK103

Exports:complete_chatcomplete_promptformat_chatformat_promptopenai_api_key

Dependencies:askpassclicurldplyrgenericsgluehttr2jsonlitelifecyclemagrittropensslpillarpkgconfigR6rappdirsrlangstringistringrsystibbletidyselectutf8vctrswithr