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

help wanted: better doc (idiot-proof level) #44

Open
tjbck opened this issue Jan 9, 2024 · 39 comments
Open

help wanted: better doc (idiot-proof level) #44

tjbck opened this issue Jan 9, 2024 · 39 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@tjbck
Copy link
Contributor

tjbck commented Jan 9, 2024

Hi guys! I've been noticing some people struggling with installation/update process for ollama-webui and I feel like it would be extremely helpful for a lot of people if we could have a more thorough documentation!

image

Unfortunately, I won't have much time this week and If anyone can get the ball rolling for this (so that I can focus on adding more features), It'll be greatly appreciated. Thanks in advance, guys!

@tjbck tjbck added documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jan 9, 2024
@tjbck tjbck pinned this issue Jan 9, 2024
@tjbck tjbck changed the title feat: better doc feat: better doc (idiot-proof level) Jan 9, 2024
@justinh-rahb
Copy link
Contributor

justinh-rahb commented Jan 9, 2024

@tjbck I think I can help here, I'll have a look at the docker instructions specifically first.

open-webui/open-webui#436 should help people unfamiliar with using Docker.

@oliverbob
Copy link

I really love this bro @tjbck. And hey, I thank you for all the features in the RAG and full user/admin support that you implemented from my suggestions. You are an amazing, hardworking developer. Will be clicking that sponsor button very, very soon.

I wish we're just one block away from each other so we can better collaborate.

@oliverbob
Copy link

Why not make me a contributor so I can work on the docs then, work with other devs to work on it too, since your PR is rising like wild fire.

@svenoaks
Copy link

Idiot here, can someone help me update the docker container? I've got the container with webui only. If I delete the container, then install with the same listed command, it seems I get the same old version (v1.0.0-alpha.40).

I truly tried to search the issues for instructions, but can't find any

@justinh-rahb
Copy link
Contributor

justinh-rahb commented Jan 10, 2024

Idiot here, can someone help me update the docker container? I've got the container with webui only. If I delete the container, then install with the same listed command, it seems I get the same old version (v1.0.0-alpha.40).

I truly tried to search the issues for instructions, but can't find any

Apologies, I am working on an updating doc as I type but it need polish and review. For now, please try:

docker rm -f ollama-webui
docker pull ghcr.io/ollama-webui/ollama-webui:main
<your docker run command>

I think you probably were missing the docker pull step to get the latest image. Hope this helps you out, and I'll get back to work on documenting it properly 👍

@svenoaks
Copy link

@justinh-rahb Thank you! it worked, I did have to use docker pull ghcr.io/ollama-webui/ollama-webui:main to pull it

@justinh-rahb
Copy link
Contributor

@justinh-rahb Thank you! it worked, I did have to use docker pull ghcr.io/ollama-webui/ollama-webui:main to pull it

Quite right, I forgot the container registry, my bad. Glad you've got it sorted!

@jukofyork
Copy link

jukofyork commented Jan 12, 2024

Idiot here, can someone help me update the docker container? I've got the container with webui only. If I delete the container, then install with the same listed command, it seems I get the same old version (v1.0.0-alpha.40).

I truly tried to search the issues for instructions, but can't find any

Yeah, I'm pretty tech savy and I struggled badly with this too:

Eventually after stopping, removing and reloading a few times, I thought the rag stuff much be on a different branch so tried changing :main to :rag, etc after seeing those were Github tags.

After none of that worked I eventually went to the URL in the docker command hoping to find the right tag but somehow it went to a Web page that looked like the github and I managed to download something from there that was quite a few 100mb so I knew something was different.

I've literally no idea how I did it or if I could do it again, and still don't understand why stop+rm of the Docker command didn't seem to work?

EDIT: I see the pull command is what I needed! I was just doing stop, rm and then run. doh!

@justinh-rahb
Copy link
Contributor

Hello @jukofyork I've had to close and reopen the tab I've opened Ollama-WebUI in, and sometimes disable cache to force a complete refresh even after pulling a new image and restarting the container, F5/Cmd+R isn't always enough.

@tjbck
Copy link
Contributor Author

tjbck commented Jan 16, 2024

I've been super busy writing a research paper the last couple of days, but I should have more time to work new features for the project starting from tomorrow! @justinh-rahb Thanks a lot for helping, Your efforts haven't gone unnoticed!

@turnercore
Copy link

This is a docs question related to the new RAG implementation

  • What vector store is webui using?
  • Is it doing any sort of long-term storage or memory augmentation?
  • Are the documents being stored as well, or just chunks, or is it just being processed when you add a file?

@tjbck
Copy link
Contributor Author

tjbck commented Jan 16, 2024

For everyone's information, One thing I want to emphasize is that people seem to forget that this is a community driven project, which means everyone is dedicating their free time and working on this project alongside their full-time job. So if you guys think the project could use better documentation, I actively encourage to make a PR, be the change you want to see in the world!

@justinh-rahb
Copy link
Contributor

@tjbck we thank you for your dedication and commitment to making this the best interface for Ollama, I'll continue to show my appreciation for your work by trying to tackle as many issues for you as I can confidently answer. Keep up the great work you're doing! 🚀

@oliverbob
Copy link

For everyone's information, One thing I want to emphasize is that people seem to forget that this is a community driven project, which means everyone is dedicating their free time and working on this project alongside their full-time job. So if you guys think the project could use better documentation, I actively encourage to make a PR, be the change you want to see in the world!

Noted @tjbck. Glad to hear.

@mafrasiabi
Copy link

I have trouble using litellm and create a config file that works with webui, @justinh-rahb could you please add the config file in docs and add a docker compose file too. I think all of us can benefit from this.

@iplayfast
Copy link

After spending an hour trying to get a simple web ui up and running, I'd say get rid of docker, it's a huge stumbling block, to a web interface. It's like having to install an OS in order to run a program. Total overkill.

@0xb15d3
Copy link

0xb15d3 commented Jan 19, 2024

Docker is a life saver for me, especially now that the webui has other backend components. I don't know what the guy above me is talking about.

@justinh-rahb
Copy link
Contributor

justinh-rahb commented Jan 19, 2024

After spending an hour trying to get a simple web ui up and running, I'd say get rid of docker, it's a huge stumbling block, to a web interface. It's like having to install an OS in order to run a program. Total overkill.

@iplayfast if you are having trouble setting up Ollama WebUI with Docker, I want to make it clear that switching to a non-Docker setup will not necessarily make the process any easier. The underlying complexity of setting up and configuring a complex web application such as this remains the same, regardless of whether you use Docker or not.

While it may be tempting to look for an easier solution, such as switching to a non-Docker setup, I believe that this will ultimately be more time-consuming and frustrating in the long run.

That all being said, native-installers for various platforms are under consideration (#470), but are not as high-priority as features right now.

@oliverbob
Copy link

@iplayfast What exactly do yo experience causing you to believe its an overkill? Are you suggesting a branch or fork without the use of docker? What do you have in mind?

@jukofyork
Copy link

jukofyork commented Feb 3, 2024

I think one thing that could be improved is an explanation of the steps needed to get the frontend to reflect the changes after an update.

I wrote down all the steps needed to do an update in a text file and even when I followed these again it took a while for the frontend to actually show it had updated and everything (including the version number) stayed the same.

@tjbck tjbck changed the title feat: better doc (idiot-proof level) help wanted: better doc (idiot-proof level) Feb 4, 2024
@stephenhouser
Copy link

I'm putting this in the "better doc" issue, though it may belong elsewhere. I would not rate it as a newbie issue, I've been using Unix/Linux for many years.

This option specification:
--webui[port=PORT] Set the port for the web user interface.

being translated to a command line like:

./run-compose.sh --webui[port=1234]

Is completely non-standard. In almost every case brackets [] mean an optional argument/parameter and you are not supposed to actually have to type them in. Having to look at the source code to sort it out is not friendly.

@tjbck
Copy link
Contributor Author

tjbck commented Feb 8, 2024

@stephenhouser I agree, someone should make a PR to change the behaviour of the ./run-compose.sh file.

@jonasbg
Copy link

jonasbg commented Feb 10, 2024

After spending an hour trying to get a simple web ui up and running, I'd say get rid of docker, it's a huge stumbling block, to a web interface. It's like having to install an OS in order to run a program. Total overkill.

If you think docker is complicated then I promise you a regular installation is far more complicated and much further from making an installation that works with everyone.

Btw, stating that docker is like installing an OS is only true for those running windows, docker is not a VM. You do not install another OS when running things in a docker container. Every process is executed and owned by the host system.

This project is one of the easiest I've got up and running. They got everything right. Focused on docker and sqlite makes it a breeze to install. No complicated dependencies and feature creeping such as mongodb, redis etc.

I've now installed it locally on three machines and deployed it to my local kubernetes.

I don't think you understand the implications of your request, both for the devs but also for the users.

@jukofyork
Copy link

jukofyork commented Feb 25, 2024

I still can't seem to get this to update:

#!/bin/bash
sudo docker stop ollama-webui
sudo docker rm -f ollama-webui
sudo docker pull ghcr.io/ollama-webui/ollama-webui:main
sudo docker run -d --network=host -v ollama-webui:/app/backend/data -e OLLAMA_API_BASE_URL=http://127.0.0.1:11434/api --name ollama-webui --restart always ghcr.io/ollama-webui/ollama-webui:main

(I actually use a different OLLAMA_API_BASE_URL because I'm also serving the Ollama API)

Ollama Web UI Version
v1.0.0-alpha.100

It appears to be doing lots of "stuff" like downloading and unzipping files (unlike when I was just doing docker run and it did nothing), but actually getting it to update seems to be completely random - I followed these exact same steps last time to get it to v1.0.0-alpha.100...

I should point out I have a degree in CompSci and have been using Unix for 30 years - if I can't get this to update, what hope is there for other people!?

This absolutely needs some completely foolproof documentation on how to update it or else 90% of the likely audience are going to be turned off. IMO the problem isn't using Docker itself; there are plenty of people who happily install/use lots of Linux tools without understanding the steps they are following - it's simply that there are no proper instructions...

@jukofyork
Copy link

jukofyork commented Feb 25, 2024

Managed to get it to update by looking through the packages and found the name had been changed:

#!/bin/bash
sudo docker stop ollama-webui
sudo docker rm -f ollama-webui
sudo docker pull ghcr.io/open-webui/open-webui:main
sudo docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_API_BASE_URL=http://127.0.0.1:11434/api --name open-webui --restart always ghcr.io/open-webui/open-webui:main

but you probably don't want to do it this way as it seems to clear the settings and reset the admin login...

I assume this will keep the new open-webui up-to-date (so long as the name doesn't change again):

#!/bin/bash
sudo docker stop open-webui
sudo docker rm -f open-webui
sudo docker pull ghcr.io/open-webui/open-webui:main
sudo docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_API_BASE_URL=http://192.168.1.110:11434/api --name open-webui --restart always ghcr.io/open-webui/open-webui:main

@justinh-rahb
Copy link
Contributor

justinh-rahb commented Feb 25, 2024

@jukofyork
Copy link

@jukofyork https://docs.openwebui.com/migration

Thanks - I should have realized the name had changed! :)

@jukofyork
Copy link

LOL, it's turned back into:

Ollama Web UI Version
v1.0.0-alpha.100

???

It definitely was "Open Web Ui" earlier today as I noticed the option to turn off the suggested prompts, but for some unknown reason I'm now back to this 😕

@jukofyork
Copy link

jukofyork commented Feb 25, 2024

Running the steps in the bash script I posted above has now gone back to:

Open WebUI Version
v0.1.104 (latest)

but why did it revert itself?

I definitely deleted the old docker image and can confirm docker ps shows this:

CONTAINER ID   IMAGE                                COMMAND           CREATED         STATUS         PORTS     NAMES
501e6a1dcee5   ghcr.io/open-webui/open-webui:main   "bash start.sh"   6 minutes ago   Up 6 minutes             open-webui

I've literally done nothing to the machine and yet it somehow reverted to the old version on its own???

@jukofyork
Copy link

jukofyork commented Feb 26, 2024

Yeah, I'm beyond confused now:

  • There seems to be a copy of the old version running somehow as if I use an ssh tunnel from my phone to this machine I can access the old version and it's fully functional - letting me log in/out, change settings, etc.
  • Yet if I use VNC to log into the machine or any other machine on the local network it's showing the new version again (but it magically reverted itself earlier).

I'm beginning to side with the "Docker isn't a good idea" argument now as stuff like this just makes absolutely no sense...

@tjbck
Copy link
Contributor Author

tjbck commented Feb 26, 2024

@jukofyork it might just be a browser cache issue :)

@jukofyork
Copy link

@jukofyork it might just be a browser cache issue :)

Yeah, but how can it be fully functional and let me use it? Surely if I've deleted the Docker image it should break as soon as I try to use something that needs to write to the backend?

Also earlier today I used the exact same Firefox instance on the same machine to log in and was definitely using the new version, then several hours later the same Firefox instance on the same machine was clearly showing the old version (as was the ssh tunnel)?

@justinh-rahb
Copy link
Contributor

justinh-rahb commented Feb 26, 2024

I'm beginning to side with the "Docker isn't a good idea" argument now as stuff like this just makes absolutely no sense...

You don't need Docker to mysteriously end up with multiple dueling installations of Ollama or Open WebUI, we've also seen people manage to do this without even touching Docker... 🙄

@jukofyork
Copy link

Yeah, it definitely is some weird caching issue as I just uploaded a document on what appears to be Ollama WebUI and it also shows up on the Open WebUI instance.

I still don't understand how a caching issue can revert to the old version from the same browser instance though?

@jukofyork
Copy link

I'm beginning to side with the "Docker isn't a good idea" argument now as stuff like this just makes absolutely no sense...

You don't need Docker to mysteriously end up with multiple dueling installations of Ollama or Open WebUI, we've also seen people manage to do this without even touching Docker... 🙄

Well I did spend 3 days trying to compile Ollama only to find the service the old version was creating was starting up the old version of the binary it had hidden away somewhere lol.

@jukofyork
Copy link

Well have cleared both browser caches and they both showing the new version again. Fingers crossed I don't wake up to "Ollama Web UI Version v1.0.0-alpha.100" 😁

@oliverbob
Copy link

Can you reinstall ollama and the webui from scratch? Lets see how it works.

@oliverbob
Copy link

Looks like docker build -t open-webui . needs to come back in our docs for first time visitors. I'm essentially working with lots of schools these days, and I'm guiding them through ways to install OI. Can someone restore it from the main installation guide? Do you have time for it justinh-rahb or is it possible?

Thanks.

@tjbck tjbck unpinned this issue Mar 24, 2024
@bozo32
Copy link

bozo32 commented Mar 29, 2024

I volunteer to be an idiot.

I work on OS X (home machine), Linux (without root access, I ssh in, it is a stand alone PC with a titan 12gb gpu) and a HPC that runs scientific linux (some redhat variant) (no docker...uses singularity, have to declare which/how many GPUs I'm using each session, have to close out GPUs after each session to stop billing, it has a bunch of NVIDIA and AMD GPUs. It uses slurm)

Installation on my Mac is trivial

installation on the ssh accessed linux box with cloud flared was a trick
I used a docker setup that I pieced together by reading this docker compose file: https://github.com/jgarland79/ollama-webui-docker
the only problem is that calls from open-webui to ollama containers didn't use ollama/ollama...I had to use the hard internal IP

I have not figured out how to set it up on the cluster in a way that would not be a total pain...every time I initiate a session I have to

  1. login
  2. pick how many/what kind of gpus I want and get them
  3. setup ollama

@tjbck tjbck transferred this issue from open-webui/open-webui Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests