<?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 HKG on Medium]]></title>
        <description><![CDATA[Stories by HKG on Medium]]></description>
        <link>https://medium.com/@HKGMT11?source=rss-3556ad178cec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*WjhEA6wahggbAc5d</url>
            <title>Stories by HKG on Medium</title>
            <link>https://medium.com/@HKGMT11?source=rss-3556ad178cec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 19:29:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@HKGMT11/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[How I Built a Fully Local AI Agent Using Open-Source Tools (No Coding Required!)]]></title>
            <link>https://medium.com/@HKGMT11/how-i-built-a-fully-local-ai-agent-using-open-source-tools-no-coding-required-16c8c9e2e8d5?source=rss-3556ad178cec------2</link>
            <guid isPermaLink="false">https://medium.com/p/16c8c9e2e8d5</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[no-code]]></category>
            <category><![CDATA[local]]></category>
            <dc:creator><![CDATA[HKG]]></dc:creator>
            <pubDate>Mon, 10 Feb 2025 10:48:53 GMT</pubDate>
            <atom:updated>2025-02-10T10:48:53.053Z</atom:updated>
            <content:encoded><![CDATA[<p>AI assistants are incredibly useful, but most rely on cloud services that come with trade-offs:</p><p>❌ <strong>Privacy concerns</strong> — Your data isn’t fully yours.<br>❌ <strong>Subscription costs</strong> — AI services can get expensive over time.<br>❌ <strong>Lack of control</strong> — You’re dependent on external providers.</p><p>I wanted something better. <strong>I wanted my own AI assistant, running completely on my computer — fast, private, and fully offline.</strong> So, I built one.</p><p>The best part? <strong>You don’t need to be a programmer to do this!</strong> If you can follow simple steps, you can set up your own AI agent <strong>without writing a single line of code</strong>.</p><p>Here’s exactly how I did it using <strong>open-source tools and Docker containers</strong> — so you can do it too.</p><h3>🖥️ What You Need to Get Started</h3><p>To run an AI model locally, you don’t need a <strong>super-powerful PC</strong>, but having a good GPU and some RAM definitely helps.</p><h3>My Setup:</h3><p>✔ <strong>Operating System:</strong> Ubuntu 24.04.1 LTS<br>✔ <strong>RAM:</strong> 64GB<br>✔ <strong>GPU:</strong> NVIDIA RTX 4090</p><blockquote><strong><em>No high-end PC? No problem!</em></strong><em> You can still run smaller AI models with a lower-end GPU or even on a CPU (just expect slower performance).</em></blockquote><h3>🛠 The Open-Source Software Stack</h3><p>To make everything <strong>easy to install and manage</strong>, I used <strong>Docker</strong> to deploy all my AI tools. This way, I didn’t have to manually install anything — just a few commands, and everything was up and running.</p><h3>🚀 Key Open-Source Tools for Building a Local AI Agent</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*EN2AxWJsg2jbAY_iUoLLxQ.png" /></figure><p>This combination makes <strong>AI both accessible and private</strong>, without relying on external services.</p><h3>🚀 Step 1: Running AI Models Locally with Ollama</h3><p>Ollama is the <strong>engine</strong> behind the AI. It’s what allows models like <strong>Llama 3 or Mistral</strong> to run directly on your machine — <strong>no internet required.</strong></p><p>Since I’m using Docker, setting it up was easy:</p><p>1️⃣ Install Docker if you haven’t already:</p><pre>sudo apt update &amp;&amp; sudo apt install docker.io -y</pre><p>2️⃣ Pull the Ollama container:</p><pre>docker run -d --name ollama -p 11434:11434 ollama/ollama</pre><p>3️⃣ Download your preferred AI model (I used <strong>Llama 3</strong>):</p><pre>ollama pull llama3</pre><p>That’s it! Now, my AI <strong>runs entirely offline</strong> — I can chat with it without worrying about cloud services or data privacy.</p><h3>💬 Step 2: Using Open WebUI to Access &amp; Manage AI Models</h3><p><a href="https://github.com/open-webui/open-webui">Open WebUI</a> is <strong>my main interface for chatting with AI</strong>, downloading models, handling embeddings, and accessing my AI assistant from any device.</p><p>Instead of running commands in a terminal, <strong>Open WebUI gives me a user-friendly dashboard</strong>.</p><h3>How I Installed It (Also Using Docker)</h3><pre>docker run -d --name open-webui -p 3000:3000 -e OLLAMA_BASE_URL=http://ollama:11434 ghcr.io/open-webui/open-webui:v0.5.7</pre><h3>How I Use Open WebUI:</h3><p>✔ <strong>Chat with my AI assistant</strong> directly from the browser<br>✔ <strong>Download new models</strong> easily with a simple interface<br>✔ <strong>Manage embeddings</strong> for my AI knowledge base<br>✔ <strong>Access my AI remotely</strong> from different devices</p><blockquote><strong><em>Why use Open WebUI?</em></strong><em> It makes interacting with Ollama much easier — </em><strong><em>no command-line needed</em></strong><em>.</em></blockquote><h3>🤖 Step 3: Building a Custom AI Assistant with Flowise</h3><p><a href="https://github.com/FlowiseAI/Flowise">Flowise</a> is <strong>where I create AI-powered assistants and connect them to my own software</strong>.</p><p>Unlike Open WebUI (which is great for chatting), <strong>Flowise lets me build custom AI workflows</strong> with a <strong>drag-and-drop interface</strong>.</p><p>Here’s how I used Flowise to <strong>customize my AI assistant</strong>:</p><h3>📂 Step 3.1: Adding a Vector Database for Documents</h3><p>I wanted my AI to <strong>retrieve specific information from my personal files</strong>. To do this, I used <strong>Flowise’s “Document Store (Vector)” feature</strong>, which lets me store and index documents for quick searching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8l8v-xc-6AsSwoCheLezzw.png" /><figcaption><em>Configuring Vector Storage &amp; Database in Flowise</em></figcaption></figure><p>✔ <strong>Connected Flowise to PostgreSQL + PGVector</strong>, which acts as the AI’s memory.<br>✔ <strong>Uploaded my documents</strong> and set up Flowise to <strong>split them into smaller chunks</strong> (so the AI understands them better).<br>✔ <strong>Used the Recursive Character Text Splitter</strong> to ensure better accuracy and fewer hallucinations.</p><blockquote><strong><em>Why does chunking matter?</em></strong><em> AI models don’t process entire documents at once. </em><strong><em>They work better when information is split into smaller pieces.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DXo4nZq2TpxIB5jNHiFexA.png" /><figcaption><em>Uploading &amp; Chunking Documents in Flowise</em></figcaption></figure><h3>🔎 Step 3.2: Setting Up Retrieval &amp; Custom Assistants</h3><p>Once my documents were stored, I needed to <strong>teach the AI how to search through them</strong> and provide useful responses.</p><p>✔ <strong>Added a “Retriever Tool” in Flowise</strong>, which fetches relevant document chunks based on questions.<br>✔ <strong>Connected Flowise to Ollama</strong>, so the AI could generate answers using my local Llama 3 model.<br>✔ <strong>Enabled conversation memory</strong>, so the AI could remember past interactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7HjUjg9wdFpaMpgZK8e3GA.png" /><figcaption>Flowise Workflow — AI Agent Setup</figcaption></figure><p>With just these <strong>simple drag-and-drop steps</strong>, my AI <strong>could now read, search, and answer questions based on my stored documents.</strong></p><h3>🛠 Step 4: Testing &amp; Fine-Tuning the AI Agent</h3><p>At this point, my AI was <strong>fully functional</strong>. It could:<br>✅ <strong>Run locally using Ollama</strong> (no internet needed)<br>✅ <strong>Retrieve and summarize information from my documents</strong><br>✅ <strong>Maintain memory for better conversations</strong><br>✅ <strong>Be accessed easily via Open WebUI</strong><br>✅ <strong>Be embedded into other software via Flowise</strong></p><h3>🔥 Final Thoughts: Why This Setup Is a Game-Changer</h3><p>After setting everything up, I now have:<br>✅ <strong>A private AI assistant</strong> that runs <strong>entirely on my own machine</strong><br>✅ <strong>No cloud costs, no privacy concerns, no API limits</strong><br>✅ <strong>A highly customizable agent</strong> that understands my personal documents<br>✅ <strong>A user-friendly chat interface (Open WebUI) and a powerful AI builder (Flowise)</strong></p><p>And the best part? <strong>You don’t need to be a programmer to do any of this.</strong></p><p>With tools like Open WebUI, Flowise, and Ollama, <strong>anyone</strong> can build a fully offline AI assistant — <strong>no coding required</strong>.</p><h3>💡 Want to Build Your Own AI Agent? Start Here!</h3><p>1️⃣ <strong>Install Docker &amp; Ollama</strong> to run AI locally.<br>2️⃣ <strong>Set up Open WebUI</strong> for easy AI access &amp; management.<br>3️⃣ <strong>Use Flowise</strong> to build <strong>custom AI assistants &amp; workflows</strong>.<br>4️⃣ <strong>Connect a vector database</strong> to store and retrieve documents.<br>5️⃣ <strong>Customize and fine-tune your AI</strong> based on your needs.</p><p>That’s it! 🚀 <strong>You now have your own local AI agent, fully offline and private.</strong></p><p>Would you try this setup? Let me know in the comments! 👇</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16c8c9e2e8d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>