|
| 1 | +--- |
| 2 | +title: Configuring Open-WebUI |
| 3 | +description: Steps to configure Open-WebUI for usage |
| 4 | +logo: images/ibm-blue-background.png |
| 5 | +--- |
| 6 | + |
| 7 | +# Configuring Open-WebUI |
| 8 | + |
| 9 | +Now that you've gotten [Open-WebUI installed](../pre-work/README.md#open-webui) we need to configure it with `ollama` and Open-WebUI |
| 10 | +to talk to one another. The following screenshots will be from a Mac, but the gist of this should be the same on Windows and Linux. |
| 11 | + |
| 12 | +Open up Open-WebUI (assuming all you have done is `open-webui serve` and |
| 13 | +nothing else), and you should see something like the following: |
| 14 | + |
| 15 | + |
| 16 | +If you see this that means Open-WebUI is installed correctly, and we can continue configuration, if not, please find a workshop TA or |
| 17 | +raise your hand we'll be there to help you ASAP. |
| 18 | + |
| 19 | +Before clicking the "Getting Started" button, make sure that `ollama` has |
| 20 | +`granite3.1-dense` pulled down. |
| 21 | + |
| 22 | +Run the following command to confirm you have the [granite3.1-dense](https://ollama.com/library/granite3.1-dense) |
| 23 | +model downloaded in `ollama`. This may take a bit, but we should have a way to copy it directly on your laptop. |
| 24 | + |
| 25 | +If you didn't know, the supported languages with `granite3.1-dense` now include: |
| 26 | +- English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, Chinese (Simplified) |
| 27 | + |
| 28 | +And the Capabilities also include: |
| 29 | +- Summarization |
| 30 | +- Text classification |
| 31 | +- Text extraction |
| 32 | +- Question-answering |
| 33 | +- Retrieval Augmented Generation (RAG) |
| 34 | +- Code related tasks |
| 35 | +- Function-calling tasks |
| 36 | +- Multilingual dialog use cases |
| 37 | +- Long-context tasks including long document/meeting summarization, long document QA, etc. |
| 38 | + |
| 39 | +!!! note |
| 40 | + We need to figure out a way to copy the models into ollama without downloading. |
| 41 | + |
| 42 | +```bash |
| 43 | +ollama pull granite3.1-dense:8b |
| 44 | +``` |
| 45 | + |
| 46 | +Click the "Getting Started" button, and fill out the next screen, and click the |
| 47 | +"Create Admin Account" |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | +You should see the main page now, with `granite3.1-dense:latest` right there in |
| 52 | +the center! |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | +Ask it a question, see that it works as you expect...may I suggest: |
| 57 | + |
| 58 | +``` |
| 59 | +Who is Batman? |
| 60 | +``` |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | +Now you may notice that the answer is slighty different then the screen shot above. That's expected and nothing to worry about. If |
| 65 | +you have more questions about it raise your hand and one of the helpers would love to talk you about it. |
| 66 | + |
| 67 | +Congratulations! You have Open-WebUI running now, configured to work with `granite3.1-dense` and `Ollama`! |
| 68 | + |
| 69 | +!!! note |
| 70 | + This was done on your local machine, take a moment and realize if you |
| 71 | + needed to create a shared AI enviroment, this could be easily leveraged |
| 72 | + here. This is very out of scope of this workshop, but the TAs can help if |
| 73 | + you have some general questions around running this in this "space." |
| 74 | + |
0 commit comments