<?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 Munish Munagala on Medium]]></title>
        <description><![CDATA[Stories by Munish Munagala on Medium]]></description>
        <link>https://medium.com/@munish.munagala?source=rss-7b681932edc2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_cfajSAGAW3B_E9BHRNh0g.png</url>
            <title>Stories by Munish Munagala on Medium</title>
            <link>https://medium.com/@munish.munagala?source=rss-7b681932edc2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 03:54:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@munish.munagala/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 Is Writing Code Faster. So Why Is Software Still Slow to Deliver?]]></title>
            <link>https://medium.com/@munish.munagala/ai-is-writing-code-faster-so-why-is-software-still-slow-to-deliver-5696d978ab11?source=rss-7b681932edc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/5696d978ab11</guid>
            <category><![CDATA[sdlc]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai-coding-agent]]></category>
            <dc:creator><![CDATA[Munish Munagala]]></dc:creator>
            <pubDate>Sun, 23 Aug 2026 01:56:02 GMT</pubDate>
            <atom:updated>2026-08-23T01:56:02.044Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Anthropic released its </em><a href="https://claude.com/blog/the-ai-native-sdlc-playbook"><em>AI-Native SDLC Playbook </em></a><em>yesterday. It took me about 40 minutes to read through, and it addresses a question many engineering teams are starting to face:</em></blockquote><p><strong>If AI can write code faster than ever, why does it still take so long to deliver software?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cx840BmZJnwWx1gYU1hdmg.png" /></figure><p>The answer sits everywhere around the code: requirements, design, code reviews, security checks, testing, approvals, and production support.</p><p>Here’s a shorter read on how Anthropic suggests solving it.</p><h3>The Bottleneck Has Moved</h3><p>Traditional software development processes were designed for a world where writing code was often the longest part of the journey.</p><p>But AI has changed that.</p><p>A feature that might have taken days to build can now be created in hours.</p><blockquote>And then it waits.</blockquote><blockquote>It waits for code review. It waits for security review. It waits for testing. It waits for someone to approve deployment.</blockquote><blockquote><strong>The code got faster. The overall process didn’t.</strong></blockquote><p>To improve delivery, AI needs to be part of the entire software development lifecycle, not just the coding.</p><h3>1. Plan: Capture the Problem Clearly</h3><p>Instead of spending days translating conversations into requirements, AI helps capture the original problem in a simple document called intent.md.</p><p>It answers basic questions:</p><ul><li>What are we trying to solve?</li><li>Who is affected?</li><li>What constraints matter?</li><li>What questions are still open?</li></ul><p>A human reviews and approves the intent before the work moves forward.</p><h3>2. Design: Build the Specification With Guardrails</h3><p>Once the intent is approved, AI turns it into a more detailed specification called spec.md.</p><p>This is where requirements, architecture, user experience, security, and compliance can be considered together.</p><p>Instead of discovering a policy issue weeks later during a review, the system applies those requirements while the specification is being created.</p><h3>3. Build: Make a Plan Before Writing Code</h3><p>Before implementation begins, AI creates a plan.md outlining:</p><ul><li>Which files need to change.</li><li>What risks exist.</li><li>What order the work should follow.</li><li>Which tests should confirm the result.</li></ul><p>An engineer reviews the plan first.</p><p>Once approved, AI can build the feature, and engineers can coordinate multiple workstreams when appropriate.</p><p>The benefit is not just speed. It’s keeping the implementation connected to the original requirements.</p><h3>4. Test: Let AI Verify Its Work</h3><p>AI should not just generate code and hand it over.</p><p>It should run tests, check the build, inspect relevant behavior, and fix problems before the change reaches an engineer.</p><p>That feedback loop helps prevent a common problem: faster code generation creating even more manual review work.</p><p>If AI cannot check its own output, the engineering team becomes the bottleneck again.</p><h3>5. Deploy: Speed Up Code Reviews and Security Checks</h3><p>As AI produces more code, pull requests pile up faster.</p><p>That puts pressure on code reviews, security reviews, and compliance checks.</p><p>The playbook recommends using AI to review changes against established policies, identify potential issues, and address routine feedback.</p><p>Humans still make the important decisions:</p><ul><li>Does the change solve the intended problem?</li><li>Is the risk acceptable?</li><li>Is it ready for production?</li></ul><p>Production access, release approvals, and security controls remain in place.</p><p>The difference is that engineers spend less time on repetitive checks and more time on judgment.</p><h3>6. Maintain: Turn Production Issues Into New Work</h3><p>The lifecycle doesn’t end when code reaches production.</p><p>AI can monitor systems, investigate anomalies, and document potential problems.</p><p>If something goes wrong, it can create a new intent.md describing the issue and feed it back into the same planning, design, development, testing, and review process.</p><p>The result is a continuous loop instead of a series of disconnected handoffs.</p><h3>What This Means for Engineering Teams</h3><p>Using AI to write code is only one part of the opportunity.</p><p>The bigger shift is applying AI across the full delivery process while keeping human oversight, security, and accountability intact.</p><p>If coding takes hours but delivery still takes weeks, the question is no longer whether AI can write better code.</p><p>It’s whether your development process has caught up.</p><p><a href="https://claude.com/blog/the-ai-native-sdlc-playbook">Read Anthropic’s full AI-Native SDLC Playbook here.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5696d978ab11" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Clawdbot to Moltbot to OpenClaw: Why This AI Agent Grew Up Instead of Burning Out]]></title>
            <link>https://medium.com/@munish.munagala/from-clawdbot-to-moltbot-to-openclaw-why-this-ai-agent-grew-up-instead-of-burning-out-005189861ff3?source=rss-7b681932edc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/005189861ff3</guid>
            <category><![CDATA[openclaw]]></category>
            <category><![CDATA[moltbot]]></category>
            <category><![CDATA[ai-assistant]]></category>
            <category><![CDATA[clawdbot]]></category>
            <category><![CDATA[agi]]></category>
            <dc:creator><![CDATA[Munish Munagala]]></dc:creator>
            <pubDate>Sun, 01 Feb 2026 23:41:50 GMT</pubDate>
            <atom:updated>2026-02-01T23:41:50.896Z</atom:updated>
            <content:encoded><![CDATA[<p>A few weeks ago, a small open-source project called <strong>Clawdbot</strong> started floating around my timeline. The clips were interesting — AI agents running commands, interacting with real systems — but I’ve been around long enough to know that most viral demos don’t survive first contact with real usage.</p><p>Then it changed names.<br> First to <strong>Moltbot</strong>.<br> Then to <strong>OpenClaw</strong>.</p><p>Normally, that’s a warning sign.</p><p>This time, it wasn’t.</p><p>Instead of fading out, the project matured. The intent got clearer. The boundaries got sharper. And the conversation shifted from demos to actual workflows.</p><p>That’s when I decided to run it.</p><h3>The Name Changes Were Maturation, Not Chaos</h3><p>Clawdbot was the spark.<br>Moltbot was the project shedding its original identity — partly driven by trademark pressure and partly by a need to reset expectations. OpenClaw is the stable form.</p><p>By the time it landed on OpenClaw, the framing was explicit:</p><blockquote><em>This isn’t a chatbot.<br> This is a </em><strong><em>local-first AI agent framework</em></strong><em> with controlled execution.</em></blockquote><h3>How I’m Running It (Deliberately, Not Recklessly)</h3><p>I’m not running OpenClaw on my primary machine.</p><p>I deployed it on an <strong>old Ubuntu box with intentionally limited permissions</strong>, wired it to a <strong>dedicated email account used solely for the agent</strong>, and built a <strong>Telegram bot as the control surface</strong>.</p><p>That Telegram bot is <strong>paired to my user only</strong>.<br> It’s not fully hardened — and I’m not pretending it is — but it’s restricted enough to be a safe starting point.</p><p>Only my Telegram user ID can issue commands. No public access. No group chats. No broad exposure.</p><p>That’s the right first step:<br> <strong>limit surface area first, harden iteratively.</strong></p><h3>Setup Was Refreshingly Boring</h3><p>The setup didn’t fight me:</p><ul><li>Install OpenClaw</li><li>Attach a mode (I’m using Claude Sonnet 4.5 through <a href="http://openrouter.ai/">OpenRouter</a>)</li><li>Start the local gateway</li><li>Pair the Telegram bot and restrict it to my user ID</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*77TvUPcn5v9i4NBFe4C3pQ.png" /><figcaption><a href="https://openclaw.ai/">Quick Start</a></figcaption></figure><p>No cloud lock-in.<br> No opaque control plane.<br> No permissions I didn’t understand.</p><p>The gateway runs locally. Telegram is just an interface — not the executor. If the machine goes down, the agent disappears. That’s the correct failure mode.</p><h3>What I Actually Use It For</h3><p>Even in a constrained environment, the utility shows up quickly.</p><h3>Remote Awareness Without Logging In</h3><p>From my phone:</p><ul><li>“What’s running on that Ubuntu box?”</li><li>“How much disk is left?”</li><li>“Anything unusual since yesterday?”</li></ul><p><strong>No SSH. No dashboards. No context switching.</strong><br> This is still an experiment — not how I plan to operate day-to-day — but it clearly demonstrates what’s possible when intent goes straight to execution.</p><h3>Ambient Utilities With Memory</h3><p>I don’t want another app.</p><p>I want to message:</p><ul><li>“Check the weather”</li><li>“Summarize system status”</li><li>“Tell me if something changed”</li></ul><p>And not have to restate context every time.</p><p>OpenClaw persists memory locally. I can inspect it. I can delete it. That matters.</p><h3>File Hygiene Without the UI Tax</h3><p>“Find files I touched last week.”<br> “Group them.”<br> “Move them somewhere sane.”</p><p>Not magic. Just fewer steps between intent and execution.</p><h3>Memory I Can See and Control</h3><p>OpenClaw doesn’t pretend memory exists — it writes it to disk. If I want to version it or wipe it, I can.</p><p>That’s the difference between an assistant and something you can actually trust.</p><h3>Using Cron for Daily Briefings (Early, but Promising)</h3><p>One feature I’ve started experimenting with — and plan to expand — is <strong>cron-based daily briefings</strong>.</p><p>OpenClaw includes a built-in cron scheduler, which means the agent doesn’t just respond when you message it. It can <strong>wake itself up on a schedule</strong>, run a task, and report back.</p><p>At the moment, I’ve only had this running for <strong>about two days</strong>, but even at this early stage it’s useful.</p><p>Each morning, on a fixed schedule, the agent:</p><ul><li>runs a lightweight system check on the Ubuntu box</li><li>summarizes anything noteworthy since the previous run</li><li>sends a concise briefing to my paired Telegram bot</li></ul><p>No prompts. No follow-ups. It just shows up.</p><p>This is where the model shifts from <em>interactive assistant</em> to <em>proactive agent</em>.</p><p>I’m deliberately keeping the scope small for now — no inbox scanning, no external APIs, no aggressive automation. The goal isn’t autonomy; it’s <strong>reliable, predictable behavior on a cadence I control</strong>.</p><p>Even this minimal setup proves the point:</p><blockquote><em>An AI agent that can act on a schedule — without being prompted — is categorically different from a chatbot.</em></blockquote><p>Cron turns OpenClaw into something that works <em>for you</em>, not just <em>with you</em>.</p><h3>A Quick Reality Check: This Is Still Experimental</h3><p>Just because you can get OpenClaw up and running quickly <strong>doesn’t mean you should treat it casually</strong>.</p><p>You are giving an AI agent execution capability. That comes with real risk.</p><p>Even in a local, sandboxed setup, you need to be thoughtful about:</p><ul><li><strong>security boundaries</strong></li><li><strong>prompt injection</strong></li><li><strong>what your machine has access to</strong></li><li><strong>what the agent could indirectly reach if something goes wrong</strong></li></ul><p>If the agent can read files, it can read <em>sensitive</em> files.<br> If it can run commands, it can run <em>dangerous</em> ones.<br> If it has network access, it can be influenced in ways you didn’t intend.</p><p>This isn’t hypothetical — it’s basic threat modeling.</p><p>That’s why I started with:</p><ul><li>a locked-down Ubuntu box</li><li>limited permissions</li><li>a dedicated email account used solely for the agent</li><li>a paired Telegram bot restricted to my user</li><li>and a deliberately narrow scope of actions</li></ul><p>This is <strong>not</strong> something I’d recommend running on a primary workstation or any machine with broad credentials without additional hardening.</p><p>The upside is real — but so is the blast radius if you’re careless.</p><p>Treat OpenClaw like any other powerful automation tool:<br> <strong>use least privilege, assume failure, and expand slowly.</strong></p><p>That caution isn’t a weakness of the system.<br> It’s the cost of letting AI actually <em>do</em> things.</p><h3>The Real Insight: It Was Never “AI Can’t Do Things”</h3><p>After using this for a bit, the conclusion is obvious:</p><blockquote><strong><em>AI was never incapable of acting.<br> We just didn’t design systems to let it — safely.</em></strong></blockquote><p>LLMs have been able to plan and reason for a while now. But humans remained the execution layer by default — copying commands, clicking buttons, stitching workflows together.</p><p>Not because of technical limits.<br> Because of fear and product decisions.</p><p>OpenClaw makes a quieter, more important argument:</p><p><strong>AI should be allowed to act — deliberately, observably, and with constraints.</strong></p><p>Not full autonomy.<br> Not chaos.<br> Just fewer unnecessary handoffs.</p><h3>Why This Didn’t Flame Out Like Other Agent Projects</h3><p>Most agent frameworks collapse because they chase autonomy without discipline.</p><p>OpenClaw survived because it went the other way:</p><ul><li>local-first execution</li><li>explicit permissions</li><li>human confirmation for risky actions</li><li>clean separation between interface (Telegram) and execution (gateway)</li></ul><p>It doesn’t try to be smart everywhere.<br> It tries to be useful <em>where you allow it</em>.</p><p>That’s why the Clawdbot → Moltbot → OpenClaw evolution worked instead of imploding.</p><h3>This Is Officially a Weekend Project</h3><p>Once you see this working — even on a locked-down Ubuntu box, with a paired Telegram bot and early cron jobs — your brain starts asking better questions:</p><ul><li>Where does human-in-the-loop actually belong?</li><li>Which guardrails should be architectural, not policy-driven?</li><li>How many workflows are manual simply because “that’s how it’s always been”?</li></ul><p>That’s when you know something’s real.</p><p>This is now a <strong>next-weekend project</strong> for me.</p><p>Not because it’s flashy.<br> Because it’s directionally correct.</p><p>References:</p><ul><li><a href="https://openclaw.ai/">OpenClaw - Open-Source AI Assistant</a></li><li><a href="https://openclaw.ai/integrations">Integrations - OpenClaw</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=005189861ff3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Claude Code? The RALPH Loop Changes Everything — Part 1]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Claude Code feels incredible&#x200A;&#x2014;&#x200A;until it suddenly doesn&#x2019;t.</p><p class="medium-feed-link"><a href="https://medium.com/@munish.munagala/using-claude-code-the-ralph-loop-changes-everything-part-1-7c842d4a5352?source=rss-7b681932edc2------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@munish.munagala/using-claude-code-the-ralph-loop-changes-everything-part-1-7c842d4a5352?source=rss-7b681932edc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c842d4a5352</guid>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <dc:creator><![CDATA[Munish Munagala]]></dc:creator>
            <pubDate>Mon, 19 Jan 2026 20:07:31 GMT</pubDate>
            <atom:updated>2026-01-19T20:07:31.852Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Why Real-Time RAG Matters — and Why Modern GenAI Systems Must Be Architected This Way]]></title>
            <link>https://medium.com/@munish.munagala/why-real-time-rag-matters-and-why-modern-genai-systems-must-be-architected-this-way-f865a1e5962b?source=rss-7b681932edc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f865a1e5962b</guid>
            <dc:creator><![CDATA[Munish Munagala]]></dc:creator>
            <pubDate>Thu, 13 Nov 2025 02:04:07 GMT</pubDate>
            <atom:updated>2025-11-13T02:04:07.192Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Real-Time RAG Matters — and Why Modern GenAI Systems Must Be Architected This Way</h3><p>As organizations accelerate their adoption of Generative AI, one reality is becoming increasingly clear: <strong>modern GenAI systems cannot rely on static knowledge.</strong> The world they operate in changes too quickly — customer expectations shift in minutes, social sentiment evolves in real time, and internal policies or operational data update continuously.</p><p>In this environment, the traditional approach of embedding documents once, storing them in a vector database, and occasionally refreshing the index is no longer enough. It creates a fundamental disconnect between what the system <em>knows</em> and what is actually happening.</p><blockquote>This is why <strong>real-time Retrieval-Augmented Generation (RAG)</strong> must be treated as an <strong>integral architectural consideration</strong>, not an optional enhancement. It determines whether a GenAI system remains accurate, trustworthy, and aligned with current data.</blockquote><p>If your system relies on stale knowledge:</p><ul><li>its answers become outdated the moment something changes,</li><li>hallucinations increase as the model tries to fill in missing context,</li><li>customer interactions lose relevance, and</li><li>the credibility and value of the entire AI initiative erode quietly but quickly.</li></ul><p>Real-time RAG changes that. It ensures modern GenAI systems:</p><ul><li>continuously ingest new information,</li><li>embed and index updates as they occur,</li><li>retrieve context reflecting the present moment, and</li><li>generate responses grounded in up-to-date truth rather than historical snapshots.</li></ul><blockquote>This shift isn’t cosmetic — it’s architectural.<br> It’s the difference between deploying AI that <em>remembers the past</em> versus AI that <em>understands the present</em>.</blockquote><p>As GenAI becomes foundational across industries — powering customer service, decision support, automation, and insights — <strong>engineering for real-time context is no longer optional. It’s the new baseline.</strong></p><h3><strong>How Real-Time RAG Works</strong></h3><p>At its core, real-time Retrieval-Augmented Generation follows a continuous cycle:</p><p><strong>Stream → Embed → Store → Retrieve → Generate → Attribute.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h9cgG6B4vhkCwOe0e1FU7Q.png" /><figcaption>High-Level View of Real-Time RAG System Design</figcaption></figure><p>This cycle keeps GenAI systems aligned with live information rather than stagnant data.</p><ul><li><strong>Stream</strong> new information as it arrives — social media posts, customer events, CRM changes, policy updates.</li><li><strong>Embed</strong> new text, snippets, or updates into vector representations immediately.</li><li><strong>Store</strong> those vectors with metadata: timestamps, source, content type.</li><li><strong>Retrieve</strong> the most relevant and <strong>most recent</strong> pieces during inference.</li><li><strong>Generate</strong> responses using an LLM that leverages this fresh context.</li><li><strong>Attribute</strong> citations and timestamps so responses are auditable and trustworthy.</li></ul><p>The architecture ensures that intelligence remains synchronized with the environment it operates in.</p><h3>Pattern 1: Social Media Monitoring in Real Time</h3><p>Take the example of brand sentiment tracking. You don’t need yesterday’s conversation — you need <strong>right now</strong>.</p><p>A real-time RAG pipeline can:</p><ul><li>Stream posts continuously from X, LinkedIn, Reddit, or industry communities.</li><li>Enrich those posts with metadata like authorship, hashtags, or language.</li><li>Embed each new post on arrival.</li><li>Store those embeddings in a vector database built for high-volume ingestion.</li><li>Retrieve the latest, most relevant sentiment when queried.</li></ul><p>Instead of delayed dashboards, you get a <strong>real-time view</strong> of what’s happening.</p><p>This is the same paradigm used by real-time streaming systems described by AWS and Google Cloud for near-instantaneous insight pipelines.</p><h3>Pattern 2: Conversational AI with Live Knowledge</h3><p>Now imagine a customer asking:</p><p><em>“Is the premium plan still available?”</em></p><p>If your AI relies on stale or nightly-refreshed data, it won’t reflect what changed two minutes ago.</p><p>Real-time RAG solves this by:</p><ul><li>Continuously capturing updates from CRMs, policy systems, internal wikis, inventory feeds.</li><li>Embedding only changed or newly added content (“incremental indexing”).</li><li>Using recency-aware retrieval to ensure the system pulls the freshest information.</li><li>Generating responses that accurately reflect current availability, pricing, or policy.</li></ul><p>This transforms a chatbot or voice agent from a static FAQ engine into a <strong>dynamic, context-aware intelligence layer</strong>.</p><p>Frameworks like LangChain and LlamaIndex now provide built-in primitives for streaming retrieval and context refresh, enabling these capabilities at scale.</p><h3>Building a Real-Time RAG Pipeline</h3><p>A robust real-time RAG architecture typically includes:</p><h4>1. Streaming Ingestion</h4><p>Use Kafka, Amazon Kinesis, or Google Pub/Sub to capture new events instantly.<br> This prevents reliance on slow batch processes.</p><h4>2. Incremental Embedding</h4><p>Only newly changed content should be re-embedded.<br> This keeps latency low and cost manageable.</p><h4>3. Vector Database Optimized for Recency</h4><p>Choose a vector store capable of:</p><ul><li>high-throughput ingestion,</li><li>fast filtering by timestamp, and</li><li>metadata-aware semantic retrieval.</li></ul><p>Pinecone, Milvus, Weaviate, and pgvector are common options.</p><h4>4. Real-Time Retrieval and Generation</h4><p>LLMs retrieve both <strong>relevant</strong> and <strong>recent</strong> chunks before generating outputs.<br> Streaming responses improve the user experience and reduce perceived latency.</p><h4>5. Attribution and Explainability</h4><p>Every answer must show where the information came from and when it was last updated.<br> This is critical for trust and alignment with governance standards.</p><h3>Practical Insights</h3><ul><li><strong>Freshness beats volume:</strong> A smaller, up-to-date index is more valuable than a massive but stale one.</li><li><strong>Latency matters:</strong> Slow pipelines negate the value of “real-time.”</li><li><strong>Chunk strategically:</strong> Smaller, meaningful chunks improve retrieval quality.</li><li><strong>Observe and measure:</strong> Track ingestion lag, embedding speed, retrieval latency, and model response time.</li><li><strong>Prioritize what truly needs to be real-time:</strong> Not every dataset requires immediate re-embedding.</li><li><strong>Metadata is the backbone:</strong> Without timestamps and sources, recency-aware retrieval is impossible.</li></ul><h3>The Bigger Picture</h3><p>We’re entering an era where AI must operate with <strong>situational awareness</strong>, not just static knowledge.<br> Systems that cannot adapt in real time will feel outdated — because they are.</p><p>Real-time RAG represents the architectural shift that enables AI to:</p><ul><li>stay aligned with live information,</li><li>respond accurately to dynamic situations, and</li><li>support decisions based on what is true now.</li></ul><p>The organizations that embrace this architecture will build AI systems that are not only intelligent, but <strong>aware</strong>. And awareness — especially in a fast-moving world — is the real advantage.</p><p><strong>References:</strong></p><ul><li><a href="https://aws.amazon.com/blogs/big-data/build-a-real-time-streaming-generative-ai-application-using-amazon-bedrock-amazon-managed-service-for-apache-flink-and-amazon-kinesis-data-streams/">Build a real-time streaming generative AI application using Amazon Bedrock, Amazon Managed Service for Apache Flink, and Amazon Kinesis Data Streams | Amazon Web Services</a></li><li><a href="https://markmakary.com/2025/02/24/combining-data-streaming-and-rag-for-smarter-ai-conversations/">Combining Data Streaming and RAG for Smarter AI Conversations</a></li><li><a href="https://caylent.com/blog/introduction-to-real-time-rag">Introduction to Real-Time RAG</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f865a1e5962b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why AI Evals Matter: Real-World Lessons in Risk Management]]></title>
            <link>https://medium.com/@munish.munagala/why-ai-evals-matter-real-world-lessons-in-risk-management-67f36b4f5b22?source=rss-7b681932edc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/67f36b4f5b22</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm-applications]]></category>
            <category><![CDATA[ai-evaluation]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Munish Munagala]]></dc:creator>
            <pubDate>Sun, 01 Jun 2025 20:03:11 GMT</pubDate>
            <atom:updated>2025-06-01T20:03:11.757Z</atom:updated>
            <content:encoded><![CDATA[<p>In the race to ship AI features, one crucial discipline often gets overlooked: evaluation.</p><p><strong>Evals</strong>, short for <em>evaluations</em>, are structured, testable safeguards that verify whether your AI systems are working <em>as intended</em>. Think of them as the unit tests and CI gates for AI systems — but with even higher stakes. When done right, they prevent costly mistakes. When skipped, they invite chaos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w2jY2HZpnCrKvlyQIdNYnA.png" /><figcaption>AI Evals — Illustration generated using ChatGPT</figcaption></figure><h3>What Happens Without Evals?</h3><p>Let’s look at how missing evals has played out in the real world:</p><h3>Air Canada’s Chatbot Lawsuit</h3><p>A chatbot told a customer they could retroactively get a bereavement fare. When they tried to claim it, the airline denied the refund. The court ruled against Air Canada, holding them accountable for the chatbot’s response.[<a href="https://www.theguardian.com/world/2024/feb/16/air-canada-chatbot-lawsuit">Reference</a>]</p><h3>Miscalculated Calories in a Nutrition App</h3><p>An app that read grocery receipts misread “$12.50” as “$1250.00”. This threw off calorie tracking for users who relied on the app for their diet, leading to customer confusion, drop-offs, and trust erosion. [<a href="https://www.reddit.com/r/mynetdiary/comments/1eaq1d5/this_app_is_widly_inaccurate_when_counting">Reference</a>]</p><h3>Fintech Bot Increases Cloud Bill 10×</h3><p>A small tweak to a prompt added an extra LLM round-trip. Latency jumped from 120ms to 820ms. Token usage surged. The AWS bill exploded overnight — before the engineering team realized what was happening. [<a href="https://www.forbes.com/sites/sylvainduranton/2024/02/05/the-bermuda-triangle-of-generative-ai-cost-latency-and-relevance">Reference</a>]</p><h3>Lawyers Fined for Fake Citations via ChatGPT</h3><p>Two lawyers submitted a legal brief with fake court citations generated by ChatGPT. The court fined them, and their credibility took a hit. [<a href="https://www.theguardian.com/technology/2023/jun/23/two-us-lawyers-fined-submitting-fake-court-citations-chatgpt">Link</a>]</p><h3>Types of Evals You Should Be Running</h3><h3>1. Extraction Evals</h3><p><em>Use for</em>: Structured outputs like totals, dates, or customer IDs.<br> Prevents: Silent data corruption that downstream systems can’t handle.</p><p>Set a regex check on your expected output. Block deploys if even 1% fail.</p><h3>2. Latency &amp; Cost Evals</h3><p><em>Use for</em>: Scalable LLM apps where performance affects UX or margins.<br> Prevents: Cost blowups and user drop-offs.</p><p>Track p95 latency and token costs. Gate merges based on limits.</p><h3>3. RAG Evals (Retrieval-Augmented Generation)</h3><p><em>Use for</em>: Apps that use internal data to generate answers.<br> Prevents: Hallucinations, inaccurate citations, and broken trust.</p><p>Use tools like RAGAS to score faithfulness and citation precision.</p><h3>4. Compliance Evals</h3><p><em>Use for</em>: Public-facing or regulated use cases (legal, medical, financial).<br> Prevents: PII leaks, unapproved advice, or brand-damaging outputs.</p><p>Red-team with edge-case prompts. Block if safety &lt; 0.9.</p><h3>5. Agentic Evals</h3><p><em>Use for</em>: Multi-step agents that make decisions or call tools.<br> Prevents: Snowballing errors, API abuse, or cascading failures.</p><p>Score both macro success and micro step safety. Analyze trace logs.</p><h3>How to Learn More and Start Writing Evals</h3><p>Whether you’re a developer, product manager, or founder, the following resources will help you build a robust eval pipeline:</p><h3>Foundational Guides</h3><p>AI Evals for Product Managers — <a href="https://www.productcompass.pm/p/ai-evals">Product Compass</a></p><p>Starter Guide for Evals — <a href="https://www.alignmentforum.org/posts/2PiawPFJeyCQGcwXG/a-starter-guide-for-evals">AI Alignment Forum</a></p><p>Complete Guide to AI Evals —<a href="https://www.lennysnewsletter.com/p/beyond-vibe-checks-a-pms-complete"> Lenny’s Newsletter</a></p><h3>Practical Tools</h3><p>OpenAI Evals GitHub <a href="https://github.com/openai/evals">Repo</a></p><p>OpenAI Cookbook —<a href="https://cookbook.openai.com/examples/evaluation/getting_started_with_openai_evals"> Getting Started with Evals</a></p><p>Braintrust <a href="https://www.braintrust.dev/docs/guides/evals">Evals Framework</a></p><h3>How-To Guides</h3><p>Show, Don’t Tell: <a href="https://www.ddmckinnon.com/2025/03/30/show-dont-tell-a-llama-pms-guide-to-writing-genai-evals/">Writing GenAI Evals</a></p><p>AI Evals — <a href="https://www.thoughtworks.com/en-us/insights/decoder/a/ai-evals">ThoughtWorks Decoder</a></p><h3>Watch</h3><p>OpenAI Evals Explained with Examples (<a href="https://www.youtube.com/watch?v=HLEZSo-6aTI">YouTube</a>)</p><h3><strong>Final Thoughts</strong></h3><p>Evals are the difference between AI as a liability and AI as a dependable partner.</p><p>Start small. Gate one thing — formatting, latency, hallucination. Let your thresholds evolve. Build muscle. You don’t need a 20-page benchmark report when a 4-line YAML check can block a six-figure mistake.</p><p>Because in AI, what you don’t eval will eventually find its way to production — and possibly to court.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67f36b4f5b22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Isn’t Just a Tool — It’s Your Newest Teammate]]></title>
            <link>https://medium.com/@munish.munagala/ai-isnt-just-a-tool-it-s-your-newest-teammate-8995bb2d1c9c?source=rss-7b681932edc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/8995bb2d1c9c</guid>
            <dc:creator><![CDATA[Munish Munagala]]></dc:creator>
            <pubDate>Thu, 17 Apr 2025 02:36:36 GMT</pubDate>
            <atom:updated>2025-04-17T03:46:04.486Z</atom:updated>
            <content:encoded><![CDATA[<h3>AI Isn’t Just a Tool — It’s Your Newest Teammate</h3><p>Think about how a great movie gets made.</p><p>It’s never just one person. The director brings the vision. The screenwriter tells the story. The actors bring emotion. The cinematographer creates the visual language. The editor makes it all feel seamless.</p><p>No single person owns the whole thing — <strong>the brilliance happens in the spaces between</strong>. The true intelligence behind a film lives in the teamwork, the coordination, the real-time problem solving that only happens when everyone is in sync.</p><p>Now, imagine trying to recreate that same film years later with a new group. You might have the same script. The same tools. The same budget. But it wouldn’t be the same movie. Why? Because the <em>original team</em> held something special: a shared understanding you can’t just download or document.</p><p>That’s the heart of what I want to talk about today.</p><p>Because we’re now entering an era where AI is becoming part of our teams — but we’re still treating it like a personal assistant we use in secret.</p><h3>AI Is Sneaking In the Back Door</h3><p>Most of us use AI alone.</p><p>You open up ChatGPT to fix some wording. You use it to outline your presentation. Maybe you quietly use it for some idea generation. It’s powerful — and useful.</p><blockquote>But here’s the problem: <strong>you’re doing it solo.</strong> Your prompts are yours. Your results are yours. You might be proud of them. You might be frustrated. But either way, they live in isolation.</blockquote><p>And in many workplaces, people don’t talk openly about using AI at all. Sometimes, you have to <em>hide</em> it.</p><p>That’s a mistake.</p><h3>Teams Build the Big Stuff</h3><p><strong>Just like movies, complex and meaningful work gets done by teams, not individuals.</strong> That’s where creativity scales. That’s where quality compounds. That’s where innovation happens.</p><p><em>So why are we treating AI as a private tool instead of a team resource?</em></p><p>We should be asking:</p><ul><li>How can teams use AI <em>together</em>?</li><li>How do we make AI part of our shared workflows?</li><li>How do we make it a teammate, not just a shortcut?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*W_z4C58ORrfUvcVWmXLc5w@2x.jpeg" /></figure><h3>It Starts with Small Shifts</h3><p>Here’s how we can begin:</p><ul><li><strong>Share your prompts.</strong> Don’t keep them to yourself. Build a prompt library inside your team or org.</li><li><strong>Create shared AI agents.</strong> Ones that understand your team’s language, goals, and challenges.</li><li><strong>Build context together.</strong> AI is more powerful when it understands the full picture — not just one person’s task.</li><li><strong>Treat AI as a team sport.</strong> Just like a movie set, where everyone has a role but is working toward one story, AI should support the whole group, not just one player.</li></ul><h3>We’re Not Just Automating — We’re Evolving</h3><p>This isn’t just about efficiency. It’s about <strong>how we think together</strong>.</p><p>For most of human history, thinking lived in our heads. Then we started writing it down. Now we’re entering a new phase: <em>we’re offloading some of our thinking to AI.</em></p><p>That’s called <strong>distributed cognition</strong> — where thinking lives between people and systems, not just within them.</p><p>In high-performing teams, there’s always been a kind of “gray intelligence” — a shared rhythm, unspoken coordination, common mental models. Now, with AI in the mix, that shared intelligence can become even more powerful — <strong>if we use it intentionally.</strong></p><h3>Let’s Not Sleep on This</h3><p>We talk a lot about how AI empowers individuals — and it absolutely does.</p><p>But I think we’re <strong>sleeping on the impact AI can have on teams</strong>.</p><p>This is bigger than boosting your to-do list. It’s about reshaping how humans work together. We’re not just using tools anymore — we’re building systems where AI becomes part of how we think, plan, create, and collaborate.</p><p>So don’t treat AI like a secret weapon you use on the side.</p><p>Treat it like the newest member of your team.</p><p>Because the future won’t be built by individuals using AI alone.<br> It’ll be built by <strong>teams using AI together</strong>.</p><p><em>Thanks for reading. If you’re exploring how to bring AI into your team’s workflow, I’d love to hear what’s working — or not. Drop a comment or message me.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8995bb2d1c9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Back to Blogging: Google Just Announced Agent2Agent Protocol (A2A), and It’s a Big Deal]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@munish.munagala/back-to-blogging-google-just-announced-agent2agent-protocol-a2a-and-its-a-big-deal-64863fb282cc?source=rss-7b681932edc2------2"><img src="https://cdn-images-1.medium.com/max/690/1*OuONNHXR74NYRi4VnhS7Qg.png" width="690"></a></p><p class="medium-feed-snippet">It&#x2019;s been a while since I wrote a blog&#x200A;&#x2014;&#x200A;but today&#x2019;s news from Google pulled me right back in. They just announced something called&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@munish.munagala/back-to-blogging-google-just-announced-agent2agent-protocol-a2a-and-its-a-big-deal-64863fb282cc?source=rss-7b681932edc2------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@munish.munagala/back-to-blogging-google-just-announced-agent2agent-protocol-a2a-and-its-a-big-deal-64863fb282cc?source=rss-7b681932edc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/64863fb282cc</guid>
            <dc:creator><![CDATA[Munish Munagala]]></dc:creator>
            <pubDate>Thu, 10 Apr 2025 02:55:05 GMT</pubDate>
            <atom:updated>2025-04-10T02:58:13.653Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[From GitHub Copilot to Your Coding Companion: Meet Devin, the First AI Software Engineer]]></title>
            <link>https://medium.com/@munish.munagala/from-github-copilot-to-your-coding-companion-meet-devin-the-first-ai-software-engineer-e13ecc515d99?source=rss-7b681932edc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e13ecc515d99</guid>
            <category><![CDATA[github-copilot]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Munish Munagala]]></dc:creator>
            <pubDate>Fri, 15 Mar 2024 18:01:08 GMT</pubDate>
            <atom:updated>2024-03-16T17:28:41.864Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you met Devin? Devin is the latest AI software engineer, a title given by <a href="https://www.cognition-labs.com/">Cognition Labs</a> in their recent announcement. The choice of the name ‘Devin’ is intriguing, and I’m quite eager to uncover the story behind it. However, the most noteworthy aspect of Devin is its ability for long-term reasoning and planning, an important aspect of software development.</p><h3>Background</h3><p>LLMs excel at understanding language, having been trained on a vast corpus of data. Their strength lies in predicting the next token or word and in simplifying complex language patterns. Interestingly, because coding languages share foundational elements with human languages, these models are adept at learning from extensive codebases and predicting subsequent code tokens. This ability enables them to assist in coding tasks, that many of us have come to appreciate with tools like ChatGPT or GitHub Copilot.</p><blockquote>So, what sets Devin apart? Here’s the crux: Devin is capable of long-term reasoning and planning. <strong><em>This distinction is crucial, as GitHub Copilot is skilled at completing coding tasks but lacks the capability for actual software development.</em></strong></blockquote><h3>So, what does Devin offer?</h3><p>Devin is not just another tool; it’s a leap forward in <strong>AI-assisted </strong>software engineering. Here’s a snapshot of what Devin brings to the table:</p><ul><li><a href="https://youtu.be/G45NKnAWuXc"><strong>Building and Deploying Applications:</strong></a> Devin streamlines the development process, from conceptualizing interactive websites to deploying fully functional applications.</li><li><a href="https://youtu.be/TiXAzn2_Xck"><strong>Autonomous Debugging</strong></a><strong>:</strong> Beyond mere code generation, Devin excels in maintaining and troubleshooting codebases, even contributing to the maintenance of open-source educational resources.</li><li><strong>AI Model Training:</strong> With minimal guidance, Devin showcases its prowess in setting up and optimizing AI models, a testament to its independent learning capabilities.</li><li><strong>Open Source Contributions: </strong>Devin’s efficiency shines in its handling of open-source projects, adeptly managing bugs and feature enhancements.</li><li><a href="https://youtu.be/G45NKnAWuXc"><strong>Learning and Utilizing New Technologies</strong></a></li></ul><p><a href="https://youtu.be/UTS2Hz96HYQ">Cognition Labs has even put Devin to the test in the real world, assigning it tasks on Upwork where it successfully completed real jobs.</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfjHtjT7GO1c%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfjHtjT7GO1c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfjHtjT7GO1c%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/de0b790d1ed24ed559d3cf6cf090355b/href">https://medium.com/media/de0b790d1ed24ed559d3cf6cf090355b/href</a></iframe><h3>Devin’s Performance</h3><p>According to Cognition-Lab, when they evaluated Devin on <a href="https://www.swebench.com/">SWE-bench</a>, a challenging benchmark that asks AI agent to resolve real-world GitHub issues found in open-source projects, Devin far exceeded the popular LLMs with about 14% success rate compared to its nearest predecessor at 4.8%</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*7tVHAl5-lasepKilTXJqwA.png" /><figcaption>Devin was evaluated on a random 25% subset of the dataset. Devin was unassisted, whereas all other models were assisted (meaning the model was told exactly which files need to be edited).</figcaption></figure><p>“<a href="https://www.cognition-labs.com/blog"><em>Devin correctly resolves 13.86%* of the issues end-to-end, far exceeding the previous state-of-the-art of 1.96%. Even when given the exact files to edit, the best previous models can only resolve 4.80% of issues.</em>”</a></p><h3>So, What&#39;s next?</h3><p>The advent of Devin sparks a mixed reaction among experts. Some caution against overreliance on AI for tasks requiring deep creativity and human intuition. Others, however, see Devin as a valuable ally to software engineers, bridging the gap between human expertise and AI efficiency.</p><p>Cognition Labs, envisions a future where AI and humans collaborate seamlessly. “<em>Building Devin is just the beginning; our most challenging work lies ahead,” </em>the company states.</p><p><strong>Devin is poised to join engineering teams soon, though interested companies must currently join a waitlist according to their website.</strong></p><h3>Final Thoughts</h3><p>Devin represents a significant milestone in the journey toward integrating AI into software development. By merging long-term planning with technical skill, Devin offers a glimpse into a future where AI assists not just in coding but in crafting sophisticated software solutions. As we stand on the brink of this new frontier, the potential for innovation and collaboration between AI and human creativity has never been more exciting.</p><h3>References</h3><p><a href="https://twitter.com/cognition_labs">https://twitter.com/cognition_labs</a></p><p><a href="https://www.cognition-labs.com/blog">https://www.cognition-labs.com/blog</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e13ecc515d99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenAI Unveils Function Calling — Yet Another Breakthrough!]]></title>
            <link>https://medium.com/@munish.munagala/openai-unveils-function-calling-yet-another-breakthrough-ea6c45c34ccd?source=rss-7b681932edc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea6c45c34ccd</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[calling-function]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Munish Munagala]]></dc:creator>
            <pubDate>Fri, 16 Jun 2023 03:17:22 GMT</pubDate>
            <atom:updated>2023-06-23T15:45:24.032Z</atom:updated>
            <content:encoded><![CDATA[<h3>OpenAI Unveils Function Calling — Yet Another Breakthrough!</h3><p><strong>Disclaimer</strong>:<em> It is important for individuals to be familiar with their company’s policies regarding data protection and sharing. Furthermore, individuals should refrain from uploading any company-related data onto publicly accessible versions of ChatGPT and OpenAI APIs.</em></p><h3><strong>Introduction</strong></h3><blockquote><em>OpenAI’s ChatGPT continues to captivate the world, and the company just introduced a series of impressive updates. The latest update, rolled out yesterday (June 13th), brings several noteworthy enhancements, such as steerable API models, expanded context capabilities, more affordable API calls, and </em><strong><em>the most thrilling addition — function calling</em></strong><em>. This exciting new feature equips us with a powerful tool to further enhance the potential of ChatGPT and shape the future.</em></blockquote><p><em>Function calling</em> will enable development of systems that leverage ChatGPT’s text generation capabilities while also facilitating action execution.</p><blockquote>The mechanics behind this feature are truly astounding as they enable the conversion of unstructured data into structured data, opening up incredible possibilities. As an example, currently, digital experiences heavily rely on structured data entry, such as form-based entries, since this is how systems understand and store data. Creating experiences that utilize natural language processing (NLP) unstructured data, such as spoken or written text, has historically been challenging and prone to errors. However, with the continuous advancement and increasing sophistication of AI, these challenges are becoming less concerning, unlocking opportunities to build completely new digital experiences that closely resemble human thinking and interactions. Function Calling will become one such vital tool for developers as they build the digital capabilities of future.</blockquote><p>I embarked on an exploratory journey on Function calling, last night and the results have been truly remarkable, prompting me to share my discoveries in this blog post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*MU6swBc_zkwt3zr5CSYntw.png" /><figcaption>Function Calling API Logo</figcaption></figure><h4><strong>Background</strong></h4><p>ChatGPT/ ChatGPT APIs, are great at generating text and conversational interactions. However, it cannot provide real-time information. For instance, if you were to inquire about the weather in Philadelphia, ChatGPT would be unable to provide an answer. Moreover, it lacks the capability to perform any action or pull real-time information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*Zo33bEt_qzVQxDg4dG6iEw.png" /></figure><p>In order to build such a system, previously you would require using ChatGPT APIs along with some custom parsers or using frameworks like LangChain or Semantic Kernel.</p><p>With the introduction of Function calling, that functionality is available out of the box with ChatGPT APIs.</p><h4>Introducing Function Calling</h4><p>A couple new API parameters have been added to Chat Completion API endpoint (/v1/chat/completions) <em>function</em> and <em>function_calls</em> that will allow developers to describe functions (that their system supports) to gpt-4–0613 and gpt-3.5-turbo-0613, and have the model intelligently choose to output a JSON object containing arguments to call those functions (<em>hence the name Function calling</em>). This would allow connecting GPT’s capabilities with external tools and APIs.</p><p>For example, developers can:</p><blockquote>Create chatbots that answer questions by calling external tools (e.g., like ChatGPT Plugins) Convert queries such as “Email Anya to see if she wants to get coffee next Friday” to a function call like send_email(to: string, body: string), or “What’s the weather like in Boston?” to get_current_weather(location: string, unit: ‘celsius’ | ‘fahrenheit’).</blockquote><blockquote>Convert natural language into API calls or database queries Convert “Who are my top ten customers this month?” to an internal API call such as get_customers_by_revenue(start_date: string, end_date: string, limit: int), or “How many orders did Acme, Inc. place last month?” to a SQL query using sql_query(query: string).</blockquote><blockquote>Extract structured data from text Define a function called extract_people_data(people: [{name: string, birthday: string, location: string}]), to extract all people mentioned in a Wikipedia article.</blockquote><p>The basic sequence of steps for function calling is as follows:</p><p>Step 1: Call the model with the user query and a set of functions defined in the functions parameter.</p><p>Step 2: The model can choose to call a function; if so, the content will be a stringified JSON object adhering to your custom schema (note: the model may generate invalid JSON or hallucinate parameters).</p><p>Step 3: Parse the string into JSON in your code, and call your function with the provided arguments if they exist.</p><p>Step 4: Call the model again by appending the function response as a new message, and let the model summarize the results back to the user.</p><p><strong><em>[Reference — </em></strong><a href="https://openai.com/blog/function-calling-and-other-api-updates?ref=upstract.com"><strong><em>OpenAI API Doc</em></strong></a><strong><em>]</em></strong></p><h4><strong>Function Calling Example</strong></h4><p>The following example provides a basic demonstration of how to construct a home automation system capable of understanding natural language commands and utilizing OpenAI Function Calling to identify the appropriate methods for executing various tasks. It is important to note that this is a simulated scenario aimed at showcasing the capabilities of Function Calling, rather than a comprehensive guide on building an actual home automation system.</p><p><strong>Step 1:</strong> Install the needed packages</p><pre>pip install openai<br>pip install streamlit<br>pip install python-dotenv<br><br></pre><p><strong>Step 2:</strong> Import necessary Packages</p><pre>import streamlit as st<br>import openai<br>import json<br>import os<br>from dotenv import dotenv_values</pre><p><strong>Step 3:</strong> Get OpenAI API Key</p><p>To generate OpenAI key, you need to go to <a href="https://platform.openai.com/account/api-keys">https://platform.openai.com/account/api-keys</a>, log in and then grab the keys using highlighted way:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FjSlAtCuqqXSutrGt_c_TQ.png" /></figure><p><strong>Step 4:</strong> Create a Python class to simulate HomeAutomation functionalities</p><pre>class HomeAutomation:<br>    def TurnOnLights(self, room):<br>        &quot;&quot;&quot;<br>        Turn on the lights in the specified room.<br><br>        Args:<br>            room (str): The room where the lights should be turned on.<br>        &quot;&quot;&quot;<br>        st.markdown(f&quot;Lights turned ON - **{room}**&quot;)<br><br>    def TurnOffLights(self, room):<br>        &quot;&quot;&quot;<br>        Turn off the lights in the specified room.<br><br>        Args:<br>            room (str): The room where the lights should be turned off.<br>        &quot;&quot;&quot;<br>       st.markdown(f&quot;Lights turned ON - **{room}**&quot;)</pre><p><strong>Step 5:</strong> Configure and specify the OpenAI API Calls. Here are a couple of important details to consider:</p><ol><li>Pay attention to the API parameter provided in the /v1/chat/completions endpoint mentioned below.</li><li>To utilize Function Calling, ensure that the model used is either g<em>pt-4–0613 or gpt-3.5-turbo-0613.</em> The following example employs gpt-3.5-turbo-0613.</li></ol><pre>def call_gpt(prompt):<br>    &quot;&quot;&quot;<br>    Make a ChatCompletion API call to OpenAI GPT-3.5-turbo model.<br><br>    Args:<br>        prompt (str): The user&#39;s prompt or input text.<br><br>    Returns:<br>        str: The generated response from the API call.<br>    &quot;&quot;&quot;<br>    completion = openai.ChatCompletion.create(<br>        model=&quot;gpt-3.5-turbo-0613&quot;,<br>        messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: prompt}],<br>        functions=[<br>            {<br>                &quot;name&quot;: &quot;TurnOnLights&quot;,<br>                &quot;description&quot;: &quot;Turn On the lights&quot;,<br>                &quot;parameters&quot;: {<br>                    &quot;type&quot;: &quot;object&quot;,<br>                    &quot;properties&quot;: {<br>                        &quot;room&quot;: {<br>                            &quot;type&quot;: &quot;string&quot;,<br>                            &quot;description&quot;: &quot;The room&quot;,<br>                        },<br>                    },<br>                    &quot;required&quot;: [&quot;room&quot;],<br>                },<br>            },<br>            {<br>                &quot;name&quot;: &quot;TurnOffLights&quot;,<br>                &quot;description&quot;: &quot;Turn Off the lights&quot;,<br>                &quot;parameters&quot;: {<br>                    &quot;type&quot;: &quot;object&quot;,<br>                    &quot;properties&quot;: {<br>                        &quot;room&quot;: {<br>                            &quot;type&quot;: &quot;string&quot;,<br>                            &quot;description&quot;: &quot;The room&quot;,<br>                        },<br>                    },<br>                    &quot;required&quot;: [&quot;room&quot;],<br>                },<br>            }<br>        ],<br>        function_call=&quot;auto&quot;,<br>    )<br>    return completion.choices[0].message</pre><p><strong>Step 6:</strong> Create mechanism to take the reponse from OpenAI API call to dynamically invoke functions of your application</p><pre>        reply_content = call_gpt(prompt)<br><br>        funcName = reply_content.to_dict()[&#39;function_call&#39;][&#39;name&#39;]<br>        funcArg = reply_content.to_dict()[&#39;function_call&#39;][&#39;arguments&#39;]<br><br>        method_name = funcName<br>        func = json.loads(funcArg)<br>        params = func[&#39;room&#39;]<br><br>        method = getattr(obj, method_name)<br>        method(params)</pre><p>Voila! Now, you can interact with your application by simply saying, “Switch off the master bedroom lights.” The OpenAI API call will take that text and convert to a JSON respresentation of function call like : turn_off_lights(&quot;master bedroom&quot;), allowing you to easily execute it within your system.</p><p>You can find the complete code for this sample by following this link: [<a href="https://github.com/mmunagala/funcCalling/tree/main">Link to Complete Code</a>].</p><h3><strong>Conclusion</strong></h3><p>The incorporation of OpenAI’s function calling capability signifies another remarkable advancement, allowing for the infusion of intelligence into both existing and new applications <strong>effortlessly</strong>. As developers work on building systems for the future, this feature would undoubtedly become a critical asset in their arsenal.</p><p>It also compels us to rethink our interactions with the digital realm. While capturing data in a structured format has dominated the digital world, the increasing ease of using OpenAI raises an intriguing question: is the traditional approach of using structured data (such as forms) truly the optimal method? Could we enhance digital experiences by making them more natural and allowing systems to handle the heavy lifting task of converting unstructured data into structured formats? <strong>Worth Pondering!!</strong></p><h4>References:</h4><ul><li><a href="https://openai.com/blog/function-calling-and-other-api-updates?ref=upstract.com">Function calling and other API updates</a></li><li><a href="https://github.com/mmunagala/funcCalling">GitHub - mmunagala/funcCalling: OpenAI Function Calling</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea6c45c34ccd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Astounding Progress of AI: AutoGPT — An Autonomous AI Agent]]></title>
            <link>https://medium.com/@munish.munagala/the-astounding-progress-of-ai-autogpt-an-autonomous-ai-agent-813af58e5286?source=rss-7b681932edc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/813af58e5286</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[auto-gpt]]></category>
            <category><![CDATA[agi]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Munish Munagala]]></dc:creator>
            <pubDate>Mon, 17 Apr 2023 03:25:27 GMT</pubDate>
            <atom:updated>2023-04-17T15:28:49.433Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Astounding Progress of AI: AutoGPT — An Autonomous AI Agent</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TkjRELYQP2F5ThoHVYcqZg.png" /><figcaption>Courtesy — DALL-E 2 Generated Image</figcaption></figure><h3>Introduction</h3><p>My first foray in to artificial intelligence was in the summer of 2000, when I took an introductory AI course during my master’s program. One topic that left a lasting impression was the Turing Test, which I encountered while studying a paper published in 1950 by Alan Turing called “Computing Machinery and Intelligence”. In this paper, Turing presented a thought experiment that has since become known as the Turing Test.</p><blockquote>The Turing Test evaluates a machine’s ability to display intelligent behavior indistinguishable from human intelligence. In the original version, an evaluator conducts a text-based conversation with both a human and a machine, without knowing the identity of either participant. If the evaluator cannot consistently determine which participant is the machine, the AI is deemed to have “passed” the Turing Test.</blockquote><p>Even at that time (early 2000&#39;s), the idea appeared mostly theoretical and science fictional, as the power of computers was limited, storage was prohibitively expensive and such a knowledge base electronically didn’t exist. Yet, fast-forwarding more than two decades, the emergence of LLMs like GPTs has brought the Turing Test closer to reality. Despite this progress, I still believed it would take another decade for AI to pass the Turing Test and achieve AI general intelligence. <em>However, with advances happening so rapidly, GPT-4 which was released just a few weeks ago already feels outdated</em>. Not only does the prospect of passing the Turing Test seem much plausible, but <a href="https://en.wikipedia.org/wiki/Artificial_general_intelligence">AGI </a>agents <em>(a hypothetical AI agents that can perform intellectual task like humans) </em>becoming a reality appears to be just around the corner. <em>Meet the new kid AutoGPT!!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*rdtW2V7nICtNwBhN9w5HAA.png" /><figcaption>Definition of AGI — Source Wikipedia</figcaption></figure><h3>What is AutoGPT?</h3><p>AutoGPT is an experimental open-source Python application and was made available on March 30, 2023. Utilizing GPT-4 as its foundation, the app allows <strong>AI to operate</strong> <strong>autonomously</strong>, removing the requirement for user prompts at every step (unlike ChatGPT). <em>AutoGPT essentially functions as an agent capable of handling assigned tasks until completion, while creating new agents, collaborating with other agents, browsing the internet, and storing short-term and long-term decisions as necessary.</em></p><p>AutoGPT is composed of following:</p><p>1. GPT-4 (LLM) as its foundation, acting as its brain.</p><p>2. The app includes built-in logic that enables it to iterate, self-correct, and take actions, functioning as its senses.</p><p>3. It can store short-term and long-term session data in a vector database (Pinecone), providing it with memory.</p><p>4. The app allows it to browse the internet, gather information, store it, and edit it.</p><p>The AI community has already begun harnessing its capabilities for various tasks, such as affiliate marketing, copywriting, website design, <strong><em>writing and executing code</em></strong><em> </em>(all autonomously!). Truly, its potential applications seem to be limited only by one’s imagination!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rAa6Zc1QfTWPbRgkf0Xlzg.png" /></figure><p>The creator of AutoGPT, identified by the Twitter handle <a href="https://twitter.com/SigGravitas">@SigGravitas</a>, actively supports users in getting started with the tool. Videos illustrating its functionality, setup, and inner workings are also available. For those with limited technical skills, @SigGravitas offers assistance by sharing prompts and generated output on Twitter.</p><h4><strong>The Future: Utopia or Human Extinction?</strong></h4><p>The potential applications of AutoGPT have left many people speculating about the future. Some believe that AI could lead to a utopia where all human problems are solved, while others fear AGI could become super intelligent and wipe out the human race. The truth probably lies somewhere in between, but one thing is certain: the world is changing rapidly, and the implications of these advancements in AI will be felt across every aspect of our lives.</p><p>In the coming years, artificial intelligence could revolutionize the way businesses make decisions, the way people work, and even the way we interact with each other. The world in next couple of years will be nothing like the world now, and it’s up to us to ensure that these changes are for the better.</p><h3>Conclusion</h3><p>As AI continues to progress at an astounding rate, the implications of developments like AutoGPT are both exciting and concerning. While the potential for a utopia is enticing, we must also consider the risks and work towards a future where AI benefits everyone without posing existential threats. The world is changing rapidly, and we must be prepared to adapt and evolve with it.</p><h3>References</h3><ul><li><a href="https://autogpt.net/">AutoGPT - AI News &amp; Articles</a></li><li><a href="https://autogpt.net/autogpt-installation-and-features/">AutoGPT Installation and Features - AutoGPT</a></li><li><a href="https://twitter.com/SigGravitas">JavaScript is not available.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=813af58e5286" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>