langflow icon indicating copy to clipboard operation
langflow copied to clipboard

A better implementation of the Ollama component

Open YamonBot opened this issue 1 year ago • 5 comments

A draft to synchronize the model using the latest Langflow architecture and to improve it according to the latest Langchain specifications.

YamonBot avatar Apr 15 '24 05:04 YamonBot

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langflow ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 28, 2024 3:21pm

vercel[bot] avatar Apr 15 '24 05:04 vercel[bot]

Hey @yamonkjd How are you?

Thanks for all the help.

We'd love to get Ollama to an awesome level. Do you plan on having this ready soon? I could take a crack at it if you are swamped today.

ogabrielluiz avatar May 10 '24 12:05 ogabrielluiz

Hey @yamonkjd How are you?

Thanks for all the help.

We'd love to get Ollama to an awesome level. Do you plan on having this ready soon? I could take a crack at it if you are swamped today.

Hello,

The testing for Ollama's Keepalive was not normal, so we are still working on it.

We will complete it and reach out to you within today.

YamonBot avatar May 13 '24 03:05 YamonBot

I removed the callback element as it seems it will be replaced with Langflow's management methods. I also removed caching as its operation was not guaranteed (I think this will likely be integrated into Langflow as well). Before the request, I performed Make lint and confirmed that there are no conflicts.

However, since it is not the initially written version, it seems there is an error from Langflow itself (Openapi key). It seems there are no problems in the main code, and there have been many requests, so I request a merge.

YamonBot avatar May 13 '24 08:05 YamonBot

This proposal was simply made because we need it. If there is a better implementation, it can be discarded or used simply for reference. We have also been considering implementing interaction features using Ollama's API, which would allow us to add models directly or specify model files ourselves (such as selecting a model from Ollama's official model list and installing it on an instance).

YamonBot avatar May 13 '24 08:05 YamonBot