Skip to content

Commit

Permalink
adds documentation for options
Browse files Browse the repository at this point in the history
  • Loading branch information
JBGruber committed Mar 28, 2024
1 parent 301bb3f commit 1a886fb
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 1 deletion.
44 changes: 44 additions & 0 deletions R/rollama-package.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#' @keywords internal
"_PACKAGE"

#' @title rollama Options
#' @name rollama-options
#'
#' @description
#' The behaviour of `rollama` can be controlled through `options()`. Specifically,
#' the options below can be set.
#'
#' @details
#' \describe{
#' \item{rollama_server}{\describe{
#' This controls the default server where Ollama is expected to run. It assumes
#' that you are running Ollama locally in a Docker container.#'
#' \item{default:}{\code{"http://localhost:11434"}}
#' }}
#' \item{rollama_model}{\describe{
#' The default model is llama2, which is a good overall option with reasonable
#' performance and size for most tasks. You can change the model in each
#' function call or globally with this option.#'
#' \item{default:}{\code{"llama2"}}
#' }}
#' \item{rollama_verbose}{\describe{
#' Whether the package tells users what is going on, e.g., showing a spinner
#' while the models are thinking or showing the download speed while pulling
#' models. Since this adds some complexity to the code, you might want to
#' disable it when you get errors (it won't fix the error, but you get a
#' better error trace).
#' \item{default:}{\code{TRUE}}
#' }}
#' \item{rollama_config}{\describe{
#' The default configuration or system message. If NULL, the system message
#' defined in the used model is employed.#'
#' \item{default:}{None}
#' }}
#' }
#' @examples
#' options(rollama_config = "You make answers understandable to a 5 year old")
NULL

## usethis namespace: start
## usethis namespace: end
NULL
5 changes: 4 additions & 1 deletion inst/WORDLIST
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
CMD
ChatGPT
Codecov
Embeddings
Hvitfeldt
JSON
LLM
LLMs
Lifecycle
Modelfile
ORCID
Ollama
OpenAI's
OpenAI’s
RMDs
Reichardt
behaviour
config
embeddings
http
httr
llava
macOS
modelfile
modelname
orca
Expand Down
40 changes: 40 additions & 0 deletions man/rollama-options.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions man/rollama-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1a886fb

Please sign in to comment.