Package: ollamar 1.2.2.9000

ollamar: 'Ollama' Language Models

An interface to easily run local language models with 'Ollama' <https://ollama.com> server and API endpoints (see <https://github.com/ollama/ollama/blob/main/docs/api.md> for details). It lets you run open-source large language models locally on your machine.

Authors:Hause Lin [aut, cre, cph], Tawab Safi [aut, ctb]

ollamar_1.2.2.9000.tar.gz
ollamar_1.2.2.9000.zip(r-4.5)ollamar_1.2.2.9000.zip(r-4.4)ollamar_1.2.2.9000.zip(r-4.3)
ollamar_1.2.2.9000.tgz(r-4.5-any)ollamar_1.2.2.9000.tgz(r-4.4-any)ollamar_1.2.2.9000.tgz(r-4.3-any)
ollamar_1.2.2.9000.tar.gz(r-4.5-noble)ollamar_1.2.2.9000.tar.gz(r-4.4-noble)
ollamar_1.2.2.9000.tgz(r-4.4-emscripten)ollamar_1.2.2.9000.tgz(r-4.3-emscripten)
ollamar.pdf |ollamar.html
ollamar/json (API)
NEWS

# Install 'ollamar' in R:
install.packages('ollamar', repos = c('https://hauselin.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/hauselin/ollama-r/issues

Pkgdown site:https://hauselin.github.io

On CRAN:

aiapillmllmsollamaollama-api

9.23 score 74 stars 5 packages 74 scripts 1.2k downloads 32 exports 22 dependencies

Last updated 23 days agofrom:77fdeea0c3. Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 28 2025
R-4.5-winOKJan 28 2025
R-4.5-macOKJan 28 2025
R-4.5-linuxOKJan 28 2025
R-4.4-winOKJan 28 2025
R-4.4-macOKJan 28 2025
R-4.3-winOKJan 28 2025
R-4.3-macOKJan 28 2025

Exports:append_messagechatcheck_option_validcheck_optionscopycreatecreate_messagecreate_messagescreate_requestdeletedelete_messageembedembeddingsencode_images_in_messagesgenerateimage_encode_base64insert_messagelist_modelsmodel_availohelpprepend_messagepspullpushresp_processsearch_optionsshowtest_connectionvalidate_messagevalidate_messagesvalidate_optionsver

Dependencies:askpassbase64encclicrayoncurlfansigluehttr2jsonlitelifecyclemagrittropensslpillarpkgconfigR6rappdirsrlangsystibbleutf8vctrswithr

Using ollamar

Rendered fromollamar.Rmdusingknitr::rmarkdownon Jan 28 2025.

Last update: 2024-12-30
Started: 2024-09-10

Readme and manuals

Help Manual

Help pageTopics
Append message to a listappend_message
Generate a chat completion with message historychat
Check if an option is validcheck_option_valid
Check if a vector of options are validcheck_options
Copy a modelcopy
Create a modelcreate
Create a messagecreate_message
Create a list of messagescreate_messages
Create a httr2 request objectcreate_request
Delete a model and its datadelete
Delete a message in a specified position from a listdelete_message
Generate embedding for inputsembed
Generate embeddings for a single prompt - deprecated in favor of 'embed()'embeddings
Encode images in messages to base64 formatencode_images_in_messages
Generate a response for a given promptgenerate
Read image file and encode it to base64image_encode_base64
Insert message into a list at a specified positioninsert_message
List models that are available locallylist_models
Check if model is available locallymodel_avail
Model optionsmodel_options
Chat with a model in real-time in R consoleohelp
Package configurationpackage_config
Prepend message to a listprepend_message
List models that are currently loaded into memoryps
Pull/download a model from the Ollama librarypull
Push or upload a model to a model librarypush
Process httr2 response objectresp_process
Search for options based on a querysearch_options
Show model informationshow
Test connection to Ollama servertest_connection
Validate a messagevalidate_message
Validate a list of messagesvalidate_messages
Validate additional options or parameters provided to the API callvalidate_options
Retrieve Ollama versionver