<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Farah Mrad on Medium]]></title>
        <description><![CDATA[Stories by Farah Mrad on Medium]]></description>
        <link>https://medium.com/@farahmrad?source=rss-ce5bed776da8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FHJEEKJO_vbmEQkOuE32HA.jpeg</url>
            <title>Stories by Farah Mrad on Medium</title>
            <link>https://medium.com/@farahmrad?source=rss-ce5bed776da8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 01:22:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@farahmrad/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Turn Your Local LLM into ChatGPT with Open WebUI]]></title>
            <link>https://medium.com/munchy-bytes/turn-your-local-llm-into-chatgpt-with-open-webui-459a90a1dc87?source=rss-ce5bed776da8------2</link>
            <guid isPermaLink="false">https://medium.com/p/459a90a1dc87</guid>
            <category><![CDATA[open-webui]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ollama]]></category>
            <dc:creator><![CDATA[Farah Mrad]]></dc:creator>
            <pubDate>Sun, 10 Aug 2025 18:20:31 GMT</pubDate>
            <atom:updated>2025-08-10T18:20:31.560Z</atom:updated>
            <content:encoded><![CDATA[<p>ChatGPT is the most used application across the world nowadays, but have you ever felt uncomfortable using it when dealing with private and sensitive data? You say my data will be used to train OpenAI models?</p><p>I asked myself the same thing, so I started looking for something more secure and came across a privacy-friendly alternative to ChatGPT that helped me, and who knows, it might help you too!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zzhGBx7mmj1bI_jialStEQ.jpeg" /><figcaption>Image Source: <a href="https://www.bitdoze.com/ollama-docker-install/">bitdoze.com</a></figcaption></figure><p>A few days ago, I published an <a href="https://medium.com/munchy-bytes/how-to-run-powerful-llms-locally-with-ollama-6343cc134a00">article</a> on how to locally run Large Language Models (LLMs) with Ollama.</p><p>Anyway, I am going to be demonstrating how I made that setup a little <strong>more interesting</strong> for myself, by downloading a Local LLM, but also interfacing with it!</p><p>Open WebUI is <strong>wonderful</strong>, <strong>attractive</strong>, <strong>easy to use</strong>, and very similar visually to ChatGPT. The catch? Your data is a lot safer here because everything is <strong>running locally</strong> on your computer.</p><p>Are you like me? Moving between various places like ChatGPT, DeepSeek, etc., throughout the day. I know it’s <strong>overwhelming</strong>, but we will now be able to get any model we want just with one interface!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*pweg3SJmMhL5-SZJankJBg.png" /><figcaption>Illustration generated with AI via ChatGPT</figcaption></figure><p>There are so <strong>many features</strong> to Open WebUI, I must say I am absolutely <strong>smitten with a few of them</strong>.</p><h3>Installing and Configure Open WebUI</h3><p>Open WebUI is pretty simple to run in our machine. We just have to install <strong>Docker </strong>and <strong>Ollama</strong>.</p><p>Using Ollama for the first time? No need to worry, just check the installation in a very easy way from my previous <a href="https://medium.com/munchy-bytes/how-to-run-powerful-llms-locally-with-ollama-6343cc134a00">article</a>.</p><h4>Installing Docker</h4><p>For use cases like Open WebUI or others, we rely on <strong>containers </strong>(that Docker provides) and everything will be <strong>isolated </strong>within it.</p><p>Head over to the <a href="https://www.docker.com/"><strong>Docker homepage</strong></a> and grab yourself a copy of Docker Desktop. Choose your operating system.</p><p>For me, it’s Windows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_eNHlOSOP3cYeFwPGsnINQ.png" /></figure><p>After downloading the file, you only have to search for Docker Desktop on your PC and open it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7cDn1ah_wAFjP_tlvj0fWg.png" /></figure><p>Now, once you’ve installed it, let’s open it.</p><p><em>Note: If you are unable to do so, first update your </em><strong><em>WSL </em></strong><em>and enable </em><strong><em>virtualization </em></strong><em>in BIOS.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*06diCgR1dWwygWggpgqdGw.png" /></figure><p>This is the UI Docker you will see. Since we have 0 containers at the moment, let’s <strong>add our first container</strong> for the Open WebUI.</p><p>We will run this in the command prompt, and you can get it from the <a href="https://github.com/open-webui/open-webui"><strong>OpenWebUI GitHub Repository</strong></a><strong>:</strong></p><pre>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</pre><p><em>Note: Must be </em><strong><em>connected to the internet</em></strong><em> before running the command, and must show “</em><strong><em>Engine running</em></strong><em>” at the bottom of Docker Desktop for everything to work as planned.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bGMdMyz6EwEwh_lCKQntEw.png" /></figure><p>Now, if we enter Docker Desktop, we can see that <strong>Open WebUI is running</strong> at <strong>port 3000</strong>.</p><p>So just click on the <strong>link </strong>where the <strong>application is available </strong>like you can see from the provided screenshot, and you’ll be able to see the <strong>Open WebUI chat interface</strong>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*StzAhFRaZO0WEg3f7vzbHA.png" /></figure><p>Or, simply, you can open your browser and go to <strong>http://localhost:3000</strong></p><h3>Open WebUI + Ollama</h3><p>As it’s the first time I’m registering, I’ll be <strong>creating an account,</strong> and this will be the <strong>admin account</strong> by default, which will have <strong>special permissions</strong> compared to other <strong>non-admin users</strong>.</p><p>Once you have created an account, you can just log in using it next time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4RuqfpGRLvil0NTgSLSEGg.png" /></figure><p>This is the interface you’ll see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AoU_6Is-5hR9poxI0R6STw.png" /></figure><p>Well, think this is ChatGPT? IT’S NOT! This is Open WebUI running entirely <strong>under your control!</strong></p><p>Like it’s shown, I have only the smollm:135m model available for me to use when chatting because this is the only model I pulled till now on Ollama. If you haven’t downloaded any models yet from Ollama, you’ll see nothing, as you don’t have any available models.</p><p>You indeed have <strong>access </strong>to <strong>all models provided by Ollama,</strong> but don’t forget when working with local models to always <strong>take into consideration</strong> the <strong>available resources</strong> on your machine (CPU, RAM, and GPU).</p><h4>Add new models to use</h4><p>Suppose you have already downloaded a model using <strong>Ollama</strong>. In that case, these models will be <strong>added automatically</strong> to Open WebUI; alternatively, you can also add any model available on Ollama through the <strong>Open WebUI user interface</strong>. Here’s how you can do that :</p><p>Go to your <strong>Admin Panel</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*JVnkVkMQfAecTnBB3S2gMA.jpeg" /></figure><p>Go to <strong>settings</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l6gHijo8XIIapbgMKTnn_A.png" /></figure><p>Go to <strong>Connections</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AbDcUQlE2HNxwbgOK5Aflg.png" /></figure><p>Click on <strong>Manage</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aQisstqpPIvUYSKLfz5YMA.png" /></figure><p>Here’s what you’ll get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iaDIP5zxEFzT5rMp3p5jTQ.png" /></figure><p>You’ll write the <strong>name of the model</strong> you want to install. You can copy it from the <a href="https://ollama.com/library"><strong>library</strong></a><strong> </strong>page of Ollama, where you’ll see all available models for downloading.</p><p>Well, I’ll try to download a small model: <strong>phi</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TflVWpyZzbPJd1FMctjoEA.png" /></figure><p>Once the installation is completed, we can now see the <strong>new available model</strong> we have to chat with, as it’s provided in the screenshot.</p><p>I have 2 models available till now:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Boql-UJw6jtmyJ1peNJyWA.jpeg" /></figure><p>You now only need to decide on the model you need and start <strong>interacting </strong>with it, taking into consideration that when you use a <strong>local model</strong>, your <strong>response time</strong> is affected directly by <strong>your hardware</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9rH5bx0N38V_ek5mWg8Y1A.png" /></figure><p><em>Ignore the answer of the model on the question; it’s wrong, as I am using a small model with a limited world knowledge model.</em></p><h3>Some Attractive Features</h3><h4>Compare multiple models</h4><p>If you click on the <strong>+ sign</strong> beside the arrow, you will be able to <strong>add more than one model</strong>, maybe two, three, or four, and so on… If you have a couple of models downloaded.</p><p>Then ask a unified question for all the selected models and see in real-time the <strong>comparison</strong> of the different models you choose, which will help you easily <strong>find the right model</strong> for your task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_YEp34giriglXlvV4kmpZw.jpeg" /></figure><p>That is completely <strong>crazy</strong>! I am <strong>comparing multiple models side-by-side</strong>!</p><h4>Chat with Your Documents</h4><p>You can upload a file or multiple files from your pc to chat based on them.</p><p>Go to <strong>Workspace</strong>, click on <strong>knowledge, </strong>then click on <strong>+ </strong>to add your knowledge base:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-fz5rsRY94cQ2pp8_au1Og.jpeg" /></figure><p>I named my knowledge base “my_paper” and clicked on <strong>create knowledge</strong> to be created:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UoZJQWiu9BQR4aTrSbs_4A.png" /></figure><p>Now that it exists, let’s <strong>add some files</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SoKAsVtPhgUUUVuSNmmV3Q.png" /></figure><p>Uploaded the PDF:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o-PApgQHzctfkqwk7MIGiA.png" /></figure><p>After downloading my document, I can go back to my chat and ask questions about it.</p><p>Write<strong> </strong>the <strong># symbol</strong> in the chat so you can <strong>select </strong>your <strong>collection </strong>or <strong>individual documents</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rqcv6lJ2IJ8wNrj8AJwYOw.png" /></figure><p>Select what you want and interact with your documents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X1uBA9LxTDdgH2HvHPqRJQ.png" /></figure><p>There are still <strong>a lot of features </strong>that you can explore by yourself when working with Open WebUI.</p><h4>Run ChatGPT Models into Open WebUI</h4><p><em>Note: If you don’t want any external models, such as the GPT models, and are okay with Ollama models, you’re done; you can skip this section.</em></p><p>Ollama models are <strong>not enough</strong>! you also need <strong>ChatGPT models</strong> like GPT-4o and more.. All these in one interface? With Open WebUI, yes, it is possible!</p><p>You could <strong>mix GPT models</strong> cloud with <strong>Ollama models</strong> local in the <strong>same Chat UI</strong>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iYUP3B-PEbrSCK8biVzkuw.jpeg" /><figcaption>Photo by Ozgu Ozden on <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p>Instead of subscribing to ChatGPT and paying a <strong>fixed monthly subscription</strong> to access the powerful models of OpenAI, another option is to use the paid <strong>API</strong>, where you only <strong>pay for what you use</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uz5WTZZ3LuAEkN-iPtn2ZQ.png" /></figure><p>And with the API, you get access to <strong>all models provided</strong> and also <strong>all newly models.</strong></p><p>Visit <a href="https://openai.com/"><strong>https://openai.com/</strong></a> and sign up!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IW005OOARyP8_jzGXJijpA.png" /></figure><p>Log in, click on <strong>search</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d12hp1Z0yc1WpH239czxAA.png" /></figure><p>Search for “<strong>billing</strong>”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eW6NJbQDsltOvJGjeIuL-Q.png" /></figure><p>Click on <strong>Add payment details</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gZzwvfNhLi-nO0s-cmqceg.png" /></figure><p>Fill in your <strong>card information</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jWy8k49s2Bem57Tus048YQ.png" /></figure><p>You will then enter the <strong>initial credit purchase.</strong> I’ll add just 5$; this will be added to your account <strong>until you use it.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E102YyN2-JZGpxKYMsBYAQ.png" /></figure><p>Confirm your payment, and your <strong>OpenAI API account is now funded.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5LxVqq1SP3MN4HfArd5ThA.png" /></figure><h4>Create New Secret Key</h4><p>Go to API keys:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*giF3D7cnKKc3r4mDerZ5yA.png" /></figure><p>Click <strong>Create new secret key:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zjZeHrqGdIIthhprccosWg.png" /></figure><p><strong>Name it:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pcKt2sfJhFeMxTuUNCnbOA.png" /></figure><p>And then <strong>copy </strong>the secret key:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZ7Wu_JlbV-VMxcmcqSTLg.png" /></figure><p>Return to Open WebUI:</p><p>In the <strong>Admin Panel</strong> → <strong>Settings </strong>→ <strong>Connections, paste </strong>your key and click “<strong>Save”</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2qYAUihev-6Eull4NpfVGw.png" /></figure><p>Go back to chat, and as we can see now, I have <strong>access to all GPT models!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3x_wnP7xqjkFhweAY5a33A.jpeg" /></figure><p>That’s just <strong>AMAZING</strong>!!</p><p>Of course, with all the other <strong>local models </strong>downloaded through <strong>Ollama</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aw2_qYroZR_sI4mOIxM6VA.jpeg" /></figure><p>E.g: Let’s talk to a GPT model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*88An2LQAj7xNVAqj6hOHyw.jpeg" /></figure><p>One of the most <strong>exciting </strong>and <strong>useful </strong>features is that we can <strong>compare </strong>the <strong>local </strong>and <strong>GPT models </strong>at the <strong>same time</strong> in a <strong>very simple way!</strong></p><h4><strong>gpt-4 </strong>vs <strong>deepseek-llm</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_pufNSuFIf5EBg4tje_kHw.jpeg" /></figure><h4><strong>Cost</strong></h4><p>You get <strong>charged using tokens</strong> (word pieces); some models are very resource-intensive to answer your question, it will cost you more.</p><p>As you can see, my credit balance decreased because I used the gpt-4:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JYjDYqcNZs7p5zVBmt02XA.png" /></figure><h3>Conclusion</h3><p>Open WebUI is a simple and cool way to run your powerful local models with Ollama on a beautiful ChatGPT-like interface, and you can also integrate OpenAI models without leaving your platform.</p><p>What are you waiting for? Go ahead and start using Open WebUI now!</p><blockquote>One interface to rule them all → Open WebUI!</blockquote><h3>References</h3><ul><li><a href="https://ollama.com/">Ollama Official website</a></li><li><a href="https://www.docker.com/">Docker Official website</a></li><li><a href="https://openai.com/">OpenAI Official website</a></li><li><a href="https://www.youtube.com/watch?v=16fWf0VVeIo">Is Open Webui The Ultimate Ollama Frontend Choice? — YouTube</a></li><li><a href="https://youtube.com/playlist?list=PL_rTgQnnMXsXAsEiid-tWhaj03SsP4U5Z&amp;si=cNHzHOZMPHO2rIxf">Open WebUI Course — YouTube</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=459a90a1dc87" width="1" height="1" alt=""><hr><p><a href="https://medium.com/munchy-bytes/turn-your-local-llm-into-chatgpt-with-open-webui-459a90a1dc87">Turn Your Local LLM into ChatGPT with Open WebUI</a> was originally published in <a href="https://medium.com/munchy-bytes">Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Run Powerful LLMs Locally with Ollama]]></title>
            <link>https://medium.com/munchy-bytes/how-to-run-powerful-llms-locally-with-ollama-6343cc134a00?source=rss-ce5bed776da8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6343cc134a00</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[local-llm]]></category>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[ollama]]></category>
            <dc:creator><![CDATA[Farah Mrad]]></dc:creator>
            <pubDate>Sat, 05 Jul 2025 20:40:37 GMT</pubDate>
            <atom:updated>2025-07-05T20:40:37.281Z</atom:updated>
            <content:encoded><![CDATA[<p>I was working on a personal AI project, and I needed to run the LLaMA 3 (8B) model locally on my machine, but the problem was that I had to wait for Meta’s approval to access the model.</p><p>Then I discovered Ollama. No approval forms, no waiting, and just one command, I had LLaMA 3 running on my laptop in minutes.</p><p>This tool just simplified everything, and I’ll prove it to you in this article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V6IErHLXbqL5hQa-cZoVhw.png" /><figcaption>Image from KDnuggets’ article: “<a href="https://www.kdnuggets.com/ollama-tutorial-running-llms-locally-made-super-simple">Ollama Tutorial: Running LLMs Locally Made Super Simple</a>”</figcaption></figure><p>Ollama is an open-source platform that allows you to download, manage, use, run, and control multiple different open-source LLM models in a very simple way <strong>locally</strong>, <strong>offline</strong>, and completely <strong>free</strong>.</p><h3>How to Install Ollama?</h3><p>First, go to<strong> </strong><a href="https://ollama.com/"><strong>ollama.com</strong></a><strong> </strong>to find the download button, like it’s shown in the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vNSTkg837O2f55xqgfyGYA.png" /></figure><p>After you click download, just choose the installer for your operating system. In my case, it’s Windows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xXF5WXw40KiO56nBFCYM3g.png" /></figure><p>Once the file is downloaded, just search for the ollama on your PC, then double-click it to run it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ahecKYX_ek8KfRikKSy7g.png" /></figure><p>Click run, then click install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4II7xh07ohVQKtl4wAfzEg.png" /></figure><p>Now, after installing Ollama, it will be running in the background by default, especially if we see its icon is present in the <strong>taskbar,</strong> indicating that it’s ready to use.</p><p>Also, we can force it to quit by clicking <strong>Quit Ollama</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7QjLHoHQACjahSTdM6BNcw.png" /></figure><p>If, for some reason, Ollama doesn’t start automatically, you can manually start it by opening your <strong>command prompt</strong> by clicking <strong>(WIN + R)</strong>, then typing <strong>cmd</strong> and running :</p><pre>ollama serve</pre><p><strong><em>Note</em></strong><em>: You can also run this command and the other commands of Ollama using the </em><strong><em>Anaconda Prompt,</em></strong><em> not just the command prompt.</em></p><h3>How to Run Your First Model?</h3><p>Then, after you have finished setting up Ollama, let’s run your first model locally on your machine.</p><p>First, on the <a href="https://ollama.com/library"><strong>Library</strong></a><strong> </strong>page of Ollama’s official website, you can explore all the <strong>models available</strong> on Ollama with their information, such as their size, number of parameters, usage details, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3seEaFoGdAKQxVW1JXGww.png" /></figure><p>When choosing a model, you have to take into consideration its size, especially if you have <strong>limited available resources </strong>on your computer, like RAM and storage.</p><p>For this tutorial, I’ll be choosing <strong>smollm:135m,</strong> a light, small, and CPU-friendly model to run it on my pc.</p><h4>Pull the Model</h4><p>Before running the model, we have to download it using the following command in your command prompt:</p><pre>ollama pull &lt;model-name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LqDzQ4i7767-4bUQAeqeRA.png" /></figure><h4>Run the Model</h4><p>Now that we have the model downloaded and available locally on our machine, let’s <strong>run</strong>, <strong>chat</strong>,<strong> </strong>and <strong>interact </strong>with it to check that the model is running without any crashes. To do this, write this command:</p><pre>ollama run &lt;model-name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IS14SevlZcXp7ngbSDyNLg.png" /></figure><p>Of course, you can download and run the model of your choice; this is just a basic example.</p><p>To <strong>list the models</strong>, you pulled them on your pc and they are available on your system, write this command:</p><pre>ollama list</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0k11LWMjQT3fIsXdDbOp3w.png" /></figure><p>There are more <strong>commands </strong>to use, such as removing a model, copying a model, etc.</p><p>Write <strong>ollama</strong>, and it will show all available commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pv-_r91LsuMCaT4-Kd9Guw.png" /></figure><h3>Two Ways to Interact with Ollama in Python</h3><h4>Ollama with the REST API</h4><p>After that we have checked that everything is working on Ollama and we have downloaded and run the model we want to use, I will be building an app by running Ollama as a local server on my machine(localhost) and interact with it via HTTP requests like OpenAI or Hugging Face APIs as if it were an online service.</p><p>However, it’s completely <strong>offline </strong>with no internet needed.</p><pre>import requests, import json<br><br># Default Ollama API endpoint<br>url = &quot;http://localhost:11434/api/chat&quot; #for chat-style interaction<br>payload = {<br>    &quot;model&quot;: &quot;mistral&quot;, # Define the name of the model<br>    &quot;messages&quot;: [{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;What is the capital of Lebanon?&quot;}]<br>}<br># Send the HTTP POST request with streaming enabled<br>response = requests.post(url, json=payload)<br>data = response.json()<br>print(data[&#39;message&#39;][&#39;content&#39;])</pre><p>Also, using ollama, you can easily <strong>switch between your models</strong>, maybe to test multiple ones, and this is done by changing the name of the model in the code.</p><pre>&quot;model&quot;: &quot;mistral&quot;  # or &quot;llama3&quot;, &quot;gemma&quot;, &quot;phi3&quot;, etc.</pre><p>And you can <strong>add options</strong> like <strong>streaming</strong>, <strong>temperature</strong>, or <strong>maximum tokens</strong> to control how the model responds.</p><pre>import requests<br>import json<br><br>url = &quot;http://localhost:11434/api/chat&quot;<br><br>payload = {<br>    &quot;model&quot;: &quot;mistral&quot;,  # Swap with &quot;llama3&quot;, &quot;phi3&quot;, etc.<br>    &quot;messages&quot;: [{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;What is the capital of Lebanon?&quot;}],<br>    &quot;stream&quot;: False,<br>    &quot;options&quot;: {<br>        &quot;temperature&quot;: 0.7,     <br>        &quot;num_predict&quot;: 200      <br>    }<br>}<br><br>response = requests.post(url, json=payload)<br>data = response.json()<br>print(data[&#39;message&#39;][&#39;content&#39;])</pre><ul><li><strong>stream</strong>: True → gets responses token-by-token (like a real-time chat)</li><li><strong>temperature</strong>: 0.7 → higher = more creative, lower = more deterministic</li><li><strong>num_predict</strong>: controls the length of the generated output.</li></ul><h4>Using the Ollama Python Client Library</h4><p>It uses the official Python SDK (ollama library) and calls the <strong>generate()</strong> method instead of dealing manually with the HTTP requests.</p><p><strong>Easier syntax</strong>, no need to deal with HTTP or payloads, and you can use it when you <strong>don’t need custom behavior</strong> like streaming</p><pre>import ollama<br><br>client = ollama.Client()<br>response = client.generate(model=&quot;llama2&quot;, prompt=&quot;What is Python?&quot;)<br>print(response.response)</pre><h3>Using Ollama with LangChain</h3><p>We’ll combine the power of O<strong>llama </strong>running the models <strong>locally </strong>with a wider <strong>set of tools</strong> provided by <strong>LangChain </strong>to get full control over local LLM pipelines with no internet required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GMovEw8aQAOY2ra6KoL8hQ.jpeg" /><figcaption>Image from YouTube video: “<a href="https://www.youtube.com/watch?v=k_1pOF1mj8k">Ollama meets LangChain</a>”</figcaption></figure><p>With just a few lines of code, we’ll make a call to our local LLM, but before you have to install langchain:</p><pre>pip install langchain langchain-ollama</pre><p>Here’s how I used LangChain to connect with Ollama (basic example)</p><pre>from langchain_ollama import Ollama<br>llm = Ollama(model=&quot;llama3&quot;)  # or mistral, gemma, etc.<br>print(llm.invoke(&quot;What are the benefits of local AI models?&quot;))</pre><blockquote><strong>Tip:</strong> With LangChain and Ollama, you can swap between models locally, use vector databases like Chroma, and build full RAG pipelines</blockquote><h3>Conclusion</h3><p>This is why I love Ollama, it’s more than just a tool. It lets me run advanced AI models from my machine without cloud dependencies locally, privately, fast, securely, with no API keys, no internet required, completely free, and I have full control of my workflow.</p><blockquote>Start local. Think global. Build smarter → with Ollama!</blockquote><h3>References</h3><ul><li><a href="https://ollama.com/">Ollama Official website</a></li><li><a href="https://www.youtube.com/watch?v=UtSSMs6ObqY">Learn Ollama in 15 Minutes — Run LLM Models Locally for FREE — YouTube</a></li><li><a href="https://www.youtube.com/watch?v=SZNRkGqaYTI&amp;list=LL&amp;index=8">Ollama: Run LLMs Locally On Your Computer (Fast and Easy) — YouTube</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6343cc134a00" width="1" height="1" alt=""><hr><p><a href="https://medium.com/munchy-bytes/how-to-run-powerful-llms-locally-with-ollama-6343cc134a00">How to Run Powerful LLMs Locally with Ollama</a> was originally published in <a href="https://medium.com/munchy-bytes">Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transform Customer Support with Chatling]]></title>
            <link>https://medium.com/munchy-bytes/transform-customer-support-with-chatling-250dea4e16e8?source=rss-ce5bed776da8------2</link>
            <guid isPermaLink="false">https://medium.com/p/250dea4e16e8</guid>
            <category><![CDATA[customer-support]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[tech-tools]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Farah Mrad]]></dc:creator>
            <pubDate>Tue, 01 Jul 2025 21:02:05 GMT</pubDate>
            <atom:updated>2025-07-01T21:02:05.779Z</atom:updated>
            <content:encoded><![CDATA[<p>Still not using an AI chatbot on your website? You think it’s hard without coding skills? So here’s the good news, I’ll introduce for you this AI tool that’ll save you hours of work.</p><p>This tool is helpful, especially in customer support, where it helps to answer frequently asked questions in real time without manual work.<br>So Chatling will be our chatbot builder because it is super easy to use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A0NODWrtatACpxMXHEbJvw.png" /><figcaption>Illustration generated with AI via ChatGPT</figcaption></figure><h3><strong>Creating Your First Chatbot</strong></h3><h4><strong>Create an account</strong></h4><p>To get started, go to <a href="https://app.chatling.ai/register"><strong>https://app.chatling.ai/register</strong></a>. Fill in the required information and sign up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*d9MlbyaCo-VnYBMjSualjA.jpeg" /></figure><p>Then <strong>verify your email</strong> to activate your account.</p><h4>Build your Chatbot</h4><p>Once you log in to your Chatling account, you’ll see your dashboard. Click on the blue “Create chatbot” button and select “web” as the platform where we want to add the chatbot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*keQTz45dRGGDojoCAnVbPg.jpeg" /></figure><p>You’ll then see a few options. For me, I’ll be choosing the “Basic AI Chatbot” option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xtf9MZAfVCAGE109vY8pgA.jpeg" /></figure><p>I will be giving a name to my chatbot: <em>mybot</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*upvvABjDRebogVNLNHaCRg.jpeg" /></figure><p>After creating your chatbot, go to the <strong>Builder</strong> section where we’ll set up the chatbot.<br>On top, you will find the bar where you can adjust your level of zoom, save your chatbot, test preview, and publish to preview the changes made for the users. You are also able to rename your chatbot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*t1h8pKptG0vw6_QzAIwfxQ.jpeg" /></figure><p>On the left, you’ll see the sidebar:</p><ul><li><strong>Blocks </strong>(1st icon): Drag these to build your chatbot flow.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*B512QvnYGZ9aBUXCRPXTxw.jpeg" /></figure><ul><li><strong>Variables </strong>(2nd icon): store information like user input to reuse it later in the conversation. You’ll also find default system variables that every chatbot has.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*h3RPXWI5_w7pKjdneI0Rjg.jpeg" /></figure><ul><li><strong>AI configuration </strong>(3rd icon):<strong> </strong>The 1st option is instructions that tell how the AI responds to users, and go to the settings option to choose the model, language, and temperature.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*6oZ-J9h1ykS9wyWovNpJlQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*mGMWoecH3r2KkZLrod30rw.jpeg" /></figure><h4>Real world example</h4><p>All chatbots start with a <strong>Start node</strong>. I started by adding a <strong>Text block</strong> to welcome the user when the chat begins. From the sidebar, drag a <strong>text block</strong> onto the canvas and type in a welcome message from your choice, then connect it to the start node.</p><p>Then I added a <strong>Form Block </strong>to collect the name of the user and their email by adding fields for name and email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*vqm5SMaeNQbpfgzkCF91Jg.jpeg" /></figure><p>I used two variables, <strong>contact_name </strong>to store the name of the user, and <strong>contact_email </strong>to store the email. So when users complete the form, the chatbot will save them as leads because we used system variables to store their information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*zhfSYI46uPYKbf1BHF_MrQ.jpeg" /></figure><p>Now I added another block to greet the user by their input name using your variable: Hi {contact_name}, how can I assist you today?<br>Add a block to capture the user’s response, save it in a new variable, user_question.</p><p>Now, the final part is adding an AI block that will answer the user’s question. <strong>Blocks → AI → AI response</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9gfZzleX1U6Ei12QKWfObw.jpeg" /></figure><p>You should add a <strong>Response Source</strong>. I’ll choose Knowledge Base, since using the AI model option would generate answers from the AI’s pretrained data, not mine.</p><p>Next, you enter the question that the AI should answer using our saved variable {user_question}, so the question will be dynamic.<br>You can also adjust settings like the <strong>AI model </strong>and<strong> temperature,</strong> so either use the global settings you selected before or override them for this specific block.</p><p>Finally, connect the AI block back to its own group like it’s shown in the earlier image; this creates a loop, allowing the user to ask another question after each AI response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HYQHs0WeW-f-DlEYCasbTA.jpeg" /></figure><p>Now we’re testing the chatbot using the preview button. Click the Publish button to make your changes live for your users. However, till now we haven’t added any Knowledge Base, so the bot cannot answer yet. Let’s do it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s9XLQDeApV_J8poPks2sqg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*or-q1Sc6Z-f9IC-1oyR2gQ.jpeg" /></figure><p>To add a data source, we’ll go to the <strong>Knowledge Base</strong> section. There are different ways to feed information to your chatbot, such as uploading documents, linking websites, or adding text manually…In my case, I’ll insert my <strong>frequently asked questions(FAQ)</strong> to train the bot on them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ucme4E5LxhjQQp396L5ccQ.jpeg" /></figure><p>In the <strong>Appearance </strong>section of the dashboard, you can design your bot by changing the colors, the bot icon, and more. There are also advanced settings like hiding the Chatling branding, but you’ll need to <strong>upgrade your plan</strong> to access those features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t2-jvoHVoDQFlFuf7JQjVA.jpeg" /></figure><p>We also have the <strong>Conversations</strong> section in the dashboard, where you can view all user chats and even <strong>train your bot</strong> further based on those conversations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xvN6sOPkgJJOeKA8ADCfIw.jpeg" /></figure><p>Here comes the exciting part! Adding the chatbot to your website! From the <strong>Website Widget </strong>section in the dashboard, we’ll make that happen. First, choose the option of how you want your chatbot to appear on your website. For me, it’s the <strong>Floating Chat</strong> option. Then we have to copy the provided <strong>code snippet</strong> and paste it before the closing &lt;/body&gt; tag in your <strong>HTML code</strong>. Even if you are not familiar with code, it’ll just take about <strong>30 seconds</strong> from someone familiar with websites or from your technical team. It’s just <strong>super easy!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MArg1q5RwcFd6LkKmcyb0g.jpeg" /></figure><p><strong>Chatling </strong>also supports platforms like <strong>WordPress</strong>, <strong>Shopify,</strong> and more. Moreover, it also integrates with popular apps like <strong>WhatsApp.</strong></p><h4>Conclusion</h4><p>This was just a <strong>basic example</strong> for you to start with Chatling and understand how this powerful AI tool works. While we built a simple chatbot, Chatling offers <strong>many advanced features</strong> you can explore…</p><blockquote><strong>So go ahead, experiment, and see how far you can take it!</strong></blockquote><h3>References</h3><ul><li><a href="https://app.chatling.ai/login">Chatling.ai</a></li><li><a href="https://www.youtube.com/watch?v=fJeqFc3zpzQ">How To Build AI Chatbots in 9 Minutes (2025) — YouTube</a></li><li><a href="https://www.youtube.com/watch?v=tHMy1hV9vTI">How to build your first AI chatbot in under 10 minutes — YouTube</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=250dea4e16e8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/munchy-bytes/transform-customer-support-with-chatling-250dea4e16e8">Transform Customer Support with Chatling</a> was originally published in <a href="https://medium.com/munchy-bytes">Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>