Package: promptr 1.0.1

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:
promptr_1.0.1.tar.gz
promptr_1.0.1.zip(r-4.7)promptr_1.0.1.zip(r-4.6)promptr_1.0.1.zip(r-4.5)
promptr_1.0.1.tgz(r-4.6-any)promptr_1.0.1.tgz(r-4.5-any)
promptr_1.0.1.tar.gz(r-4.7-any)promptr_1.0.1.tar.gz(r-4.6-any)
promptr_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
promptr/json (API)
| # 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
- occupations - Occupations
- occupations_examples - Labelled Occupations
- scotus_tweets - Tweets About The Supreme Court of the United States
- scotus_tweets_examples - Labelled Example Tweets About The Supreme Court of the United States
Last updated from:0ddedd1461. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 111 | ||
| source / vignettes | OK | 165 | ||
| linux-release-x86_64 | OK | 112 | ||
| macos-release-arm64 | OK | 103 | ||
| macos-oldrel-arm64 | OK | 82 | ||
| windows-devel | OK | 60 | ||
| windows-release | OK | 73 | ||
| windows-oldrel | OK | 108 | ||
| wasm-release | OK | 103 |
Exports:complete_chatcomplete_promptformat_chatformat_promptopenai_api_key
Dependencies:askpassclicurldplyrgenericsgluehttr2jsonlitelifecyclemagrittropensslpillarpkgconfigR6rappdirsrlangstringistringrsystibbletidyselectutf8vctrswithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Complete an LLM Chat | complete_chat |
| Complete an LLM Prompt | complete_prompt |
| Format a Chat Prompt | format_chat |
| Format an LLM prompt | format_prompt |
| Occupations | occupations |
| Labelled Occupations | occupations_examples |
| Install an OPENAI API KEY in Your '.Renviron' File for Repeated Use | openai_api_key |
| Tweets About The Supreme Court of the United States | scotus_tweets |
| Labelled Example Tweets About The Supreme Court of the United States | scotus_tweets_examples |
