Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support for free and local LLMs (ollama) #95

Open
kieran-mace opened this issue May 2, 2024 · 7 comments
Open

Feature Request: Support for free and local LLMs (ollama) #95

kieran-mace opened this issue May 2, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@kieran-mace
Copy link

kieran-mace commented May 2, 2024

Ollama is a fantastic tool, that enables user to run freely available LLMs locally and chat with them via the command line. They regularly update what LLMs are available (llama3 became available this week)

My feature request is to enable the chattr app to interact with these local and open source instances.

@kieran-mace kieran-mace changed the title Feature Request: Support for local LLMs (ollama) Feature Request: Support for free and local LLMs (ollama) May 2, 2024
@edgararuiz
Copy link
Collaborator

Hi! That's actually in the works, I have a branch that already has a working prototype. I just need to document it. Feel free to try it and provide feedback 😄

pak::pak("mlverse/chattr@ollama")
library(chattr)
chattr_use("ollama")
chattr("hi")

@edgararuiz edgararuiz added the enhancement New feature or request label May 2, 2024
@ManuelSpinola
Copy link

Hi!

I followed your instructions but I cannot run Ollama.

pak::pak("mlverse/chattr@ollama")

ℹ No downloads are needed
✔ 1 pkg + 44 deps: kept 45 [1.1s]

chattr_use("ollama")

── chattr
• Provider: Ollama
• Path/URL: http://localhost:11434/
• Model: llama2
• Label: Ollama

chattr("hi")
Error in chattr():
! ! The 'llama2' model is not found.
Would you like to download it?
Backtrace:

  1. chattr::chattr("hi")

@ga-it
Copy link

ga-it commented Jun 18, 2024

Rather than work specifically with ollama, could you allow defining the endpoint for the OpenAI connection?

In addition to the endpoint, this should also then allow selection of the specific model to connect to and the litellm api key.

I believe the OpenAI package does most of this. Inheriting this as the backend could allow chattr to focus on the front end RStudio / RShiny integration.

This would allow connection to LiteLLM and from there proxy connection to ollama or a variety of other LLMs

@ManuelSpinola
Copy link

ManuelSpinola commented Jun 18, 2024 via email

@ManuelSpinola
Copy link

ManuelSpinola commented Jun 18, 2024 via email

@ga-it
Copy link

ga-it commented Jun 18, 2024

Apologies - to clarify I was suggesting an alternative approach to @mlverse for the enhancement

@ManuelSpinola
Copy link

ManuelSpinola commented Jun 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants