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.5)promptr_1.0.0.zip(r-4.4)promptr_1.0.0.zip(r-4.3)
promptr_1.0.0.tgz(r-4.4-any)promptr_1.0.0.tgz(r-4.3-any)
promptr_1.0.0.tar.gz(r-4.5-noble)promptr_1.0.0.tar.gz(r-4.4-noble)
promptr_1.0.0.tgz(r-4.4-emscripten)promptr_1.0.0.tgz(r-4.3-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'))

Peer review:

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

Datasets:

On CRAN:

4.20 score 8 stars 2 scripts 191 downloads 5 exports 25 dependencies

Last updated 3 months agofrom:99953e636b. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 22 2024
R-4.5-winOKNov 22 2024
R-4.5-linuxOKNov 22 2024
R-4.4-winNOTENov 22 2024
R-4.4-macNOTENov 22 2024
R-4.3-winNOTENov 22 2024
R-4.3-macNOTENov 22 2024

Exports:complete_chatcomplete_promptformat_chatformat_promptopenai_api_key

Dependencies:askpassclicurldplyrfansigenericsgluehttr2jsonlitelifecyclemagrittropensslpillarpkgconfigR6rappdirsrlangstringistringrsystibbletidyselectutf8vctrswithr