{"id":8282,"date":"2024-10-29T01:31:00","date_gmt":"2024-10-29T05:31:00","guid":{"rendered":"https:\/\/www.both.org\/?p=8282"},"modified":"2024-10-31T21:49:36","modified_gmt":"2024-11-01T01:49:36","slug":"open-webui-a-powerful-open-source-interface-for-llm","status":"publish","type":"post","link":"https:\/\/www.both.org\/?p=8282","title":{"rendered":"Open WebUI: A Powerful, Open Source Interface for LLM"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"8282\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><\/div>\n<p>OpenWebUI offers a robust, feature-packed, and intuitive self-Hosted interface that operates seamlessly offline. It supports various large language models like Ollama and OpenAI-compatible APIs, Open WebUI is open source with an MIT license. It is easy to download and install and it has excellent documentation. I chose to install it on both my Linux computer and on the M2 MacBook Air. The software is written in Svelte, Python, and TypeScript and has a community of over two-hundred thirty developers working on it.<\/p>\n\n\n\n<p>The documentation states that one of its key <a href=\"https:\/\/docs.openwebui.com\/features\">features<\/a> is effortless setup. It was a easy to install. I chose to use the Docker. It boasts a number of other great features including OpenAI API integration, full Markdown and Latex support, a model builder to easily create Ollama models within the application. Be sure to check the documentation for all nuances of this amazing software.<\/p>\n\n\n\n<p>I decided to install Open WebUI with bundled Ollam support for CPU only since my Linux computer does not have a GPU. This container Image unites the power of both Open-WebUI and Ollama for an effortless setup. I used the following Docker install script copied from the Github repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ docker run -d -p 3000:8080 -v ollama:\/root\/.ollama -v open-webui:\/app\/backend\/data --name open-webui --restart always ghcr.io\/open-webui\/open-webui:ollama<\/code><\/pre>\n\n\n\n<p>I chose a slightly different install on the MacBook, opting to use the existing Ollama install to conserve space on the smaller host drive. I used the following command taken from the Github repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>% docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:\/app\/backend\/data --name open-webui --restart always ghcr.io\/open-webui\/open-webui:main<\/code><\/pre>\n\n\n\n<p>Once the installation was complete I pointed my browser to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;localhost:3000<\/code><\/pre>\n\n\n\n<p>I was presented with a login page and asked to supply my email and a password.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"571\" src=\"https:\/\/www.both.org\/wp-content\/uploads\/2024\/10\/SignInToOpenWeb-1024x571-1.png\" alt=\"\" class=\"wp-image-8285\" style=\"width:876px;height:auto\"\/><figcaption class=\"wp-element-caption\">Screen picture by Don Watkins CC by SA 4.0<\/figcaption><\/figure>\n\n\n\n<p>The first-time login will use the &#8216;Sign up&#8217; link and provide your name, email, and password. Subsequent logins require email and password. After logging in the first time, you will be presented with &#8220;What&#8217;s New&#8221; about the project and software.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1155\" height=\"757\" src=\"https:\/\/www.both.org\/wp-content\/uploads\/2024\/10\/OpenWebUI_2nd.png\" alt=\"\" class=\"wp-image-8287\" style=\"width:890px;height:auto\"\/><figcaption class=\"wp-element-caption\">Screen picture by Don Watkins CC by SA 4.0<\/figcaption><\/figure>\n\n\n\n<p>After pressing &#8220;Okay, Let&#8217;s Go!&#8221; I am presented with this display.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1273\" height=\"669\" src=\"https:\/\/www.both.org\/wp-content\/uploads\/2024\/10\/FirstLogin.png\" alt=\"\" class=\"wp-image-8290\" style=\"width:882px;height:auto\"\/><figcaption class=\"wp-element-caption\">Screen picture by Don Watkins CC by SA 4.0<\/figcaption><\/figure>\n\n\n\n<p>Now I am ready to start using Open WebUI.<\/p>\n\n\n\n<p>The first thing you should do is click &#8216;Select a Model&#8217; at the top left of the display. You can then search for models available from the <a href=\"https:\/\/Ollama.com\">Ollama<\/a> project.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"942\" height=\"328\" src=\"https:\/\/www.both.org\/wp-content\/uploads\/2024\/10\/SelectAModel.png\" alt=\"\" class=\"wp-image-8292\" style=\"width:899px;height:auto\"\/><figcaption class=\"wp-element-caption\">Screen picture by Don Watkins CC by SA 4.0<\/figcaption><\/figure>\n\n\n\n<p>Upon initial installation, you will need to download a model from <a href=\"https:\/\/ollama.com\/\">Ollama.com<\/a>. I enter the model name I want in the search window and press &#8216;Enter.&#8217; The software downloads the model to my computer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"187\" src=\"https:\/\/www.both.org\/wp-content\/uploads\/2024\/10\/SearchandPull.png\" alt=\"\" class=\"wp-image-8294\"\/><figcaption class=\"wp-element-caption\">Screen picture by Don Watkins CC by SA 4.0<\/figcaption><\/figure>\n\n\n\n<p>Now that the model is downloaded and verified, I can begin using Open WebUI with my locally hosted <a href=\"https:\/\/ollama.com\/library\/phi3.5\">Phi3.5<\/a> model. Other models can be downloaded and easily installed as well. Be sure to consult the excellent <a href=\"https:\/\/docs.openwebui.com\/getting-started\/\">getting started guide<\/a> and have fun using this feature rich interface. The project has some <a href=\"https:\/\/docs.openwebui.com\/category\/-tutorials\">tutorials<\/a> to assist new users. In conclusion, launching into an immersive experience through their intuitively designed interface allows users of Open-WebUI to leverage its comprehensive array of features fully.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenWebUI offers a robust, feature-packed, and intuitive self-Hosted interface that operates seamlessly offline. It supports various large language<\/p>\n","protected":false},"author":32,"featured_media":4014,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[307,5],"tags":[558],"class_list":["post-8282","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-linux","tag-llm"],"modified_by":"David Both","_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/8282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8282"}],"version-history":[{"count":11,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/8282\/revisions"}],"predecessor-version":[{"id":8356,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/8282\/revisions\/8356"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/4014"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}