embed_text {rollama} | R Documentation |
Generate Embeddings
Description
Generate Embeddings
Usage
embed_text(
text,
model = NULL,
server = NULL,
model_params = NULL,
verbose = getOption("rollama_verbose", default = interactive())
)
Arguments
text |
text vector to generate embeddings for. |
model |
which model to use. See https://ollama.com/library for options. Default is "llama3". Set option(rollama_model = "modelname") to change default for the current session. See pull_model for more details. |
server |
URL to an Ollama server (not the API). Defaults to "http://localhost:11434". |
model_params |
a named list of additional model parameters listed in the documentation for the Modelfile. |
verbose |
Whether to print status messages to the Console
( |
Value
a tibble with embeddings.
Examples
## Not run:
embed_text(c("Here is an article about llamas...",
"R is a language and environment for statistical computing and graphics."))
## End(Not run)
[Package rollama version 0.1.0 Index]