<?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 bhupesh on Medium]]></title>
        <description><![CDATA[Stories by bhupesh on Medium]]></description>
        <link>https://medium.com/@b.pipley?source=rss-10f7095501f5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*UXm2_i5wGfvtjKD3.</url>
            <title>Stories by bhupesh on Medium</title>
            <link>https://medium.com/@b.pipley?source=rss-10f7095501f5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:38:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@b.pipley/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[AI Coding Tools: A Practical Playbook]]></title>
            <link>https://medium.com/@b.pipley/ai-coding-tools-a-practical-playbook-f93b6115a53f?source=rss-10f7095501f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f93b6115a53f</guid>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[bhupesh]]></dc:creator>
            <pubDate>Sat, 06 Jun 2026 10:53:31 GMT</pubDate>
            <atom:updated>2026-06-06T10:53:31.403Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to actually use them well — the tools, the capabilities underneath, and the limits.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jBsvJSnzJtqyEEwzzJNcQg.png" /></figure><p>Most developers now have at least one AI coding tool open all day. But there’s a gap between <em>having</em> these tools and <em>understanding</em> them — knowing what’s actually happening when an agent edits your files, why one tool feels different from another, and what the pieces like “MCP,” “skills,” and “context” really mean.</p><p>This is a practical map of that landscape. Not a sales pitch for any one tool, and not a list of tips you could get anywhere — but a look at the machinery, so you can use these tools deliberately instead of hoping for the best.</p><h3>The common toolkit</h3><p>You don’t need to learn every tool. Most teams settle on two to four and use them for different jobs. Here’s the set worth knowing in 2026.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EW7asfDcubywgq_pEej5aQ.png" /></figure><p>A few honest observations on this landscape. GitHub Copilot remains the most widely adopted, especially inside large enterprises where procurement and existing GitHub integration carry weight. Cursor is the most popular AI-first editor among individual developers and smaller teams. Claude Code has a strong following among senior engineers who prefer an agent that works across a whole codebase from the terminal. Codex, Gemini CLI, and Antigravity round out the set, with Google’s Antigravity being the newer agent-first entrant.</p><p>The useful takeaway isn’t “pick the winner.” It’s that most professional developers run <strong>two or three</strong> of these for different tasks — a fast autocomplete editor for flow, an agent for larger refactors, and so on. The tools overlap, but each has a sweet spot.</p><h3>A mental model before the details</h3><p>Before going deep, it helps to see how the parts relate. Underneath whatever tool you’re using, there’s a small set of pieces that shape how the AI behaves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9PVS3GD8jdyPEZurkiUhPA.png" /></figure><p>At the centre sits the <strong>core</strong>: the language model plus the host application it runs inside. Around it are the things that extend what it can do — <strong>MCP</strong> (which connects it to external systems), <strong>Skills</strong> (reusable instructions for recurring tasks), and the <strong>context</strong> (what the model can actually see when it answers). The rest of this article zooms into each of those.</p><h3>Three ways to work</h3><p>It’s also worth being deliberate about <em>how</em> you’re using a tool at any given moment, because there are really three modes — and picking the right one for the task matters more than which product you’re in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W19MA6HBNe1ra3i7Tdg2CA.png" /></figure><p>In <strong>assist</strong> mode the AI suggests as you type — you’re driving, it’s helping (classic autocomplete). In <strong>agentic</strong> mode you hand over a task and the AI plans and executes the steps, then you review the result rather than typing each line. In <strong>tool-augmented</strong> mode the agent is also connected to external systems via MCP, so it can reach beyond your code into live data and services. Each is appropriate for different work; the skill is matching the mode to the task.</p><p>That third mode — tool-augmented — depends entirely on MCP, which is worth understanding properly.</p><h3>MCP: connecting AI to your real systems</h3><p>The single biggest limitation of an AI model on its own is that it’s isolated. It can reason brilliantly about code you paste in, but ask it to check your GitHub repo or query your database and the honest answer is “I don’t have access to that.” MCP is what closes that gap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o6tdXKWYplPLqNCDA525GA.png" /></figure><p>MCP — the <strong>Model Context Protocol</strong> — is a standard way to connect AI tools to your real systems: databases, GitHub, your filesystem, and more. The flow is straightforward: the model (the brain) decides it needs something, the host application’s MCP client passes that request to an MCP server, the server reaches into the actual system, and the result comes back to the model. The model never touches your database directly — the MCP client and server sit in between.</p><h3>Why a new protocol was needed</h3><p>To appreciate why MCP mattered, look at the problem it replaced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*966AK6G1krQUYMsoBG6q1Q.png" /></figure><p>Before MCP, every AI application that wanted to talk to every data source needed its own custom integration. With <em>M</em> applications and <em>N</em> data sources, that’s <strong>M × N</strong> bespoke integrations — and every new tool meant building it again for each application. The connections multiply, and they break constantly.</p><p>MCP turns that multiplication into addition. Each application implements MCP once, each data source exposes an MCP server once, and everything interoperates through the shared standard: <strong>M + N</strong> instead of M × N. (The diagram makes it literal — nine tangled connections on the left collapse to a clean hub on the right.) It’s the same logic that made USB-C valuable: one standard port instead of a custom cable for every pairing.</p><p>MCP was introduced by Anthropic in late 2024 as an <em>open</em> standard — which matters, because open standards become shared infrastructure precisely when no single company controls them. It has since been adopted across the industry and moved under neutral, foundation-level governance, which is part of why it’s become the default way to connect AI to external systems.</p><h3>The architecture, end to end</h3><p>Here’s the full picture once you put the pieces together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ffvaauKaistrWhWuWfQaw.png" /></figure><p>The <strong>host application</strong> contains both the language model and the MCP client. The client talks to an <strong>MCP server</strong> over a standard protocol. The server <em>exposes</em> a defined set of things — its Tools, Resources, and Prompts — and sits in front of the actual <strong>external system</strong> (the database, GitHub, the files). Requests flow out; results flow back.</p><p>Those three things a server exposes are worth naming precisely:</p><ul><li><strong>Tools</strong> — actions the AI can invoke (run a query, create an issue). Functions with defined inputs.</li><li><strong>Resources</strong> — data the AI can read (files, records). Read-only context.</li><li><strong>Prompts</strong> — reusable prompt templates the server provides.</li></ul><h3>Under the hood: messages and transports</h3><p>A layer deeper, MCP is not magic — it’s structured messages over a defined channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GM7lT5xmbFaHAdnkNNpfMA.png" /></figure><p>Every MCP message uses <strong>JSON-RPC 2.0</strong> — a well-known, language-agnostic format with requests, responses, and notifications. That language-agnosticism is the basis of MCP’s portability: any language that can speak JSON-RPC can participate.</p><p>Those messages travel over one of two transports. <strong>stdio</strong> is for local servers: the server runs as a subprocess on your machine and messages flow over standard input/output — fast, no network, local only. <strong>HTTP-based</strong> transport (SSE / streamable HTTP) is for remote servers over a network, where the client sends requests over HTTP and the server can stream responses back. The transport detail in the spec has evolved over time, so the principle to hold onto is “local via stdio, remote via HTTP” rather than any one fixed remote mechanism.</p><h3>The lifecycle</h3><p>Every MCP connection, regardless of tool, follows the same three phases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RS72XwVxw50Kdn2uHReGmA.png" /></figure><p>First, <strong>initialization</strong> — a handshake where client and server exchange capabilities and agree on a common protocol version. Then <strong>discovery</strong> — the client asks what’s available (tools/list, resources/list, prompts/list) and the server returns the items with their schemas, so the client now knows exactly what’s callable. Finally <strong>operation</strong> — the AI invokes tools on demand (tools/call with arguments), the server executes, and the result flows back to the model, repeating as needed until a clean shutdown.</p><h3>Same protocol — so why do results differ?</h3><p>Here’s a question that trips people up: if MCP is a standard, why might the <em>same</em> model behave differently across two different clients? The answer is that “standard” only applies to one layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aK70Hzh1JT-ZabkBZhtVvg.png" /></figure><p>Think of it as three layers, only one of which is truly fixed:</p><ul><li><strong>Protocol and discovery</strong> is standardised and never varies — the handshake, capability listing, and JSON-RPC format are identical across any compliant client.</li><li><strong>Feature completeness</strong> varies by client <em>software</em> — which parts of the spec a given client chose to implement (just Tools? Resources too? which transports?). That’s an engineering decision by the client’s authors, not a matter of intelligence.</li><li><strong>Tool usage</strong> varies by the <em>model</em> and the client’s orchestration — whether and when the model decides to call a tool, with what arguments, and how the client frames the available tools to it. This is the “smartness” layer.</li></ul><p>So the same model in two clients can produce different results — not because the protocol differs, but because the clients implement different amounts of it and orchestrate the model differently. This is a framework for reasoning about portability, not a claim about which specific client supports what — those details change version to version and are worth checking against each tool’s current docs.</p><h3>Skills: stop re-explaining the same task</h3><p>Start with the problem skills solve, because every developer feels it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Od4Ld2kIDgDs4t_kRV-XBA.png" /></figure><p>Without skills, every time you want the AI to do a recurring task <em>your way</em>, you re-explain it — paste the checklist, restate your standards, re-specify the format. Every single time. A skill captures those instructions once and defines them in one place; from then on, requests simply <em>use</em> the skill instead of re-pasting everything. The contrast is the whole argument: three repetitions of the same instructions on the left, versus one definition reused across every request on the right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-BRoLIla41kW6KKpQv2zqw.png" /></figure><p>A skill is a reusable set of instructions for a specific kind of task — your team’s code-review checklist, your house style for API docs, whatever you do repeatedly. Define it once, and the AI applies it whenever that task comes up, instead of you pasting the instructions each time.</p><p>The clever part is how skills are loaded, because the obvious naive design would blow the budget. If you had a hundred skill files, you clearly can’t load all hundred into the model’s limited context on every request. So skills use <strong>progressive disclosure</strong>: only the short <em>descriptions</em> of all skills are loaded up front (cheap — a few words each), and the <em>full</em> instructions for a skill load only when a request actually matches it. The other ninety-nine stay on disk, costing nothing. It’s a library index: you carry the catalogue, and pull a book off the shelf only when you need it.</p><p>(The exact mechanism varies between tools, but the principle — cheap descriptions always available, full content fetched on demand — is the shared idea.)</p><h3>What you write vs. what the system loads</h3><p>The interesting part of skills isn’t the idea — it’s the <em>undercurrent</em>: the parts you author map onto how the system loads them, and that mapping has real consequences for whether your skill works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iYpZQrOg2uITDT5818fxTg.png" /></figure><p>A skill has two lives. On the authoring side, you write a <strong>description</strong> (a short trigger line), the <strong>instructions</strong> (the body — your steps and rules), and optionally <strong>examples</strong>. On the runtime side, those parts load differently: the <strong>description is always loaded</strong>, cheaply, and used to <em>match</em> a request to the skill; the <strong>instructions and examples load only on demand</strong>, when the skill actually matches.</p><p>The practical takeaway hides in that mapping. Because the description is the always-loaded, matching part, <em>how you write it</em> directly determines whether your skill fires at the right time. A vague description means a skill that never triggers when it should — the body can be perfect, but if the description doesn’t match the request, none of it loads.</p><h3>Skills vs MCP — they’re not the same thing</h3><p>If you’ve also worked with MCP, these two get confused constantly. They’re easy to tell apart once you see the distinction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pmiLrl8MXTXUDrIjGRcIOg.png" /></figure><p><strong>Skills give the AI know-how</strong> — reusable procedure, how to do something your way, living as instruction files. <strong>MCP gives the AI access</strong> — reach into real systems and data, living as a client-server connection. One is procedure; the other is reach. And crucially they’re not alternatives: in practice you use both together. A skill might tell the AI <em>how</em> to review a pull request (your checklist, your standards), while MCP gives it the <em>access</em> to fetch that pull request from GitHub in the first place. Know-how plus access.</p><h3>Context: the biggest lever on output quality</h3><p>Everything above — MCP, Skills, your prompt, your open files — ultimately funnels into one place: the model’s context. And managing that context well is arguably the highest-leverage skill of all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2gcA9xZjXnWBcFsjfBdoHw.png" /></figure><p>Context is simply everything the model can see when it answers: your prompt, the files you’ve opened, data pulled in via MCP, any skills loaded. But the context window is <strong>limited</strong> — it has a budget. Give the model too little and it guesses; flood it with irrelevant noise and it gets distracted or hits the ceiling. The discipline is curating the <em>right</em> inputs and leaving the rest out.</p><p>A concrete example: asking the AI to fix a bug. Dumping the entire repository is noise; saying only “fix the bug” is starvation. The right move is the failing function, the error message, and the one related file — precisely what’s relevant, nothing more. That curation is the whole game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qUoQ9K6zfxavCB1rcoq3Dg.png" /></figure><h3>Closing thought</h3><p>None of these tools are magic, and that’s the good news. Underneath the polish there’s a comprehensible set of pieces: a model and a host, a standard protocol for reaching real systems, reusable instructions loaded on demand, and a limited window of context you curate deliberately. Once you can see the machinery, you stop hoping the tool does the right thing and start <em>directing</em> it — which is the entire difference between fighting these tools and steering them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f93b6115a53f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I tried to use local LLMs for mapping TypeScript models to DX APIs]]></title>
            <link>https://medium.com/@b.pipley/how-i-tried-to-use-local-llms-for-mapping-typescript-models-to-dx-apis-db077865af9c?source=rss-10f7095501f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/db077865af9c</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[api-migration]]></category>
            <category><![CDATA[local-llm]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[bhupesh]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 15:51:15 GMT</pubDate>
            <atom:updated>2025-08-04T15:51:15.518Z</atom:updated>
            <content:encoded><![CDATA[<p><em>“Not every experiment makes it to production — but every one teaches you something important.”</em></p><p>In one of our recent frontend API migration efforts, I was asked to support the transition of a React + AEM application from MuleSoft-based APIs to a new set of DX APIs (Oracle Fusion). While this sounded straightforward, the reality was much messier.</p><p>There was:</p><ul><li>No 1:1 API mapping,</li><li>No complete Swagger spec,</li><li>No permission to use cloud-based LLMs,</li><li>And no prior reference to lean on.</li></ul><p>This post is a walk-through of an <strong>experimental solution I built</strong> as part of my <strong>GenAI learning, </strong>the tools I used, and what I learned while trying to bridge that gap.</p><p>The approach involved a combination of <strong>ts-morph</strong>, <strong>Postman collections</strong>, <strong>chunking</strong>, and <strong>local LLM reasoning</strong> using <strong>FAISS</strong>.</p><p>While the solution could not be used successfully in the real project due to real-world limitations, it turned out to be a <strong>valuable hands-on learning experience</strong>.</p><h4>The Problem</h4><p>We had an enterprise-grade frontend built using <strong>React + AEM</strong>, deeply integrated with a suite of <strong>MuleSoft APIs</strong>. The new requirement was to migrate this to <strong>Oracle DX APIs</strong>.</p><p>The challenges:</p><ul><li>No complete OpenAPI/Swagger spec for the DX APIs.</li><li>The new DX APIs were organized differently (sometimes region-specific).</li><li>No one-on-one field or endpoint match with existing MuleSoft contracts.</li><li>Business logic had already been tightly coupled with TypeScript response models based on <strong>MuleSoft APIs</strong>.</li><li>Time and resource constraints meant we couldn’t rewrite everything from scratch.</li></ul><p>So I asked to myself, can I use LLMs to intelligently suggest API mapping — at the field level, for our existing models?</p><h4>My Goal</h4><p>I wanted to:</p><ul><li><strong>Extract</strong> all TypeScript interfaces and response types used in the frontend.</li><li><strong>Compare</strong> those against sample responses from the DX APIs (from Postman collection).</li><li><strong>Let a local LLM</strong> infer possible matches and generate a field-wise mapping table.</li><li><strong>Write markdown reports</strong> for each model to share with developers, architects, and stakeholders.</li></ul><p>But I knew I had constraints…</p><h4>Constraint 1: No Cloud-Based LLMs Allowed</h4><p>Due to data security and compliance, I couldn’t send code or API responses to OpenAI or Claude. So I used a <strong>local Mixtral model</strong> running via <a href="https://ollama.com/">Ollama</a> as the reasoning engine.</p><p>While this gave me full control and kept everything on my local machine, it came with a catch:<br>Even local LLMs like Mixtral have a <strong>token limit</strong> (~32k tokens), which I quickly ran into when trying to compare multiple models and API responses in a single prompt.</p><p>This forced me to design a <strong>chunking + retrieval pipeline</strong> to break large inputs into meaningful pieces, embed them, and only feed the most relevant chunks to the model.</p><h4>Constraint 2: No Swagger Specs, only Postman Collections</h4><p>The backend team only provided Postman collections, not machine-readable OpenAPI specs.</p><p>So I had to:</p><ul><li>Parse the Postman JSON</li><li>Extract meaningful endpoint-response chunks manually</li><li>And deal with inconsistent formatting or missing fields</li></ul><h4>Constraint 3: No One-on-One API Mapping</h4><p>Most DX endpoints followed a <strong>different structure</strong>, region-specific logic, and did not correspond directly to MuleSoft equivalents.</p><p>So I couldn’t rely on exact path or method match. I had to go <strong>semantic</strong> — let the model figure out “is this field similar to that one?”</p><h4>The Solution I Tried to Build</h4><h4>Step 1: Extract TypeScript Models Using ts-morph</h4><p>I initially tried using <strong>Tree-sitter (Python)</strong> to parse TypeScript ASTs, but it lacked the depth needed to handle <strong>generics</strong>, <strong>extends</strong>, and complex nested <strong>types</strong>.</p><p>So I moved to <strong>Node.js</strong> and used ts-morph, which gave me:</p><ul><li>Accurate parsing of interface, type, and enum declarations</li><li>Control over symbol names, file paths, and JSDoc</li><li>The ability to inline nested types or follow extends chains</li></ul><p>Each model chunk was saved as a JSONL record like:</p><pre>{<br>  &quot;symbol&quot;: &quot;LoadPaymentMethodsAPIResponse&quot;,<br>  &quot;text&quot;: &quot;export interface LoadPaymentMethodsAPIResponse { ... }&quot;,<br>  &quot;file&quot;: &quot;src/types/payment.ts&quot;<br>}</pre><h4>Step 2: Chunk the Postman Collection in Python</h4><p>I parsed the Postman JSON to extract:</p><ul><li>method, path, description</li><li>Sample response (if available)</li></ul><p>Each response was saved as a chunk like:</p><pre>{<br>  &quot;method&quot;: &quot;POST&quot;,<br>  &quot;path&quot;: &quot;/dx/payments/load&quot;,<br>  &quot;sample_response&quot;: { ... },<br>  &quot;description&quot;: &quot;Returns payment methods&quot;<br>}</pre><h4>Step 3: Embed Everything and Build a FAISS Index</h4><p>I used sentence-transformers (MiniLM) to generate vector embeddings for:</p><ul><li>TS model chunks</li><li>API response chunks</li></ul><p>Then I created and saved .pkl files:</p><pre>import pickle<br>from sentence_transformers import SentenceTransformer<br><br>model = SentenceTransformer(&quot;all-MiniLM-L6-v2&quot;)<br>embeddings = model.encode(ts_chunks)<br><br>with open(&quot;ts_models.pkl&quot;, &quot;wb&quot;) as f:<br>    pickle.dump({ &quot;texts&quot;: ts_chunks, &quot;embeddings&quot;: embeddings }, f)</pre><p>Using FAISS, I built fast, similarity-based indexes:</p><pre>import faiss<br>import numpy as np<br><br>index = faiss.IndexFlatL2(384)<br>index.add(np.array(embeddings).astype(&quot;float32&quot;))<br>faiss.write_index(index, &quot;ts_model.index.faiss&quot;)</pre><p>At runtime, I queried the top-N matching chunks for each model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3h6rFj3SHKyCHIpIgLhOqg.png" /><figcaption>High-level view of the chunk → embed → retrieve → prompt pipeline used in this experiment.</figcaption></figure><h4>Step 4: Use LLM to Match Fields and Generate Markdown</h4><p>Using the retrieved matches, I created a prompt like:</p><pre>You are an API field-mapper.<br><br>Here is a TypeScript interface:<br>&lt;...&gt;<br><br>Here are 3 DX API response chunks:<br>&lt;...&gt;<br><br>Return a markdown table showing field-level matches with transformation (direct, renamed, computed, or not found).</pre><p>The output looked like this:</p><pre>### Mapping: LoadPaymentMethodsAPIResponse<br><br>| Model Field       | API Field              | Mapping     | Notes              |<br>|-------------------|------------------------|-------------|--------------------|<br>| paymentMethodId   | payment.id             | direct      | Field name match   |<br>| isDefault         | defaultMethod          | renamed     | Similar meaning    |<br>| cardDetails.expiry| card.expirationDate    | flatten     | Needs flattening   |<br>| currency          | —                      | not found   | May need backend   |</pre><p>This gave a quick, human-readable view of:</p><ul><li>Which models could be reused</li><li>What needed transformation</li><li>Where gaps existed</li></ul><h4>Why I could not use it in real project</h4><p>While the approach was working technically, it wasn’t adopted for a few reasons:</p><ul><li><strong>Incomplete DX APIs: </strong>many sample responses were region-specific or inconsistent</li><li><strong>Backend instability:</strong> payloads were still evolving, so mappings became outdated quickly</li><li><strong>Pressure to move fast:</strong> eventually, we shifted to a manual, team-based mapping effort</li><li><strong>Model confidence:</strong> LLM mappings weren’t always predictable or explainable without validation</li></ul><h4>What This Experiment Still Accomplished</h4><p>Despite not used in real project, this initiative helped:</p><ul><li>Highlight <strong>schema gaps and ambiguities</strong></li><li>Show the potential of <strong>AI-assisted migration</strong></li><li>Lay the foundation for future tooling</li><li>Boost my own <strong>understanding of chunking, vector search, and prompt optimization</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db077865af9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ My RTX 5070 + Linux Setup: From Frustration to Freedom with Pop!_OS & Docker]]></title>
            <link>https://medium.com/@b.pipley/my-rtx-5070-linux-setup-from-frustration-to-freedom-with-pop-os-docker-7b6a54170702?source=rss-10f7095501f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b6a54170702</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[pop-os-linux]]></category>
            <category><![CDATA[ai-development]]></category>
            <dc:creator><![CDATA[bhupesh]]></dc:creator>
            <pubDate>Sat, 26 Jul 2025 07:05:33 GMT</pubDate>
            <atom:updated>2025-07-26T07:05:33.908Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zqe11p8Q2ZJkOM2xyFS89Q.png" /><figcaption>Ubuntu — noGPU Found. Pop!_OS — working fine.</figcaption></figure><p>When I finally built my dream rig — <strong>NVIDIA RTX 5070</strong>, <strong>64GB DDR5 RAM</strong>, <strong>2TB NVMe SSD</strong> — I thought I was all set to dive into AI/ML with full GPU power.</p><p>But reality hit harder than any transformer model.</p><p>Let me walk you through my honest journey of confusion, fixes, and eventual success. If you’re someone struggling with modern GPUs and Linux — this one’s for you.</p><h3>🤖 My Goal: Local GenAI &amp; AI Development</h3><p>All I wanted was to:</p><ul><li>Run large language models <strong>locally</strong> using Ollama</li><li>Start training and experimenting with <strong>PyTorch</strong></li><li>Get serious about AI projects, <strong>without relying on cloud GPUs</strong></li></ul><p>Sounds simple enough, right?</p><h3>🧨 Ubuntu Broke My Heart</h3><p>I started with <strong>Ubuntu 22.04</strong> — a popular, stable choice for developers.</p><p>I installed all the right NVIDIA drivers, followed every Stack Overflow thread, added PPAs, purged, reinstalled…</p><p>And yet — Ubuntu simply refused to recognize my <strong>RTX 5070</strong>.</p><pre>nvidia-smi</pre><p>returned nothing. Or worse, errors.<br>Some drivers <strong>froze the system</strong>. Others broke the GUI altogether.</p><p>It was an endless loop of:</p><pre>sudo apt install nvidia-driver-xxx<br>reboot<br># no GPU found<br># repeat</pre><p>At one point I thought I had <strong>bricked</strong> my system. It was that bad.</p><h3>🧪 Even When It Worked… PyTorch Didn’t</h3><p>After many painful retries, nvidia-smi finally detected my GPU.</p><p>But just when I thought I’d won, PyTorch threw this bomb:</p><pre>RuntimeError: CUDA error: no kernel image is available for execution on the device</pre><p>Turns out, my <strong>RTX 5070 uses a newer compute capability (SM 8.9)</strong> — and PyTorch didn’t support it yet in their official builds.</p><h3>🛟 Pop!_OS to the Rescue</h3><p>Feeling defeated, I gave <strong>Pop!_OS</strong> a try — a Linux distro by System76 known for its out-of-the-box GPU support.</p><p>Honestly? I should’ve done this sooner.</p><p>✅ GPU recognized <strong>immediately</strong><br>✅ Latest NVIDIA drivers <strong>pre-installed</strong><br>✅ No flickering, no broken display, no kernel mess<br>✅ Everything <strong>just worked</strong></p><p>I had a functioning desktop and full GPU access <strong>on day one</strong>.<br>If you’re struggling with Ubuntu and NVIDIA — trust me, <strong>Pop!_OS is worth trying</strong>.</p><h3>🐳 Still No PyTorch? Time for Docker!</h3><p>Even with Pop!_OS, <strong>PyTorch</strong> was a no-go natively. But I wasn’t giving up.</p><p>So I installed Docker, added the <strong>NVIDIA Container Toolkit</strong>, and pulled the <strong>CUDA 12.2 base image</strong> to test things in isolation:</p><pre>docker run --rm --gpus all nvidia/cuda:12.2.0-base-ubuntu22.04 nvidia-smi</pre><p>✅ <strong>GPU detected inside Docker</strong><br>This confirmed it wasn’t a hardware issue. I just needed to <strong>isolate my environment</strong>.</p><h3>💡Running Ollama in a GPU-Enabled Docker Container</h3><p>I then ran <strong>Ollama</strong>, the open-source LLM runtime, inside Docker:</p><pre>docker run -d --gpus all \<br>  --name ollama-gpu \<br>  -p 11434:11434 \<br>  -v ollama-models:/root/.ollama \<br>  ollama/ollama</pre><p>It spun up perfectly, started serving on port 11434, and I could finally start interacting with <strong>Mixtral</strong> and other local LLMs — powered by my <strong>RTX 5070</strong> 🧠⚡</p><h3>🔧 My Quality-of-Life Fix: A Simple Shell Helper</h3><p>Let’s be honest — remembering long docker commands is annoying.</p><p>So I created a simple interactive shell script:<br> ollama-docker-helper.sh</p><pre>===============================<br> 🧠 Ollama Docker Controller<br>===============================<br>1. Start Ollama<br>2. Stop Ollama<br>3. Status Check<br>4. Exit</pre><p>🖱️ One click to <strong>start</strong>, <strong>stop</strong>, or <strong>check</strong> the container.<br> <strong>Easy-peasy.</strong></p><h3>📚 What I Learned (So You Don’t Have To Suffer)</h3><p>🧊 <strong>Ubuntu</strong> still has rough edges with new NVIDIA GPUs<br> 🧠 <strong>Pop!_OS</strong> is developer-friendly and GPU-ready out-of-box<br> 🐳 <strong>Docker</strong> is the ultimate fallback when native support is lacking<br> 💪 Don’t waste energy on workarounds — <strong>isolate and conquer</strong></p><h3>🧰 My Stack (Now Working Like a Charm)</h3><ul><li><strong>Pop!_OS</strong> — Stable dev environment with GPU support</li><li><strong>Docker</strong> — GPU containerization + clean CUDA base</li><li><strong>Ollama</strong> — Run local LLMs like Mixtral</li><li><strong>Shell Script</strong> — Manage Ollama with ease</li></ul><h3>✍️ Final Thoughts</h3><p>This journey was not smooth — but it was <strong>worth it</strong>.<br>I’ve never felt more in control of my <strong>hardware</strong> and <strong>tooling</strong>.</p><p>If you’re building a <strong>Linux + GPU dev machine</strong>, especially for GenAI or ML work, consider this route.<br>And if you’re struggling — you’re not alone.</p><p><strong>Ask. Learn. Share.</strong></p><p>And if this post helped you — let me know, or drop a comment with your experience.<br><strong>Happy hacking!</strong> 💻⚙️🔥</p><h3>✅ Want the Shell Script?</h3><p>Drop a comment or message, and I’ll share my GitHub Gist!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b6a54170702" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>