'Ollama' Language Models


[Up] [Top]

Documentation for package ‘ollamar’ version 1.2.2

Help Pages

append_message Append message to a list
chat Generate a chat completion with message history
check_options Check if a vector of options are valid
check_option_valid Check if an option is valid
copy Copy a model
create Create a model from a Modelfile
create_message Create a message
create_messages Create a list of messages
create_request Create a httr2 request object
delete Delete a model and its data
delete_message Delete a message in a specified position from a list
embed Generate embedding for inputs
embeddings Generate embeddings for a single prompt - deprecated in favor of 'embed()'
encode_images_in_messages Encode images in messages to base64 format
generate Generate a response for a given prompt
image_encode_base64 Read image file and encode it to base64
insert_message Insert message into a list at a specified position
list_models List models that are available locally
model_avail Check if model is available locally
model_options Model options
ohelp Chat with a model in real-time in R console
package_config Package configuration
prepend_message Prepend message to a list
ps List models that are currently loaded into memory
pull Pull/download a model from the Ollama library
push Push or upload a model to a model library
resp_process Process httr2 response object
search_options Search for options based on a query
show Show model information
test_connection Test connection to Ollama server
validate_message Validate a message
validate_messages Validate a list of messages
validate_options Validate additional options or parameters provided to the API call