Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release prep #29

Merged
merged 3 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions r/.Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
^.*\.Rproj$
^\.Rproj\.user$
^.*\.csv
^.*\.qmd
^LICENSE\.md$
^\.github$
^codecov\.yml$
^utils
^_pkgdown\.yml$
^docs$
^pkgdown$
^cran-comments\.md$
^CRAN-SUBMISSION$
^_readme_cache$
12 changes: 7 additions & 5 deletions r/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
Package: mall
Title: Run multiple 'Large Language Model' predictions against a table, or
vectors
Version: 0.0.0.9007
Authors@R:
person("Edgar", "Ruiz", , "[email protected]", role = c("aut", "cre"))
Version: 0.1.0
Authors@R: c(
person("Edgar", "Ruiz", , "[email protected]", role = c("aut", "cre")),
person(given = "Posit Software, PBC", role = c("cph", "fnd"))
)
Description: Run multiple 'Large Language Model' predictions against a table. The
predictions run row-wise over a specified column. It works using a pre-determined
one-shot prompt, along with the current row's content. The prompt that is use
one-shot prompt, along with the current row's content. The prompt that is used
will depend of the type of analysis needed.
License: MIT + file LICENSE
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
Imports:
cli,
dplyr,
Expand Down
12 changes: 6 additions & 6 deletions r/R/llm-verify.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@
#' @examples
#' \dontrun{
#' library(mall)
#'
#'
#' data("reviews")
#'
#'
#' llm_use("ollama", "llama3.2", seed = 100, .silent = TRUE)
#'
#'
#' # By default it will return 1 for 'true', and 0 for 'false',
#' # the new column will be a factor type
#' llm_verify(reviews, review, "is the customer happy")
#'
#'
#' # The yes_no argument can be modified to return a different response
#' # than 1 or 0. First position will be 'true' and second, 'false'
#' llm_verify(reviews, review, "is the customer happy", c("y", "n"))
#'
#'
#' # Number can also be used, this would be in the case that you wish to match
#' # the output values of existing predictions
#' llm_verify(reviews, review, "is the customer happy", c(2, 1))
#' }
#'
#'
#' @export
llm_verify <- function(.data,
col,
Expand Down
24 changes: 24 additions & 0 deletions r/cran-comments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## New submission

This is a new package submission. Run multiple 'Large Language Model'
predictions against a table. The predictions run row-wise over a specified
column. It works using a pre-determined one-shot prompt, along with the current
row's content. The prompt that is used will depend of the type of analysis
needed.

The README file is very short because all the information about how to use it is
this website: https://mlverse.github.io/mall/.

## R CMD check environments

- Mac OS M3 (aarch64-apple-darwin23), R 4.4.1 (Local)

- Mac OS x86_64-apple-darwin20.0 (64-bit), R 4.4.1 (GH Actions)
- Windows x86_64-w64-mingw32 (64-bit), R 4.4.1 (GH Actions)
- Linux x86_64-pc-linux-gnu (64-bit), R 4.4.1 (GH Actions)
- Linux x86_64-pc-linux-gnu (64-bit), R 4.5.0 (dev) (GH Actions)
- Linux x86_64-pc-linux-gnu (64-bit), R 4.3.3 (old release) (GH Actions)

## R CMD check results

0 errors ✔ | 0 warnings ✔ | 0 notes ✔
Loading