<?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 Theja Kumar Moolinti on Medium]]></title>
        <description><![CDATA[Stories by Theja Kumar Moolinti on Medium]]></description>
        <link>https://medium.com/@theja.moolinti?source=rss-6b7fea147dc7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*17ffJmq9zgppheDN</url>
            <title>Stories by Theja Kumar Moolinti on Medium</title>
            <link>https://medium.com/@theja.moolinti?source=rss-6b7fea147dc7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 14:28:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@theja.moolinti/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[Running Your Own AI at Home: A Technical Guide]]></title>
            <link>https://medium.com/@theja.moolinti/running-your-own-ai-at-home-a-technical-guide-2566634e7085?source=rss-6b7fea147dc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2566634e7085</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[personal-assistant]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[ai-at-work]]></category>
            <dc:creator><![CDATA[Theja Kumar Moolinti]]></dc:creator>
            <pubDate>Sun, 15 Feb 2026 05:40:23 GMT</pubDate>
            <atom:updated>2026-02-15T05:40:23.842Z</atom:updated>
            <content:encoded><![CDATA[<h3>A technical deep-dive into building a fully local AI system — no cloud bills, no rate limits, no surrendered infrastructure ownership.</h3><h4>⏱ 8 min read</h4><p>For months, I called <strong>AI</strong> <strong>APIs</strong> like most developers do. Send a request, get a response, ship the feature. It worked. But something felt fundamentally <em>incomplete</em> about the arrangement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BFn0H1JK84a7X5Qn.png" /></figure><p>The question I eventually asked myself was simple: <strong>Can I build my own AI system that runs entirely on my machine?</strong></p><p><strong><em>The future of AI isn’t only cloud-based.<br>It’s also deeply personal.</em></strong></p><p>The answer is yes — and building it teaches you more about AI systems architecture than years of API calls ever could.</p><p>· · ·</p><h3>Why Open-Source LLMs Changed Everything</h3><p>Large Language Models are transformer-based neural networks trained to predict the next token in a sequence. For years, the only way to access capable models was through a vendor’s API. Then came the <strong>open-weight revolution:</strong> LLaMA, Gemma, Mistral, Qwen — models you can download, run, and own.</p><p><strong>Critically:</strong> you are <em>not</em> training these models. You’re performing <strong>inference</strong> — feeding them prompts and reading outputs. The training already happened. You’re just running the finished engine.</p><p><strong>Key Distinction</strong>Training a 7B model from scratch requires thousands of GPU-hours and millions of dollars. Running inference on a pre-trained 7B model requires a decent laptop with 16GB of RAM. These are completely different operations.</p><p>Figure 1 — Full System Architecture</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/0*o_ObU2vhgsTN08pP.png" /></figure><p>The architecture is deliberately layered. A <strong>secure tunnel</strong> handles external access. An <strong>authenticated API</strong> acts as the orchestration layer — managing auth, logging, prompt templates, and rate limiting. And <strong>Ollama</strong> sits at the bottom, serving the actual model.</p><p>The key insight: the model never talks directly to the internet. Every request is filtered through your own API layer first.</p><p>· · ·</p><h3>RAG: Giving Your Model a Memory</h3><p>A raw LLM knows about the world as of its training cutoff. It doesn’t know about your codebase, your project conventions, or your company’s specific patterns. Retrieval-Augmented Generation fixes this without any fine-tuning.</p><p><strong>The idea:</strong></p><p>When a user asks a question, first <em>search</em> a vector database of your documents, then inject the relevant results directly into the prompt. The model reasons over your specific context instead of just its training data.</p><p>Figure 2 — RAG Pipeline Architecture</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/0*18e8ceX0DFWNIurX.png" /></figure><p><strong>The Magic of RAG:</strong></p><p>A 7B parameter model with good retrieval often outperforms a much larger model without it. The bottleneck isn’t model size — it’s context quality.</p><p>· · ·</p><h3>The Technical Stack</h3><p>Every layer of this system was chosen deliberately. Here’s the full breakdown:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/0*pBBhgvxPXUNjaIOV.png" /></figure><p>· · ·</p><h3>Security Architecture</h3><p>The #1 mistake beginners make: they expose Ollama directly to the internet. <strong>Don’t do this.</strong> Ollama has no built-in authentication.</p><p>The correct pattern puts your authenticated API as the sole entry point:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0J0Yha7MHF610-TF.png" /></figure><p>· · ·</p><h3>Performance Expectations</h3><p>Let’s be concrete. On a modern developer machine, here’s what you can realistically expect:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*40mz0E5aC-mt8MRz.png" /></figure><p>Token generation speed varies significantly by hardware. An M2 Pro MacBook Pro generates around 40–60 tokens/second on a 7B model — perfectly usable for interactive sessions. A machine with a dedicated GPU (even a modest RTX 3080) can hit 80–120 tokens/second.</p><p>For most developer workflows — code review, documentation, Q&amp;A over your codebase — 7B–12B models are more than sufficient. The quality/speed tradeoff lands in exactly the right place.</p><p>· · ·</p><h3>Starting Point: Your First Local API Call</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1wGqRLMXZKTH2b-e.png" /></figure><p>Ollama exposes an OpenAI-compatible API on port 11434. This means any code already written for OpenAI’s API works with Ollama by changing one URL. Migration from cloud to local is often a <strong>single line change</strong>.</p><h3>What’s Next in This Series</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UjnmPpYH3aFyyYMy.png" /></figure><p>Subscribe now!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2566634e7085" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>