Package: ollamar 1.2.1.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.1.9000.tar.gz
ollamar_1.2.1.9000.zip(r-4.5)ollamar_1.2.1.9000.zip(r-4.4)ollamar_1.2.1.9000.zip(r-4.3)
ollamar_1.2.1.9000.tgz(r-4.4-any)ollamar_1.2.1.9000.tgz(r-4.3-any)
ollamar_1.2.1.9000.tar.gz(r-4.5-noble)ollamar_1.2.1.9000.tar.gz(r-4.4-noble)
ollamar_1.2.1.9000.tgz(r-4.4-emscripten)ollamar_1.2.1.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'))

Peer review:

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

On CRAN:

aiapillmllmsollamaollama-api

8.00 score 40 stars 2 packages 35 scripts 820 downloads 31 exports 22 dependencies

Last updated 2 months agofrom:e45b5c58c3. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 11 2024
R-4.5-winOKOct 11 2024
R-4.5-linuxOKOct 11 2024
R-4.4-winOKOct 11 2024
R-4.4-macOKOct 11 2024
R-4.3-winOKOct 11 2024
R-4.3-macOKOct 11 2024

Exports:append_messagechatcheck_option_validcheck_optionscopycreatecreate_messagecreate_messagescreate_requestdeletedelete_messageembedembeddingsencode_images_in_messagesgenerateimage_encode_base64insert_messagelist_modelsmodel_availohelpprepend_messagepspullpushresp_processsearch_optionsshowtest_connectionvalidate_messagevalidate_messagesvalidate_options

Dependencies:askpassbase64encclicrayoncurlfansigluehttr2jsonlitelifecyclemagrittropensslpillarpkgconfigR6rappdirsrlangsystibbleutf8vctrswithr

Using ollamar

Rendered fromollamar.Rmdusingknitr::rmarkdownon Oct 11 2024.

Last update: 2024-09-11
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 model from a Modelfilecreate
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