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

Allow creating and launching an OpenWebUI container via Dev UI #600

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

iocanel
Copy link
Collaborator

@iocanel iocanel commented May 18, 2024

Resolves: #581

The pull request introduces the following:

  • A new Open WebUI card under langchain4j extension (when using OpenAI or Ollama).
  • The Open WebUI card allows starting, stoping or launching Open WebUI.
  • OpenAI api key is automatically passed to the container (for OpenAI)
  • Ollama base url is automatically passed to the container (for Ollama)
  • Options for custom env variables, env variable mapping and port bindings are provided.
  • Added support for automatically signing up

@iocanel iocanel requested a review from a team as a code owner May 18, 2024 13:16
@iocanel iocanel marked this pull request as draft May 18, 2024 21:07
@iocanel
Copy link
Collaborator Author

iocanel commented May 18, 2024

There is an issue with the volume handling. It does not appear if you've created the container manually, but will hit users that never used open-webui before and just tried to created from devui.

Converting to draft till I solve this one.

@iocanel iocanel marked this pull request as ready for review May 19, 2024 14:31
@geoand
Copy link
Collaborator

geoand commented May 21, 2024

@iocanel is this ready or still in draft?

@iocanel
Copy link
Collaborator Author

iocanel commented May 21, 2024

@iocanel is this ready or still in draft?

This is ready

@jmartisk jmartisk self-requested a review May 21, 2024 06:04
@jmartisk
Copy link
Collaborator

IIUC this just connects to the remote model provider directly by itself, so we can't have it working with our RAG mechanisms etc, right? Or could we make it work by perhaps, exposing the Ollama/OpenAI API by Quarkus as some kind of wrapper that adds our RAG and applies our configuration and having the OpenWebUI call the remote model through that?

@iocanel
Copy link
Collaborator Author

iocanel commented May 21, 2024

IIUC this just connects to the remote model provider directly by itself, so we can't have it working with our RAG mechanisms etc, right? Or could we make it work by perhaps, exposing the Ollama/OpenAI API by Quarkus as some kind of wrapper that adds our RAG and applies our configuration and having the OpenWebUI call the remote model through that?

Your understanding is correct, it just runs an Open WebUI instance that is aligned with the app in terms of model.
Open WebUI does provide in its interface some options for configuring RAG, but I don't know if there is room for integration. It's definetely something we can explore in the future.

@geoand
Copy link
Collaborator

geoand commented May 22, 2024

Should we merge this or are we waiting for some changes?

@iocanel
Copy link
Collaborator Author

iocanel commented May 28, 2024

Updated PR:

  • added docker pull if needed
  • removed reference to a specific network (e.g. bridge, podman etc).
  • added progress bar.

@iocanel
Copy link
Collaborator Author

iocanel commented May 28, 2024

For anyone trying it with ollama running locally don't forget to set OLLAMA_HOST=0.0.0.0 otherwise ollama won't be visible from the container.

@geoand
Copy link
Collaborator

geoand commented May 31, 2024

I just built this locally but I don't see anything new the DevUI so I guess I am missing something :)

@geoand
Copy link
Collaborator

geoand commented Jun 5, 2024

@iocanel any idea about ^?

@iocanel
Copy link
Collaborator Author

iocanel commented Jun 6, 2024

@iocanel any idea about ^?

The only thing I can think of is that either you sample is not using ollama, openai or its not using a SNAPSHOT. Let me try it again.

@iocanel
Copy link
Collaborator Author

iocanel commented Jun 6, 2024

After rebasing, I can no longer see anything myself

@geoand
Copy link
Collaborator

geoand commented Jun 6, 2024

So it's not just me :)

@iocanel

This comment was marked as duplicate.

@iocanel
Copy link
Collaborator Author

iocanel commented Jun 10, 2024

So it's not just me :)

Yeah, the PR needed alignment with the new module structure. Fixed now.

@geoand
Copy link
Collaborator

geoand commented Jun 10, 2024

I just tried it and it woks nicely! The UI could certainly be improved, but I think we should merge now and improve later

@geoand
Copy link
Collaborator

geoand commented Jun 11, 2024

cc @jmartisk

@jmartisk jmartisk merged commit c3a7e1e into quarkiverse:main Jun 11, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explore adding Open WebUI to the DevUI when using Ollama
3 participants