<?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 Sangram Birje on Medium]]></title>
        <description><![CDATA[Stories by Sangram Birje on Medium]]></description>
        <link>https://medium.com/@birjesangram?source=rss-7690a7c3254a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Sangram Birje on Medium</title>
            <link>https://medium.com/@birjesangram?source=rss-7690a7c3254a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:52:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@birjesangram/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How an LLM Works: From Prompt to Response in 10 Stages]]></title>
            <link>https://medium.com/@birjesangram/how-an-llm-works-from-prompt-to-response-in-10-stages-f74028f13003?source=rss-7690a7c3254a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f74028f13003</guid>
            <category><![CDATA[data-modernization]]></category>
            <category><![CDATA[digital-growth]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Sangram Birje]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 12:31:01 GMT</pubDate>
            <atom:updated>2026-11-27T12:31:01.688Z</atom:updated>
            <content:encoded><![CDATA[<p>What actually happens in the few seconds between typing a question and getting an answer, and why it matters for cost, speed and reliability.</p><p>You type “What is AI?” into a chatbot. A second later, an answer starts appearing, word by word.</p><p>It feels like a conversation. But behind that simple exchange, the model is running a precise sequence of steps, over and over, one token at a time.</p><p>Many people treat large language models as a black box. That’s fine for casual use. But if you’re responsible for deploying AI in an organisation, understanding what happens inside explains a lot: why long prompts cost more, why answers stream out gradually, and why the same question can produce different answers.</p><p>Here’s how an LLM turns your prompt into a response, in 10 stages and 3 phases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*88zKDA0qC8CXbNMXejJApg.gif" /></figure><p>𝗣𝗮𝗿𝘁 𝟭: 𝗣𝗿𝗲𝗽𝗮𝗿𝗲 𝘁𝗵𝗲 𝗜𝗻𝗽𝘂𝘁</p><p>Before the model can do anything, your words need to become numbers.</p><p>𝗦𝘁𝗮𝗴𝗲 𝟭: 𝗜𝗻𝗽𝘂𝘁 𝗽𝗿𝗼𝗺𝗽𝘁</p><p>Everything starts with the text you type. The model can’t read letters the way we do. At this point, your question is just one plain string of characters.</p><p>𝗦𝘁𝗮𝗴𝗲 𝟮: 𝗧𝗼𝗸𝗲𝗻𝗶𝘇𝗲𝗿</p><p>The tokenizer splits that text into tokens: small chunks that are often whole words, parts of words or punctuation. “What is AI?” might become four or five tokens.</p><p>This is why AI pricing is measured in tokens, not words. And it’s why some languages, which split into more tokens, can cost more to process.</p><p>𝗦𝘁𝗮𝗴𝗲 𝟯: 𝗧𝗼𝗸𝗲𝗻 𝗜𝗗𝘀</p><p>Each token is looked up in the model’s vocabulary, a fixed list that can run to more than a hundred thousand tokens, and replaced with its ID number. Your question is now a short list of integers.</p><p>𝗦𝘁𝗮𝗴𝗲 𝟰: 𝗘𝗺𝗯𝗲𝗱𝗱𝗶𝗻𝗴𝘀</p><p>Each ID is converted into an embedding: a dense vector, a long list of numbers that represents the token’s meaning. Tokens with similar meanings end up with similar vectors.</p><p>This is the same idea behind semantic search and RAG systems: once meaning is captured as numbers, it can be compared mathematically.</p><p>𝗦𝘁𝗮𝗴𝗲 𝟱: 𝗣𝗼𝘀𝗶𝘁𝗶𝗼𝗻𝗮𝗹 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻</p><p>Word order matters. “Dog bites man” and “man bites dog” use the same words but mean very different things. So the model adds positional information to each vector, telling it where each token sits in the sequence.</p><p>𝗣𝗮𝗿𝘁 𝟮: 𝗣𝗿𝗲𝗳𝗶𝗹𝗹</p><p>Now the real computation begins.</p><p>𝗦𝘁𝗮𝗴𝗲 𝟲: 𝗧𝗿𝗮𝗻𝘀𝗳𝗼𝗿𝗺𝗲𝗿 𝗹𝗮𝘆𝗲𝗿𝘀</p><p>The vectors pass through a stack of transformer layers, often dozens of them. Each layer has two main parts:</p><p>• Attention: each token looks at the other tokens to work out which ones matter for its meaning. In “We had a picnic on the bank of the river”, attention links “bank” to “river”, so the model knows it isn’t a financial institution.<br>• Feed-forward network: each token’s representation is refined further.</p><p>This is where most of the model’s “understanding” happens, and where most of the compute goes. It’s also why longer prompts cost more: attention compares tokens with each other, so the work grows as the context grows.</p><p>𝗦𝘁𝗮𝗴𝗲 𝟳: 𝗟𝗼𝗴𝗶𝘁𝘀</p><p>After the final layer, a linear layer produces a score, called a logit, for every token in the vocabulary. These scores reflect how likely each token is to come next.</p><p>𝗦𝘁𝗮𝗴𝗲 𝟴: 𝗦𝗼𝗳𝘁𝗺𝗮𝘅</p><p>Softmax turns those raw scores into probabilities that add up to 100%. The model might give “Artificial” a 62% chance, “AI” 18%, and so on.</p><p>𝗦𝘁𝗮𝗴𝗲 𝟵: 𝗦𝗮𝗺𝗽𝗹𝗶𝗻𝗴</p><p>The model now picks the next token. It doesn’t always choose the most likely one. Settings such as temperature control how adventurous the choice is:</p><p>• Low temperature: more predictable, consistent answers.<br>• High temperature: more varied, creative answers.</p><p>This is why the same prompt can give different answers on different runs.</p><p>𝗣𝗮𝗿𝘁 𝟯: 𝗗𝗲𝗰𝗼𝗱𝗲</p><p>𝗦𝘁𝗮𝗴𝗲 𝟭𝟬: 𝗗𝗼𝗻𝗲?</p><p>The model checks whether it has produced a special end-of-sequence (EOS) token. If not, it appends the new token to the input and goes back to stage 6 to predict the next one.</p><p>That loop is the reason answers stream out word by word. The model isn’t writing a full response and then showing it to you. It’s generating one token, then the next, then the next, until it decides it’s done.</p><p>𝗣𝗮𝗿𝘁 𝟰: 𝗪𝗵𝗮𝘁 𝗧𝗵𝗶𝘀 𝗠𝗲𝗮𝗻𝘀 𝗳𝗼𝗿 𝗟𝗲𝗮𝗱𝗲𝗿𝘀</p><p>You don’t need to build an LLM to use one well. But understanding these stages helps with practical decisions.</p><p>1. Cost follows tokens. Both your prompt and the model’s answer are measured in tokens. Long system prompts, large documents and verbose answers all add up.</p><p>2. Context isn’t free. The more text you send, the more work the model does at every step. Sending only the relevant context, rather than everything, saves money and often improves quality.</p><p>3. Speed has two parts. The first token depends on how long your prompt is (prefill). The rest of the answer depends on how many tokens it generates (decode). Shorter, more focused answers return faster.</p><p>4. Consistency is a setting. If your use case needs the same answer every time, such as classification or data extraction, use lower temperature settings and structured outputs.</p><p>5. The model doesn’t “know” in the human sense. It predicts the next most likely token based on patterns. That’s why grounding answers in your own data, and evaluating outputs, matters so much in enterprise use.</p><p>𝗖𝗼𝗻𝗰𝗹𝘂𝘀𝗶𝗼𝗻</p><p>From the outside, an LLM looks like magic. From the inside, it’s a well-defined pipeline: turn text into numbers, find the relationships between them, predict the next token, and repeat.</p><p>Once you see those 10 stages, the behaviour of AI systems becomes much easier to understand, and much easier to manage.</p><p>If you found this useful, subscribe to get more practical insights on Data Modernization, AI Adoption and Digital Growth.<br>Also follow me on <a href="https://www.linkedin.com/in/birjesangram/">https://www.linkedin.com/in/birjesangram/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f74028f13003" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 6 Layers of a Production AI Agent]]></title>
            <link>https://medium.com/@birjesangram/the-6-layers-of-a-production-ai-agent-282532be230f?source=rss-7690a7c3254a------2</link>
            <guid isPermaLink="false">https://medium.com/p/282532be230f</guid>
            <category><![CDATA[data-modernization]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[digital-growth]]></category>
            <dc:creator><![CDATA[Sangram Birje]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 12:31:02 GMT</pubDate>
            <atom:updated>2026-11-25T12:31:02.038Z</atom:updated>
            <content:encoded><![CDATA[<p>Capabilities build upward from the model. Failures flow back down. Here’s how to find where your agent is really breaking.</p><p>When an AI agent fails in production, the first reaction is usually to blame the model. It hallucinated. It misunderstood. It isn’t smart enough. So the team tries a newer, bigger model, and the problem often stays exactly where it was.</p><p>That’s because a production agent isn’t one thing. It’s a stack of six layers, each built on the one below it. The model sits at the bottom. Everything that makes an agent useful, reliable and safe sits on top.</p><p>And here’s the key idea: capabilities build upward, but failures flow back down. A wrong answer at the top might be caused by weak memory, a vague tool description or a prompt that pulled in the wrong context. Unless you can see each layer, you’ll keep fixing the wrong one.</p><p>Let’s walk through the stack from the bottom up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9X59UFS6O01vaRm7usWHPg.gif" /></figure><p>𝗟𝗮𝘆𝗲𝗿 𝟭: 𝗧𝗵𝗲 𝗟𝗟𝗠</p><p>The model is the foundation, and choosing it is a business decision as much as a technical one.</p><p>• Pick the right model for the job. Not every task needs the most powerful option. Classification, routing and extraction often run well on smaller, faster, cheaper models.<br>• Set latency and cost budgets. Decide up front how long a response can take and what it can cost. Those numbers shape every other choice.<br>• Use structured outputs. When the agent’s answer feeds into code, ask for JSON that matches a schema, not free text that has to be parsed.<br>• Plan a fallback model. Providers have outages and rate limits. A production agent should be able to switch to a backup without failing.</p><p>𝗟𝗮𝘆𝗲𝗿 𝟮: 𝗣𝗿𝗼𝗺𝗽𝘁𝘀 &amp; 𝗖𝗼𝗻𝘁𝗲𝘅𝘁</p><p>The model can only work with what you give it. This layer decides what that is.</p><p>• Write a clear system prompt that sets the agent’s role, goal and rules.<br>• Show worked examples of good outputs. Examples often teach a model more than paragraphs of instructions.<br>• Retrieve only what’s relevant. Dumping every document into the context makes answers slower, more expensive and often worse.<br>• Trim long histories. Old conversation turns pile up quickly. Keep what matters and drop the rest.</p><p>Many “model problems” are really context problems: the model answered well, based on the wrong information.</p><p>𝗟𝗮𝘆𝗲𝗿 𝟯: 𝗧𝗼𝗼𝗹𝘀 &amp; 𝗠𝗖𝗣</p><p>Tools are what turn a chatbot into an agent. They let it search, update records, send messages and take action.</p><p>• Connect tools via MCP, the Model Context Protocol, so integrations follow one standard.<br>• Write clear tool descriptions. The model chooses tools by reading their descriptions. A vague one leads to the wrong tool being called.<br>• Validate tool inputs before anything runs.<br>• Scope permissions tightly. Give the agent only the access each task needs.<br>• Handle tool errors gracefully, so one failed call doesn’t break the whole task.<br>• Sandbox code execution, so generated code can’t touch production systems.</p><p>𝗟𝗮𝘆𝗲𝗿 𝟰: 𝗠𝗲𝗺𝗼𝗿𝘆</p><p>Without memory, an agent starts from zero every time. With badly managed memory, it confidently remembers the wrong things.</p><p>• Keep short-term state for the current task.<br>• Store long-term facts about users and their preferences.<br>• Summarise old turns, so long conversations stay manageable.<br>• Recall past outcomes, so the agent learns from what worked before.<br>• Isolate memory per user, so one customer’s data never leaks into another’s answers.<br>• Expire stale memories. Outdated facts are a quiet source of wrong answers.<br>• Let users view and edit what’s stored. It builds trust and keeps memory accurate.</p><p>𝗟𝗮𝘆𝗲𝗿 𝟱: 𝗢𝗿𝗰𝗵𝗲𝘀𝘁𝗿𝗮𝘁𝗶𝗼𝗻</p><p>This layer controls how the agent works through a task, especially one with many steps.</p><p>• Plan multi-step tasks and route each one by type.<br>• Cap steps and retries. Without limits, a confused agent can loop for minutes and run up a large bill.<br>• Add human approval for risky actions, such as payments, deletions or external emails.<br>• Checkpoint state, so long tasks can resume instead of starting over.<br>• Hand off between agents when a task needs a specialist.<br>• Recover from failures and keep going where possible.<br>• Stream progress to users, so they can see what’s happening instead of waiting in silence.</p><p>𝗟𝗮𝘆𝗲𝗿 𝟲: 𝗘𝘃𝗮𝗹𝘀 &amp; 𝗢𝗯𝘀𝗲𝗿𝘃𝗮𝗯𝗶𝗹𝗶𝘁𝘆</p><p>This is the layer that tells you whether everything below it is actually working.</p><p>On the observability side:<br>• Trace every step and log every tool call.<br>• Track cost and latency per task.<br>• Monitor success rates and flag hallucinations.</p><p>On the evals side:<br>• Build eval datasets from real examples.<br>• Run regression tests before every change.<br>• Use LLM-as-judge to score outputs at scale.<br>• Collect user feedback.<br>• Feed failures back down the stack to the layer that caused them.</p><p>Without this layer, every fix is a guess.</p><p>𝗪𝗵𝗮𝘁 𝗧𝗵𝗶𝘀 𝗠𝗲𝗮𝗻𝘀 𝗳𝗼𝗿 𝗟𝗲𝗮𝗱𝗲𝗿𝘀</p><p>When an agent underperforms, resist the urge to start with the model. Ask a few questions, layer by layer:</p><p>1. Is the context right? Is the agent seeing the information it needs, and only that?<br>2. Are the tools clear and safe? Would a new employee understand the tool descriptions? Are permissions limited?<br>3. Is memory clean? Is anything outdated or shared across users?<br>4. Are there limits? Are steps, retries and costs capped, with human approval on risky actions?<br>5. Can you see what happened? If a customer complains, can your team trace exactly what the agent did and why?</p><p>Upgrading the model only fixes layer 1. Many production issues live higher up the stack.</p><p>𝗖𝗼𝗻𝗰𝗹𝘂𝘀𝗶𝗼𝗻</p><p>A production AI agent is much more than a model with a prompt. It’s six layers working together: the model, the context, the tools, the memory, the orchestration and the evaluation around it all.</p><p>Build upward with care, and when something breaks, trace it back down. That’s how agents move from impressive demos to systems people can rely on.</p><p>If you found this useful, subscribe to get more practical insights on Data Modernization, AI Adoption and Digital Growth.<br>Also follow me on <a href="https://www.linkedin.com/in/birjesangram/">https://www.linkedin.com/in/birjesangram/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=282532be230f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The AI SaaS Tech Stack: Which Tool I’d Use for Every Job]]></title>
            <link>https://medium.com/@birjesangram/the-ai-saas-tech-stack-which-tool-id-use-for-every-job-f885b00d577d?source=rss-7690a7c3254a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f885b00d577d</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[digital-growth]]></category>
            <category><![CDATA[data-modernization]]></category>
            <dc:creator><![CDATA[Sangram Birje]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 12:31:01 GMT</pubDate>
            <atom:updated>2026-11-23T12:31:01.913Z</atom:updated>
            <content:encoded><![CDATA[<p>A practical, layer-by-layer guide to launching an AI startup without building everything from scratch.</p><p>A few years ago, launching a software product meant months of plumbing. You built your own login system, wired up payments by hand, set up servers and wrote your own email service before a single customer saw your idea.</p><p>That world is gone.</p><p>Today, almost every piece of a SaaS product exists as a reliable, ready-made tool. The challenge has flipped. It’s no longer “how do I build this?” It’s “which of the hundreds of options should I pick, and how do they fit together?”</p><p>This guide walks through a complete AI SaaS stack, job by job: the tool I’d pick for each one, and why it earns its place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cfVmzuMw_UkgAhuY6WCZpQ.gif" /></figure><p>𝗣𝗮𝗿𝘁 𝟭: 𝗣𝗿𝗼𝗱𝘂𝗰𝘁 𝗨𝗜 — 𝗪𝗵𝗮𝘁 𝗨𝘀𝗲𝗿𝘀 𝗦𝗲𝗲</p><p>Every product starts with a landing page and an app. This is the layer users judge you on first.</p><p>Web frontend: Next.js and Tailwind CSS. Next.js is a React framework that handles routing, server rendering and performance out of the box. Tailwind CSS makes styling fast and consistent without a separate design system on day one.</p><p>Mobile app: Expo and React Native. React Native lets you build iOS and Android apps from one codebase, and Expo removes most of the pain of building, testing and shipping them.</p><p>Why it matters: if your team already knows React, this layer lets the same skills cover web and mobile.</p><p>𝗣𝗮𝗿𝘁 𝟮: 𝗨𝘀𝗲𝗿𝘀 &amp; 𝗗𝗮𝘁𝗮 — 𝗪𝗵𝗼 𝗬𝗼𝘂𝗿 𝗖𝘂𝘀𝘁𝗼𝗺𝗲𝗿𝘀 𝗔𝗿𝗲</p><p>Auth: Clerk and WorkOS. Clerk handles sign-in, sign-up and user management with very little code. WorkOS adds enterprise single sign-on (SSO), which becomes essential the moment you sell to larger companies.</p><p>Database: Supabase and Neon. Both are built on Postgres. Supabase bundles a database, storage and auth into one platform. Neon offers serverless Postgres that scales up and down with demand.</p><p>Why it matters: authentication and data are the two places where a mistake can hurt your customers’ trust. Using proven tools here is a security decision as much as a speed decision.</p><p>𝗣𝗮𝗿𝘁 𝟯: 𝗥𝗲𝘃𝗲𝗻𝘂𝗲 &amp; 𝗚𝗿𝗼𝘄𝘁𝗵 — 𝗛𝗼𝘄 𝗬𝗼𝘂 𝗚𝗲𝘁 𝗣𝗮𝗶𝗱 𝗮𝗻𝗱 𝗟𝗲𝗮𝗿𝗻</p><p>Payments: Stripe and PayPal. Stripe covers subscriptions and checkout, which fits most SaaS pricing models. PayPal adds the global wallets many international customers prefer.</p><p>Product analytics: PostHog and Amplitude. PostHog tracks funnels and supports feature flags, so you can test changes on small groups first. Amplitude maps user journeys, showing where people get stuck or drop off.</p><p>Why it matters: an AI product that can’t charge customers or learn from their behaviour is an experiment, not a business.</p><p>𝗣𝗮𝗿𝘁 𝟰: 𝗖𝘂𝘀𝘁𝗼𝗺𝗲𝗿 𝗖𝗼𝗺𝗺𝘀 — 𝗛𝗼𝘄 𝗬𝗼𝘂 𝗦𝘁𝗮𝘆 𝗶𝗻 𝗧𝗼𝘂𝗰𝗵</p><p>Emails: Resend and SendGrid. Resend is a developer-friendly option for transactional mail like receipts and password resets. SendGrid handles email at larger scale.</p><p>Support and lifecycle: Intercom and Mailchimp. Intercom provides in-app chat support. Mailchimp handles newsletters and lifecycle campaigns.</p><p>Why it matters: retention often depends less on features and more on whether customers feel heard.</p><p>𝗣𝗮𝗿𝘁 𝟱: 𝗧𝗵𝗲 𝗔𝗜 𝗟𝗮𝘆𝗲𝗿 — 𝗪𝗵𝗲𝗿𝗲 𝘁𝗵𝗲 𝗜𝗻𝘁𝗲𝗹𝗹𝗶𝗴𝗲𝗻𝗰𝗲 𝗟𝗶𝘃𝗲𝘀</p><p>This is the layer most people think of first. In practice, it’s one layer among many.</p><p>Frameworks: Vercel’s AI SDK and LangGraph. The AI SDK makes it simple to stream model responses into your app. LangGraph helps you build agents with multiple steps, tools and decisions.</p><p>LLMs and model routing: OpenAI, Claude, Gemini and OpenRouter. Each major provider has different strengths in reasoning, writing, cost and speed. OpenRouter gives you one API across many models, so you can switch or route between them without rewriting your code.</p><p>Why it matters: models change quickly. Building with routing in mind from day one keeps you from being locked in to one provider.</p><p>𝗣𝗮𝗿𝘁 𝟲: 𝗔𝗜 𝗗𝗮𝘁𝗮 &amp; 𝗠𝗲𝗺𝗼𝗿𝘆 — 𝗪𝗵𝗮𝘁 𝗬𝗼𝘂𝗿 𝗔𝗜 𝗞𝗻𝗼𝘄𝘀</p><p>AI products need their own kind of data layer.</p><p>Cache: Upstash, for fast, serverless caching and rate limiting.<br>Vector DB: Pinecone, for storing embeddings so your AI can search by meaning.<br>ORM: Drizzle, a lightweight, type-safe way to work with your database in code.<br>RAG: LlamaIndex, for connecting your documents and data to the model.</p><p>Why it matters: the model brings general knowledge. This layer brings your product’s specific knowledge, and it’s often what makes your answers better than a generic chatbot’s.</p><p>𝗣𝗮𝗿𝘁 𝟳: 𝗙𝗶𝗹𝗲𝘀 &amp; 𝗦𝗲𝗮𝗿𝗰𝗵</p><p>Cloudinary handles images and video. Amazon S3 stores files. Algolia powers fast site search, and Typesense offers an open-source alternative.</p><p>Why it matters: users upload things and expect to find things. Both should feel instant.</p><p>𝗣𝗮𝗿𝘁 𝟴: 𝗠𝗼𝗻𝗶𝘁𝗼𝗿𝗶𝗻𝗴 &amp; 𝗧𝗿𝗮𝗰𝗶𝗻𝗴 — 𝗛𝗼𝘄 𝗬𝗼𝘂 𝗞𝗻𝗼𝘄 𝗜𝘁 𝗪𝗼𝗿𝗸𝘀</p><p>Sentry tracks errors. Datadog collects logs and metrics. Langfuse traces LLM calls, showing exactly what the model received and returned. OpenTelemetry provides an open standard for traces across the whole system.</p><p>Why it matters: AI systems fail in quieter ways than traditional software. A wrong answer doesn’t throw an error. Tracing is how you catch it.</p><p>𝗣𝗮𝗿𝘁 𝟵: 𝗗𝗲𝗽𝗹𝗼𝘆 &amp; 𝗦𝗰𝗮𝗹𝗲</p><p>Vercel hosts the app. Cloudflare adds edge delivery and a CDN. GitHub runs CI/CD, so every change is tested and deployed the same way.</p><p>Then you launch: Product Hunt, Hacker News, LinkedIn and X are where early users often find new tools.</p><p>𝗣𝗮𝗿𝘁 𝟭𝟬: 𝗪𝗵𝗮𝘁 𝗧𝗵𝗶𝘀 𝗠𝗲𝗮𝗻𝘀 𝗳𝗼𝗿 𝗙𝗼𝘂𝗻𝗱𝗲𝗿𝘀 𝗮𝗻𝗱 𝗟𝗲𝗮𝗱𝗲𝗿𝘀</p><p>Three lessons stand out from this stack.</p><p>1. The AI model is only one layer out of many. Much of what makes an AI product work is the same as any good SaaS product: sign-up, payments, emails, support and monitoring.</p><p>2. Buy the commodity, build the difference. Every hour spent rebuilding auth or billing is an hour not spent on the one thing that makes your product unique.</p><p>3. Plan for change. Models, prices and tools will keep shifting. Choosing tools with open standards and easy switching, like model routers and Postgres-based databases, keeps your options open.</p><p>𝗖𝗼𝗻𝗰𝗹𝘂𝘀𝗶𝗼𝗻</p><p>Launching an AI startup has never been more accessible. The building blocks are all there, from the landing page to the launch post.</p><p>The real work is choosing well, connecting the pieces cleanly, and putting your energy into the part only you can build.</p><p>If you found this useful, subscribe to get more practical insights on Data Modernization, AI Adoption and Digital Growth.<br>Also follow me on <a href="https://www.linkedin.com/in/birjesangram/">https://www.linkedin.com/in/birjesangram/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f885b00d577d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Actually Powers an AI Agent]]></title>
            <link>https://medium.com/@birjesangram/what-actually-powers-an-ai-agent-ac12f9fb1620?source=rss-7690a7c3254a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac12f9fb1620</guid>
            <category><![CDATA[digital-growth]]></category>
            <category><![CDATA[data-modernization]]></category>
            <category><![CDATA[ai-adoption]]></category>
            <dc:creator><![CDATA[Sangram Birje]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 12:31:01 GMT</pubDate>
            <atom:updated>2026-11-20T12:31:01.710Z</atom:updated>
            <content:encoded><![CDATA[<p>The model is only the brain. Here are the 12 systems that turn it into an agent you can trust in production.</p><p>Every AI agent demo looks the same. Someone types a request, the model thinks for a moment, and a clean answer appears. It feels like magic, and it makes the model look like the whole story.</p><p>It isn’t.</p><p>When companies try to move that demo into production, they discover that the model is only one piece. The agent that impressed everyone in a meeting suddenly can’t find the right data, calls the wrong tool, loops until the bill spikes, or does something nobody can explain afterwards.</p><p>The gap between a demo and a production agent isn’t a better model. It’s everything around the model.</p><p>A useful way to see this is to split an agent into three layers: the fuel that flows in, the agent that makes decisions, and the engine room that keeps it safe and running. Together, they make up 12 systems around one agent loop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4SWN1EhcaGBvgQbCv6mPow.gif" /></figure><p>𝗣𝗮𝗿𝘁 𝟭: 𝗧𝗵𝗲 𝗙𝘂𝗲𝗹 — 𝗪𝗵𝗮𝘁 𝗙𝗹𝗼𝘄𝘀 𝗜𝗻𝘁𝗼 𝘁𝗵𝗲 𝗔𝗴𝗲𝗻𝘁</p><p>An agent can only be as good as what it’s given. These six inputs decide whether it understands the task, has the means to act, and knows enough about your business to act well.</p><p>𝟭. 𝗚𝗼𝗮𝗹𝘀</p><p>Every agent needs to know what “done” looks like. That means a clear task and success criteria, limits and deadlines, and an understanding of the user’s real intent, not just their literal words.</p><p>Many agent failures start here. If the goal is vague, the agent will confidently complete the wrong task.</p><p>𝟮. 𝗧𝗼𝗼𝗹𝘀 𝗮𝗻𝗱 𝗔𝗣𝗜𝘀</p><p>Tools are how an agent acts on the world. They include MCP servers, internal and SaaS APIs, and code execution.</p><p>Without tools, an agent can only talk. With them, it can look up an order, file a ticket or update a record. Every tool you add, though, is also a new way for things to go wrong, which is why the engine room matters later.</p><p>𝟯. 𝗠𝗲𝗺𝗼𝗿𝘆</p><p>Memory lets an agent build on what came before. It has three parts: a short-term scratchpad for the current task, long-term facts about the user, and outcomes from past tasks.</p><p>An agent without memory makes the user repeat themselves and repeats its own mistakes.</p><p>𝟰. 𝗖𝗼𝗻𝘁𝗲𝘅𝘁</p><p>Context is what the agent knows right now: the system prompt and rules, the conversation history, and the user’s role and permissions.</p><p>Permissions are the part many teams forget. An agent should know not just what the user wants, but what the user is allowed to do.</p><p>𝟱. 𝗗𝗮𝘁𝗮</p><p>This is your company’s knowledge: documents and wikis, CRM records, tickets and logs, usually reached through vector search and RAG.</p><p>Many enterprise agents succeed or fail on data quality. A brilliant model reading outdated or contradictory documents will give brilliant-sounding wrong answers.</p><p>𝟲. 𝗛𝘂𝗺𝗮𝗻 𝗙𝗲𝗲𝗱𝗯𝗮𝗰𝗸</p><p>People keep an agent honest. Approvals and corrections, ratings on outputs and expert-built evaluation sets all feed back into how the agent behaves.</p><p>Human feedback is how an agent improves after launch instead of slowly drifting.</p><p>𝗣𝗮𝗿𝘁 𝟮: 𝗧𝗵𝗲 𝗔𝗴𝗲𝗻𝘁 — 𝗪𝗵𝗲𝗿𝗲 𝗗𝗲𝗰𝗶𝘀𝗶𝗼𝗻𝘀 𝗛𝗮𝗽𝗽𝗲𝗻</p><p>At the centre sits the agent loop: goal in, plan, act with tools, check, learn.</p><p>Six components make that loop work:</p><p>• Planner: breaks the goal into steps.</p><p>• Reasoning LLM: the brain that thinks through each step.</p><p>• Tool Router: picks the right tool for each action.</p><p>• Memory Manager: decides what to remember and what to recall.</p><p>• Executor: actually carries out the actions.</p><p>• Reflection: checks the result and corrects course when something goes wrong.</p><p>Notice that the LLM is only one of six. Swapping in a better model improves one box. It doesn’t fix a bad planner, a confused router or missing reflection.</p><p>𝗣𝗮𝗿𝘁 𝟯: 𝗧𝗵𝗲 𝗘𝗻𝗴𝗶𝗻𝗲 𝗥𝗼𝗼𝗺 — 𝗪𝗵𝗮𝘁 𝗞𝗲𝗲𝗽𝘀 𝗜𝘁 𝗦𝗮𝗳𝗲 𝗮𝗻𝗱 𝗥𝘂𝗻𝗻𝗶𝗻𝗴</p><p>This is the layer that rarely appears in demos and almost always decides whether an agent survives in production.</p><p>𝟭. 𝗘𝘃𝗮𝗹𝘀</p><p>Evals tell you whether the agent actually works. They cover task success rate, trajectory checks (did it take a sensible path, not just reach an answer?) and regression suites that catch problems before each release.</p><p>Without evals, every change is a guess.</p><p>𝟮. 𝗚𝘂𝗮𝗿𝗱𝗿𝗮𝗶𝗹𝘀</p><p>Guardrails define what the agent can’t do. Input and output filters, tool allow-lists and human approval gates for risky actions like payments, deletions or external emails.</p><p>𝟯. 𝗢𝗯𝘀𝗲𝗿𝘃𝗮𝗯𝗶𝗹𝗶𝘁𝘆</p><p>When something goes wrong, you need to know exactly what happened. That means traces of every step, tool-call logs and OpenTelemetry spans that connect the agent’s behaviour to the rest of your systems.</p><p>𝟰. 𝗖𝗼𝘀𝘁 𝗖𝗼𝗻𝘁𝗿𝗼𝗹</p><p>Agents can loop. Loops cost money. Token and step budgets, retry and loop limits, and model routing (sending simple steps to cheaper models) keep spending predictable.</p><p>𝟱. 𝗜𝗱𝗲𝗻𝘁𝗶𝘁𝘆</p><p>Every agent should have its own identity, least-privilege scopes and short-lived tokens. Shared accounts and permanent admin keys make it impossible to know who did what, and easy for one mistake to become a breach.</p><p>𝟲. 𝗦𝗮𝗻𝗱𝗯𝗼𝘅𝗶𝗻𝗴</p><p>When an agent runs code or touches systems, it should do so in isolation. That means isolated code execution, network and file limits, and a safe way to roll back.</p><p>𝗣𝗮𝗿𝘁 𝟰: 𝗪𝗵𝗮𝘁 𝗚𝗲𝘁𝘀 𝗗𝗲𝗺𝗼𝗲𝗱 𝘃𝘀 𝗪𝗵𝗮𝘁 𝗗𝗲𝗰𝗶𝗱𝗲𝘀 𝗦𝘂𝗰𝗰𝗲𝘀𝘀</p><p>Here’s the uncomfortable truth for many AI programmes.</p><p>What gets demoed: the model, the chat, one happy path.</p><p>What decides success: evals, guardrails, traces and cost.</p><p>The demo is built to impress. The engine room is built to survive real users, messy data and edge cases nobody planned for. Teams that invest only in the first are often surprised when their agent stalls after the pilot.</p><p>𝗣𝗮𝗿𝘁 𝟱: 𝗪𝗵𝗮𝘁 𝗧𝗵𝗶𝘀 𝗠𝗲𝗮𝗻𝘀 𝗳𝗼𝗿 𝗟𝗲𝗮𝗱𝗲𝗿𝘀</p><p>If you’re responsible for an AI agent programme, a few practical questions are worth asking before you ask which model to use:</p><p>1. Is the goal clear? Can the team describe what success looks like in measurable terms?</p><p>2. Is the fuel there? Does the agent have the data, tools and permissions it needs, and is that data clean?</p><p>3. Is the engine room built? Are there evals, guardrails, traces and cost limits in place before launch, not after the first incident?</p><p>4. Who owns it? Does every agent have an identity, an owner and a clear set of permissions?</p><p>When agent projects stall, it’s rarely because the model wasn’t smart enough. It’s usually because the fuel was missing or the engine room was never built.</p><p>𝗖𝗼𝗻𝗰𝗹𝘂𝘀𝗶𝗼𝗻</p><p>The model is only the brain. Tools, memory and controls make it an agent.</p><p>The organisations that will get real value from AI agents won’t be the ones with the newest model. They’ll be the ones that build the full system around it: the fuel that gives it something to work with, and the engine room that keeps it safe, reliable and affordable.</p><p>If you found this useful, subscribe to get more practical insights on Data Modernization, AI Adoption and Digital Growth.</p><p>Also follow me on <a href="https://www.linkedin.com/in/birjesangram/">https://www.linkedin.com/in/birjesangram/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac12f9fb1620" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[9 Industry Methods for Evaluating LLMs]]></title>
            <link>https://medium.com/@birjesangram/9-industry-methods-for-evaluating-llms-664dbe8d30ab?source=rss-7690a7c3254a------2</link>
            <guid isPermaLink="false">https://medium.com/p/664dbe8d30ab</guid>
            <category><![CDATA[ai-adoption]]></category>
            <category><![CDATA[data-modernization]]></category>
            <category><![CDATA[digital-growth]]></category>
            <dc:creator><![CDATA[Sangram Birje]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 12:53:59 GMT</pubDate>
            <atom:updated>2026-11-18T12:53:59.823Z</atom:updated>
            <content:encoded><![CDATA[<p>How enterprise teams test AI systems before, during and after they reach users</p><p>Ask a team how they know their AI system works, and the answer is often some version of “we tried it and it looked good.”</p><p>That’s fine for a demo. It isn’t fine for a system that answers customers, drafts contracts or makes recommendations that affect real decisions.</p><p>Large language models are different from traditional software. The same input can produce different outputs. A small change to a prompt can improve one answer and quietly break ten others. A new model version can be better on average and worse on the cases that matter most to your business.</p><p>That’s why evaluation, or “evals”, has become one of the most important disciplines in enterprise AI. Evals are how you know whether a change made things better or worse, and whether a system is safe to put in front of users.</p><p>In this article, I’ll walk through nine methods that teams use to evaluate LLM systems, grouped into four parts: building the foundation, scoring answers, checking for specific failures, and monitoring in production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ylFSN0yDOTyaPPBfrSFuTA.gif" /></figure><p>𝗣𝗮𝗿𝘁 𝟭: 𝗧𝗵𝗲 𝗙𝗼𝘂𝗻𝗱𝗮𝘁𝗶𝗼𝗻</p><p>𝟭. 𝗚𝗼𝗹𝗱𝗲𝗻 𝗗𝗮𝘁𝗮𝘀𝗲𝘁</p><p>Every serious evaluation programme starts here.</p><p>A golden dataset is a fixed set of real inputs and their expected outputs. It should include three kinds of examples: real queries from users, edge cases that are known to be difficult, and expert answers that show what “good” looks like.</p><p>The key word is fixed. Every version of your prompt or model runs against the same set of tests. That’s what makes results comparable. If version 2 scores better than version 1 on the same 200 questions, you have real evidence. If they were tested on different questions, you have an opinion.</p><p>A golden dataset doesn’t need to be large to start. Fifty well-chosen examples that reflect real usage are far more useful than a thousand generic ones. And it should grow over time, as new failure cases are discovered.</p><p>𝟮. 𝗥𝗲𝗴𝗿𝗲𝘀𝘀𝗶𝗼𝗻 𝗧𝗲𝘀𝘁𝘀</p><p>Once you have a golden dataset, regression testing becomes possible.</p><p>The idea is simple: every time something changes, whether a prompt, a model, a retrieval setting or a tool, re-run the full evaluation suite. If the score is equal to or better than the baseline, the change can ship. If it drops, the release is blocked.</p><p>This is the same principle software teams have used for decades, applied to AI. It’s also one of the cheapest and most effective ways to prevent quality from slowly drifting downwards as small changes add up.</p><p>𝗣𝗮𝗿𝘁 𝟮: 𝗦𝗰𝗼𝗿𝗶𝗻𝗴 𝘁𝗵𝗲 𝗔𝗻𝘀𝘄𝗲𝗿𝘀</p><p>𝟯. 𝗘𝘅𝗮𝗰𝘁 𝗠𝗮𝘁𝗰𝗵</p><p>Some answers have one right output. For those, the best evaluation is also the simplest.</p><p>Exact-match checks are deterministic. They compare the output to the expected answer, often after normalising it by removing extra spaces or standardising capitalisation. Common checks include:</p><p>• Equals: does the answer match exactly?</p><p>• Regex: does it follow the expected pattern?</p><p>• JSON schema: is the structured output valid?</p><p>These checks are fast, cheap and completely consistent. They’re ideal for classification, extraction, structured data and any task where there’s a clear right answer. Use them wherever you can before reaching for anything more complex.</p><p>𝟰. 𝗟𝗟𝗠-𝗮𝘀-𝗝𝘂𝗱𝗴𝗲</p><p>Many answers don’t have one right output. A summary, an explanation or a customer reply can be good in several different ways.</p><p>For these, teams use LLM-as-judge. A strong model is given the question, the answer and a clear rubric, and asked to score the answer on criteria such as accuracy, completeness and tone.</p><p>Done well, this works surprisingly well. In published research, strong judge models agreed with human reviewers more than 80% of the time on general questions. But a judge is still a model, with its own biases. Two practices make it more reliable:</p><p>• Calibrate the judge on human labels. Check its scores against a set of examples humans have already rated, and adjust the rubric until they agree.</p><p>• Ask for a reason with every score, so results can be audited.</p><p>𝟱. 𝗛𝘂𝗺𝗮𝗻 𝗥𝗲𝘃𝗶𝗲𝘄</p><p>Automated metrics are fast, but they miss things. Human review catches what they don’t.</p><p>In a human review process, domain experts look at a sample of outputs and mark each one as a pass or a fail, with a note explaining why. This does two important jobs.</p><p>First, it catches subtle problems that metrics can’t see, such as an answer that is technically correct but misleading, or a tone that’s wrong for a sensitive situation.</p><p>Second, it creates better test data. Every hard case a reviewer finds should be added to the golden dataset, so the automated tests get stronger over time. Human reviews are also what you use to calibrate the LLM judge.</p><p>𝗣𝗮𝗿𝘁 𝟯: 𝗖𝗵𝗲𝗰𝗸𝗶𝗻𝗴 𝗳𝗼𝗿 𝗦𝗽𝗲𝗰𝗶𝗳𝗶𝗰 𝗙𝗮𝗶𝗹𝘂𝗿𝗲𝘀</p><p>𝟲. 𝗛𝗮𝗹𝗹𝘂𝗰𝗶𝗻𝗮𝘁𝗶𝗼𝗻 𝗖𝗵𝗲𝗰𝗸𝘀</p><p>One of the biggest risks in enterprise AI is a confident answer that isn’t supported by the source material.</p><p>Hallucination checks, also called faithfulness checks, work by breaking an answer into individual claims and verifying each one against the source context.</p><p>Imagine a source document that says refunds are accepted within 30 days and orders ship in 2 days. The AI’s answer claims three things: 30-day refunds, shipping in 2 days and free returns. The first two are supported. The third isn’t mentioned anywhere in the source.</p><p>That answer scores 2 out of 3 for faithfulness. This is the same approach tools like Ragas use to measure faithfulness in RAG systems. It’s especially important for customer-facing and policy-related use cases, where an invented detail can create real liability.</p><p>𝟳. 𝗔/𝗕 𝗧𝗲𝘀𝘁𝗶𝗻𝗴</p><p>Offline tests tell you whether a change is better on your test set. A/B testing tells you whether it’s better for real users.</p><p>In an A/B test, live traffic is split, often 50/50, between two versions. Version A might use the current prompt, version B a new one. You then compare outcomes such as task completion, user ratings, escalations or conversions.</p><p>The important point is to compare outcomes, not impressions. A response that looks better to the team may not actually help users more. A/B testing settles the question with evidence.</p><p>𝗣𝗮𝗿𝘁 𝟰: 𝗠𝗼𝗻𝗶𝘁𝗼𝗿𝗶𝗻𝗴 𝗶𝗻 𝗣𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝗼𝗻</p><p>𝟴. 𝗢𝗻𝗹𝗶𝗻𝗲 𝗠𝗼𝗻𝗶𝘁𝗼𝗿𝗶𝗻𝗴</p><p>Evaluation doesn’t end at launch. Real users ask questions your test set never imagined, and quality can drift as data, behaviour and models change.</p><p>Online monitoring continuously scores live traffic. Each request is traced, and automated scorers track quality, latency and cost over time. When quality drops below an agreed level, a drift alert goes to the on-call team.</p><p>This turns evaluation from a one-off gate into an ongoing safety net. It also feeds the whole cycle: failures found in production become new examples in the golden dataset.</p><p>𝟵. 𝗣𝗼𝗽𝘂𝗹𝗮𝗿 𝗘𝘃𝗮𝗹 𝗧𝗼𝗼𝗹𝘀</p><p>You don’t need to build all of this from scratch. A growing set of open-source and managed tools help teams build, run and track evaluations, including:</p><p>• Braintrust</p><p>• LangSmith</p><p>• Promptfoo</p><p>• Ragas</p><p>• Langfuse</p><p>• Arize Phoenix</p><p>• DeepEval</p><p>• W&amp;B Weave</p><p>• OpenAI Evals</p><p>The right choice depends on your stack, whether you need self-hosting, and how much you want evaluation tied to tracing and monitoring.</p><p>𝗣𝗮𝗿𝘁 𝟱: 𝗪𝗵𝗲𝗿𝗲 𝘁𝗼 𝗦𝘁𝗮𝗿𝘁</p><p>Trying to adopt all nine methods at once is a common mistake. A practical order for most teams:</p><p>• Build a golden dataset of 50 to 100 real examples, including known edge cases.</p><p>• Add exact-match checks wherever there’s a single right answer.</p><p>• Set up regression tests so every change is compared to the baseline.</p><p>• Introduce LLM-as-judge for open-ended answers, calibrated on human reviews.</p><p>• Add hallucination checks for any system that answers from documents.</p><p>• Once the system is live, add online monitoring and A/B testing.</p><p>𝗖𝗼𝗻𝗰𝗹𝘂𝘀𝗶𝗼𝗻</p><p>In traditional software, nobody would ship a release without tests. LLM systems deserve the same discipline, and arguably more, because their failures are often quiet and convincing.</p><p>The good news is that the methods are well established. Teams don’t need to invent them. They need to choose the right ones for their use case and build them into how they work, from the first prototype to every release after launch.</p><p>An AI system without evals isn’t finished. It’s untested.</p><p>Which of these nine methods is your team already using, and which is missing?</p><p>If you found this useful, subscribe to get more practical insights on Data Modernization, AI Adoption and Digital Growth.</p><p>Also follow me on <a href="https://www.linkedin.com/in/birjesangram/">https://www.linkedin.com/in/birjesangram/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=664dbe8d30ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[15 Signs Your Company Is Ready for AI Beyond Pilots]]></title>
            <link>https://medium.com/@birjesangram/15-signs-your-company-is-ready-for-ai-beyond-pilots-c1df8b4d201b?source=rss-7690a7c3254a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1df8b4d201b</guid>
            <category><![CDATA[digital-growth]]></category>
            <category><![CDATA[ai-adoption]]></category>
            <category><![CDATA[data-modernization]]></category>
            <dc:creator><![CDATA[Sangram Birje]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 12:31:01 GMT</pubDate>
            <atom:updated>2026-11-16T12:31:01.547Z</atom:updated>
            <content:encoded><![CDATA[<p>Why so many AI pilots never reach production, and the foundations that separate the companies that scale from the ones that stall</p><p>Most organisations have run an AI pilot by now. Many have run several.</p><p>The demos are usually impressive. A chatbot answers questions about company policies. A model flags risky transactions. An assistant drafts reports in minutes instead of hours. Leadership is excited, and the next question comes quickly: how do we roll this out across the business?</p><p>That’s where many AI programmes stall.</p><p>The pilot worked because it ran in a controlled setting. A small, motivated team cleaned the data by hand. A few experts checked the outputs. Nobody had to change their job, and nobody had to sign off on the risk. Scaling removes all of those supports at once.</p><p>In my experience, when an AI programme gets stuck between pilot and production, the model is rarely the reason. The reason is usually the foundations around it: data that nobody owns, processes that were never mapped, use cases without a business owner and governance that arrives too late.</p><p>In this article, I’ll walk through 15 signs that a company is ready to take AI beyond pilots. They fall into four areas: data, process, people and governance. You can use them as a simple self-assessment for your own organisation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J87wJxsVGNwmiK0zi0rfjA.gif" /></figure><p>𝗣𝗮𝗿𝘁 𝟭: 𝗗𝗮𝘁𝗮</p><p>AI is only as good as the information it works with. These four signs show whether your data can support AI at scale.</p><p>𝟭. 𝗧𝗿𝘂𝘀𝘁𝗲𝗱 𝗱𝗮𝘁𝗮 𝗵𝗮𝘀 𝗮𝗻 𝗼𝘄𝗻𝗲𝗿</p><p>Ask a simple question: when a key dataset is wrong, who fixes it?</p><p>In many organisations, the honest answer is “it depends” or “nobody really”. Data quality issues bounce between IT, analytics and business teams, and nobody is accountable.</p><p>A ready organisation has a named owner for every key dataset, someone who answers for its quality and fixes problems when they appear. Without that, every AI use case inherits the same unresolved issues.</p><p>𝟮. 𝗗𝗲𝗳𝗶𝗻𝗶𝘁𝗶𝗼𝗻𝘀 𝗮𝗿𝗲 𝘀𝗵𝗮𝗿𝗲𝗱</p><p>Do two reports ever disagree on the same number?</p><p>If “revenue”, “active customer” or “on-time delivery” means different things in different departments, AI will simply reproduce that confusion, faster and at greater scale.</p><p>Shared definitions, agreed across the business and documented in one place, are one of the least glamorous and most important foundations for AI.</p><p>𝟯. 𝗗𝗮𝘁𝗮 𝗶𝘀 𝗿𝗲𝗮𝗰𝗵𝗮𝗯𝗹𝗲</p><p>How long does it take to get access to a new dataset?</p><p>If the answer is months, AI projects will spend most of their time waiting. Ready organisations have made data accessible through governed platforms, clear access processes and well-documented sources, so teams can get what they need in days, not months, without bypassing controls.</p><p>𝟰. 𝗞𝗻𝗼𝘄𝗹𝗲𝗱𝗴𝗲 𝗶𝘀 𝘄𝗿𝗶𝘁𝘁𝗲𝗻 𝗱𝗼𝘄𝗻</p><p>Much of a company’s most valuable knowledge isn’t in databases. It’s in policies, procedures, guides and the heads of experienced employees.</p><p>AI can only use knowledge it can reach. If the way things really work lives only in people’s heads, no assistant or agent can use it. Ready organisations capture that know-how in documents and systems that AI can search.</p><p>𝗣𝗮𝗿𝘁 𝟮: 𝗣𝗿𝗼𝗰𝗲𝘀𝘀</p><p>AI changes how work gets done. These four signs show whether your processes are ready to be changed.</p><p>𝟱. 𝗗𝗲𝗰𝗶𝘀𝗶𝗼𝗻𝘀 𝗮𝗿𝗲 𝘄𝗿𝗶𝘁𝘁𝗲𝗻 𝗱𝗼𝘄𝗻</p><p>Could you explain how your last important decision was made?</p><p>Many business decisions rely on unwritten rules and personal judgement. That’s fine for people, but AI needs to know the inputs, the criteria and who owns the outcome. Organisations that have documented their key decisions can decide much more clearly where AI should recommend, decide or step back.</p><p>𝟲. 𝗪𝗼𝗿𝗸𝗳𝗹𝗼𝘄𝘀 𝗮𝗿𝗲 𝗺𝗮𝗽𝗽𝗲𝗱</p><p>Where does work wait today?</p><p>Automating a process you don’t understand is risky. You may speed up the wrong step, or simply move the bottleneck somewhere else. Ready organisations know their steps, handoffs and delays before they automate. That map is what shows where AI will create the most value.</p><p>𝟳. 𝗕𝗮𝘀𝗲𝗹𝗶𝗻𝗲𝘀 𝗲𝘅𝗶𝘀𝘁</p><p>What’s the number before AI?</p><p>If you don’t measure today’s cost, speed and quality, you can’t prove that AI improved anything. Many pilots are judged on impressions rather than evidence, and that makes them very hard to fund at scale. A clear baseline turns “it feels faster” into “it cut cycle time by 30%”.</p><p>𝟴. 𝗣𝗶𝗹𝗼𝘁𝘀 𝗵𝗮𝘃𝗲 𝗮 𝗽𝗮𝘁𝗵 𝘁𝗼 𝗽𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝗼𝗻</p><p>How many of your pilots actually went live?</p><p>A ready organisation has a repeatable way to take AI from prototype to production: how it’s deployed, monitored, supported and improved. Without that path, every pilot is a one-off project, and every success has to be rebuilt from scratch.</p><p>𝗣𝗮𝗿𝘁 𝟯: 𝗣𝗲𝗼𝗽𝗹𝗲</p><p>Technology doesn’t scale itself. These four signs show whether your people are ready to own and use AI.</p><p>𝟵. 𝗔 𝗯𝘂𝘀𝗶𝗻𝗲𝘀𝘀 𝗹𝗲𝗮𝗱𝗲𝗿 𝗼𝘄𝗻𝘀 𝗲𝗮𝗰𝗵 𝘂𝘀𝗲 𝗰𝗮𝘀𝗲</p><p>Whose results will change if this works?</p><p>Not IT, and not the data team. Each AI use case needs a business leader who owns the outcome and the P&amp;L impact. When ownership sits only with technical teams, projects tend to optimise for technical success rather than business value.</p><p>𝟭𝟬. 𝗘𝗺𝗽𝗹𝗼𝘆𝗲𝗲𝘀 𝗯𝘂𝗶𝗹𝗱, 𝗻𝗼𝘁 𝗷𝘂𝘀𝘁 𝘂𝘀𝗲</p><p>Has anyone outside the AI team built something useful?</p><p>In ready organisations, people across functions can prototype with data and AI tools themselves. That’s where many of the best ideas come from, because the people closest to the work know exactly where the friction is.</p><p>𝟭𝟭. 𝗟𝗲𝗮𝗱𝗲𝗿𝘀 𝗰𝗮𝗻 𝗾𝘂𝗲𝘀𝘁𝗶𝗼𝗻 𝘁𝗵𝗲 𝗺𝗼𝗱𝗲𝗹</p><p>Would anyone push back on an AI output?</p><p>Executives don’t need to understand how models are trained. But they do need to understand enough to challenge an output, ask how confident it is and recognise its limits. Blind trust in AI is as risky as blanket rejection.</p><p>𝟭𝟮. 𝗥𝗼𝗹𝗲𝘀 𝗰𝗵𝗮𝗻𝗴𝗲 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲 𝘄𝗼𝗿𝗸</p><p>What happens to the team after a workflow is redesigned?</p><p>When AI takes over parts of a job, roles, training and incentives need to change too. Organisations that ignore this often see resistance, workarounds or a slow return to the old way of working. Ready organisations plan the people side of change from the start.</p><p>𝗣𝗮𝗿𝘁 𝟰: 𝗚𝗼𝘃𝗲𝗿𝗻𝗮𝗻𝗰𝗲</p><p>Governance isn’t a brake on AI. Done well, it’s what allows AI to scale safely. These three signs show whether governance is built in.</p><p>𝟭𝟯. 𝗚𝗼𝘃𝗲𝗿𝗻𝗮𝗻𝗰𝗲 𝗰𝗼𝗺𝗲𝘀 𝗯𝗲𝗳𝗼𝗿𝗲 𝗹𝗮𝘂𝗻𝗰𝗵</p><p>Who signs off, and when?</p><p>In many organisations, risk, privacy and legal reviews happen at the very end, often blocking launches that are nearly finished. Ready organisations build governance into the plan from the beginning, so reviews shape the design rather than stopping it.</p><p>𝟭𝟰. 𝗛𝘂𝗺𝗮𝗻𝘀 𝘀𝘁𝗮𝘆 𝗼𝗻 𝗯𝗶𝗴 𝗱𝗲𝗰𝗶𝘀𝗶𝗼𝗻𝘀</p><p>Where is the line drawn?</p><p>Not every decision should be automated. Ready organisations have clear rules for when AI decides, when it recommends and when it escalates to a person. Those rules are written down, understood and applied consistently.</p><p>𝟭𝟱. 𝗩𝗮𝗹𝘂𝗲 𝗶𝘀 𝘁𝗿𝗮𝗰𝗸𝗲𝗱 𝗮𝗳𝘁𝗲𝗿 𝗹𝗮𝘂𝗻𝗰𝗵</p><p>Did it move the number?</p><p>Launch isn’t the finish line. Every AI use case should report the business metric it was meant to improve, long after go-live. This keeps investment focused on what works, and gives leadership the evidence to scale with confidence.</p><p>𝗣𝗮𝗿𝘁 𝟱: 𝗛𝗼𝘄 𝘁𝗼 𝗨𝘀𝗲 𝗧𝗵𝗶𝘀 𝗟𝗶𝘀𝘁</p><p>Go through the 15 signs honestly and tick the ones that are true for your organisation today.</p><p>The pattern is often more useful than the score. If most of your gaps are in data, your next investment should probably be in data ownership and quality, not another pilot. If the gaps are in people, focus on ownership, skills and change management. If they’re in governance, bring risk and compliance teams in earlier.</p><p>A practical starting point for most organisations:</p><p>• Pick one high-value use case and assign a business owner.</p><p>• Measure the baseline before any AI is introduced.</p><p>• Fix the data and process gaps for that one use case.</p><p>• Build governance into the plan from day one.</p><p>• Track the business result after launch, and use it to fund the next step.</p><p>𝗖𝗼𝗻𝗰𝗹𝘂𝘀𝗶𝗼𝗻</p><p>The difference between companies that scale AI and those stuck in pilot mode is rarely the model, the vendor or the size of the budget.</p><p>It’s the foundations: data with clear owners, processes that are understood, leaders who own outcomes and governance that’s designed in from the start.</p><p>Notice how few of these 15 signs are about technology. That’s the point. AI readiness is mostly organisational readiness.</p><p>How many of these 15 signs can your organisation tick today?</p><p>If you found this useful, subscribe to get more practical insights on Data Modernization, AI Adoption and Digital Growth.</p><p>Also follow me on <a href="https://www.linkedin.com/in/birjesangram/">https://www.linkedin.com/in/birjesangram/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1df8b4d201b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Places to Add Caching in Your LLM Pipeline]]></title>
            <link>https://medium.com/@birjesangram/5-places-to-add-caching-in-your-llm-pipeline-65b6f10a1b15?source=rss-7690a7c3254a------2</link>
            <guid isPermaLink="false">https://medium.com/p/65b6f10a1b15</guid>
            <category><![CDATA[ai-adoption]]></category>
            <category><![CDATA[digital-growth]]></category>
            <category><![CDATA[data-modernization]]></category>
            <dc:creator><![CDATA[Sangram Birje]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 12:31:01 GMT</pubDate>
            <atom:updated>2026-11-13T12:31:01.576Z</atom:updated>
            <content:encoded><![CDATA[<p>Follow one request from start to finish, and stop paying for the same work twice</p><p>Every LLM application has a cost problem that grows quietly.</p><p>In a pilot, a few hundred requests a day barely register on the bill. In production, the same application might handle hundreds of thousands. And when you look closely at the logs, a surprising share of that work is repeated: the same questions, the same documents being embedded again, the same system prompt sent with every single request, the same API lookups made minute after minute.</p><p>Every one of those repeats costs money and adds latency. And most of them can be avoided.</p><p>Caching is one of the simplest and most effective ways to make an LLM system faster and cheaper. But “add a cache” isn’t one decision. There are at least five different places in the pipeline where caching can help, and each one works differently, saves something different and comes with its own risks.</p><p>In this article, I’ll follow a single user request through the pipeline and look at each of the five places you can cache, what to watch out for and where each one fits best.</p><p>The basic idea is the same everywhere:</p><p>• Hit: the result is already stored, so return it early.</p><ul><li>Miss: do the work, then store the result for next time.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e0W1HUXQcDBSCv_KrXXw3g.gif" /></figure><p>𝗣𝗮𝗿𝘁 𝟭: 𝗕𝗲𝗳𝗼𝗿𝗲 𝘁𝗵𝗲 𝗠𝗼𝗱𝗲𝗹 𝗜𝘀 𝗖𝗮𝗹𝗹𝗲𝗱</p><p>𝟭. 𝗙𝘂𝗹𝗹 𝗥𝗲𝘀𝗽𝗼𝗻𝘀𝗲 𝗖𝗮𝗰𝗵𝗲</p><p>The idea: if the exact same prompt has been answered before, return the saved answer.</p><p>How it works: the system creates a key by hashing the prompt and the model name together. It checks a fast store such as Redis. If the key exists, the saved answer comes back in a few milliseconds and the LLM is never called. If it doesn’t, the LLM is called and the answer is saved for next time.</p><p>This is the cheapest possible request, because it skips the model entirely.</p><p>Watch out: this cache only works for exact matches. Change one character, add a space or rephrase slightly, and it’s a miss. It’s also important to include everything that affects the answer in the key, such as the model, temperature and system prompt. Otherwise, you may return an answer that was created under different settings.</p><p>Best for: FAQs, retries and repeated dashboard queries, where the same request is sent again and again.</p><p>Examples: Redis, Upstash and CDN edge caches.</p><p>𝟮. 𝗦𝗲𝗺𝗮𝗻𝘁𝗶𝗰 𝗖𝗮𝗰𝗵𝗲</p><p>The idea: if a new question means the same thing as a past one, reuse the past answer.</p><p>How it works: users rarely type the same question twice in exactly the same way. “Reset password?” and “forgot my password” are different strings but the same question. A semantic cache turns each question into an embedding and searches a vector store for similar past questions. If the similarity is above a threshold, for example 0.9, it returns the stored answer. If not, the LLM is called and the new question and answer are stored.</p><p>This catches far more repeats than an exact-match cache.</p><p>Watch out: the threshold is everything. Set it too low and the cache returns answers to questions that only look similar. “How do I cancel my order?” and “How do I cancel my subscription?” may be close in meaning, but they need very different answers. Start with a strict threshold and test it on real questions before relaxing it.</p><p>Best for: customer support, FAQs and help desks, where many people ask the same thing in different words.</p><p>Examples: GPTCache and Redis vector search.</p><p>𝗣𝗮𝗿𝘁 𝟮: 𝗜𝗻𝘀𝗶𝗱𝗲 𝘁𝗵𝗲 𝗥𝗲𝘁𝗿𝗶𝗲𝘃𝗮𝗹 𝗟𝗮𝘆𝗲𝗿</p><p>𝟯. 𝗘𝗺𝗯𝗲𝗱𝗱𝗶𝗻𝗴 𝗖𝗮𝗰𝗵𝗲</p><p>The idea: if the same text has already been turned into a vector, reuse that vector.</p><p>How it works: in a RAG system, documents are split into chunks and embedded. Queries are embedded too. If the same text is embedded again, for example when re-indexing documents or when users ask the same question, an embedding cache returns the stored vector instead of calling the embedding API again.</p><p>This saves both cost and time, especially for large document collections that are re-indexed regularly.</p><p>Watch out: vectors from different embedding models aren’t compatible. If you switch models, old cached vectors become useless and can quietly break retrieval. The safest approach is to include the model name in the cache key, so a model change automatically creates new entries.</p><p>Best for: re-indexing documents and repeated RAG queries.</p><p>Examples: LangChain’s CacheBackedEmbeddings and Redis.</p><p>𝟰. 𝗧𝗼𝗼𝗹-𝗥𝗲𝘀𝘂𝗹𝘁 𝗖𝗮𝗰𝗵𝗲</p><p>The idea: if an agent calls the same tool with the same arguments, reuse the result.</p><p>How it works: agents call tools all the time: weather lookups, price checks, search queries, internal APIs. Many of these return the same answer for a while. A tool-result cache stores the result using the tool name and its arguments as the key. A call to get_weather(”Pune”) a few minutes after the last one can return the saved result instead of calling the API again.</p><p>This reduces API costs, avoids rate limits and makes agents noticeably faster.</p><p>Watch out: cached data goes stale. Always set a time-to-live (TTL) that matches how quickly the data changes. Weather might be fine for ten minutes. A stock price might only be fine for a few seconds. Some tools, such as anything that sends a message or makes a payment, should never be cached at all.</p><p>Best for: weather, prices and slow-changing search results.</p><p>Examples: Redis with TTL and in-memory LRU caches.</p><p>𝗣𝗮𝗿𝘁 𝟯: 𝗜𝗻𝘀𝗶𝗱𝗲 𝘁𝗵𝗲 𝗠𝗼𝗱𝗲𝗹 𝗖𝗮𝗹𝗹</p><p>𝟱. 𝗣𝗿𝗼𝗺𝗽𝘁 / 𝗣𝗿𝗲𝗳𝗶𝘅 𝗖𝗮𝗰𝗵𝗲</p><p>The idea: if the start of a prompt is the same as last time, the model provider doesn’t need to process it again.</p><p>How it works: many applications send the same long beginning with every request: a detailed system prompt, a set of tool definitions or a large reference document. Only the user’s question at the end changes. With prefix caching, the provider stores the processed version of that shared prefix. The next request that starts the same way reuses it, and only the new part is processed.</p><p>The savings can be large. Anthropic has reported up to 85% lower latency and up to 90% lower cost for long prompts using prompt caching. OpenAI applies prompt caching automatically on longer prompts, and serving engines like vLLM offer prefix caching for self-hosted models.</p><p>Watch out: the prefix has to match exactly. Put everything that stays the same at the start of the prompt, and put the parts that change, such as the user’s question, timestamps or session details, at the end. A single changed word early in the prompt can break the cache for everything after it.</p><p>Best for: long system prompts, agents with many tools and questions over large documents.</p><p>Examples: Anthropic, OpenAI and vLLM prefix caching.</p><p>𝗣𝗮𝗿𝘁 𝟰: 𝗣𝘂𝘁𝘁𝗶𝗻𝗴 𝗜𝘁 𝗧𝗼𝗴𝗲𝘁𝗵𝗲𝗿</p><p>Picture a single request moving down the pipeline:</p><p>• First, the full response cache checks for an exact match.</p><p>• If that misses, the semantic cache checks for a similar question.</p><p>• If the system needs to retrieve documents, the embedding cache avoids re-embedding known text.</p><p>• If an agent calls tools, the tool-result cache avoids repeated API calls.</p><p>• And when the model is finally called, the prefix cache means the shared part of the prompt isn’t processed again.</p><p>Each layer catches a different kind of repetition. Together, they can make a large difference to both cost and speed.</p><p>𝗪𝗵𝗲𝗿𝗲 𝘁𝗼 𝗦𝘁𝗮𝗿𝘁</p><p>You don’t need all five on day one. A practical order for most teams:</p><p>• Start with prefix caching. Often it just means reordering your prompt so the stable parts come first. It’s low effort and low risk.</p><p>• Add a full response cache for obvious repeats, such as retries and dashboards.</p><p>• Add an embedding cache if you re-index documents regularly.</p><p>• Add tool-result caching for agents, with careful TTLs.</p><p>• Add semantic caching last, and only after testing the threshold on real questions.</p><p>And whatever you add, measure it. Track hit rates, cost per request and, above all, answer quality. A cache that saves money but returns wrong answers isn’t a saving.</p><p>𝗖𝗼𝗻𝗰𝗹𝘂𝘀𝗶𝗼𝗻</p><p>LLM costs are often treated as fixed: a price per token that you simply have to pay. But a large share of that cost comes from doing the same work more than once.</p><p>Caching changes that. Every hit is work you never pay for twice, and a response your users get faster.</p><p>The best LLM systems aren’t only the ones with the best models. They’re the ones that know when they don’t need to call the model at all.</p><p>Where in your pipeline are you paying for the same work twice?</p><p>If you found this useful, subscribe to get more practical insights on Data Modernization, AI Adoption and Digital Growth.</p><p>Also follow me on <a href="https://www.linkedin.com/in/birjesangram/">https://www.linkedin.com/in/birjesangram/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65b6f10a1b15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The AI Agent Stack, Explained Like a Human Body]]></title>
            <link>https://medium.com/@birjesangram/the-ai-agent-stack-explained-like-a-human-body-f683930934a4?source=rss-7690a7c3254a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f683930934a4</guid>
            <category><![CDATA[data-modernization]]></category>
            <category><![CDATA[ai-adoption]]></category>
            <category><![CDATA[digital-growth]]></category>
            <dc:creator><![CDATA[Sangram Birje]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 12:31:01 GMT</pubDate>
            <atom:updated>2026-11-11T12:31:01.816Z</atom:updated>
            <content:encoded><![CDATA[<p>Why a powerful model is only the brain, and what the rest of the body needs to be in place before an agent can do real work</p><p>When an organisation says “we’re building an AI agent,” the conversation usually starts with one question: which model should we use?</p><p>It’s a fair question. The model is the most visible part of the system. It’s the part that writes, reasons and answers, and it’s the part that gets compared on every benchmark.</p><p>But think about what it takes for a person to do a job well. Intelligence matters, of course. But so does what they know about the company, what they remember from last week, how well they understand how things connect, whether they can actually reach the systems they need, whether they’ve done this task before, and whether someone has set clear rules about what they’re allowed to do.</p><p>A brilliant person with none of that would struggle on their first day. An AI agent is no different.</p><p>In this article, I’ll walk through the seven building blocks of an AI agent, using the human body as a simple way to understand what each one does and why it matters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UtDng-_O-bJnqLAV9z3QJQ.png" /></figure><p>𝗣𝗮𝗿𝘁 𝟭: 𝗧𝗵𝗶𝗻𝗸𝗶𝗻𝗴 𝗮𝗻𝗱 𝗞𝗻𝗼𝘄𝗶𝗻𝗴</p><p>𝟭. 𝗟𝗟𝗠 = 𝗧𝗵𝗲 𝗕𝗿𝗮𝗶𝗻</p><p>The large language model is the brain of the agent. It understands requests, writes responses and reasons through problems.</p><p>It also brings a great deal of general knowledge from training. It knows how to write a professional email, explain a financial concept or summarise a long document.</p><p>What it doesn’t know is anything specific about your organisation: your customers, your products, your policies or what happened yesterday. On its own, the brain is smart but uninformed. That’s why the next building block matters so much.</p><p>𝟮. 𝗥𝗔𝗚 + 𝗠𝗲𝗺𝗼𝗿𝘆 = 𝗞𝗻𝗼𝘄𝗹𝗲𝗱𝗴𝗲 + 𝗘𝘅𝗽𝗲𝗿𝗶𝗲𝗻𝗰𝗲</p><p>If the LLM is the brain, RAG and memory are what the brain knows and remembers.</p><p>RAG (Retrieval-Augmented Generation) is how the agent finds relevant information from your own data at the moment it’s needed. When someone asks about a contract, a policy or a customer’s account, RAG retrieves the right documents and gives them to the model to work from.</p><p>Memory is about experience. It keeps useful context over time: a customer’s preferences, the decisions made in a previous conversation, the progress on a long-running task. Without memory, every conversation starts from zero, like meeting a colleague who forgets you every morning.</p><p>Together, they turn a general-purpose brain into one that knows your business and learns from working in it.</p><p>𝟯. 𝗢𝗻𝘁𝗼𝗹𝗼𝗴𝘆 = 𝗧𝗵𝗲 𝗪𝗼𝗿𝗹𝗱 𝗠𝗮𝗽</p><p>This is the building block most teams overlook, and in my experience it’s often the one that makes the biggest difference in an enterprise.</p><p>An ontology defines the entities in your business and how they relate to each other. A customer has accounts. An account uses services. A service can have incidents. Incidents are handled by teams. Teams own assets.</p><p>Humans carry this map in their heads without thinking about it. An AI agent doesn’t. Without it, the agent may find the right document but still misunderstand what it means. It might confuse a customer with a supplier, or miss that an incident affects three other services.</p><p>An ontology adds business context and rules. It gives the agent a structured understanding of how your organisation actually fits together, so its answers make sense in your world, not just in general.</p><p>𝗣𝗮𝗿𝘁 𝟮: 𝗖𝗼𝗻𝗻𝗲𝗰𝘁𝗶𝗻𝗴 𝗮𝗻𝗱 𝗔𝗰𝘁𝗶𝗻𝗴</p><p>𝟰. 𝗠𝗖𝗣 = 𝗧𝗵𝗲 𝗖𝗼𝗺𝗺𝘂𝗻𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗡𝗲𝘁𝘄𝗼𝗿𝗸</p><p>A brain needs a nervous system to connect it to the rest of the body. For an AI agent, that role is increasingly played by MCP, the Model Context Protocol.</p><p>MCP is one standard plug for tools and data. Instead of building a custom integration for every system, each application, API, file store or database is wrapped as an MCP server. The agent can discover what each one offers and use it in a consistent way.</p><p>This matters because an enterprise has hundreds of systems. Without a standard, every new connection is a new project. With one, the agent’s reach grows much faster and is easier to manage.</p><p>𝟱. 𝗦𝗸𝗶𝗹𝗹𝘀 = 𝗥𝗲𝘂𝘀𝗮𝗯𝗹𝗲 𝗘𝘅𝗽𝗲𝗿𝘁𝗶𝘀𝗲</p><p>When a person does a task many times, they develop a method. They know the steps, the template and the checks that matter. Skills give an AI agent the same advantage.</p><p>A skill is saved know-how for a repeat task. It might be a workflow for preparing a monthly report, a template for a customer response or a checklist for reviewing a contract.</p><p>Skills make agents more consistent, because the same task is done the same way each time. They also make agents more efficient, because the agent doesn’t have to work out the process from scratch. And they capture your organisation’s own way of working, which is often where the real value lies.</p><p>𝟲. 𝗛𝗮𝗿𝗻𝗲𝘀𝘀 = 𝗧𝗵𝗲 𝗖𝗼𝗻𝘁𝗿𝗼𝗹 𝗦𝘆𝘀𝘁𝗲𝗺</p><p>The harness is the part of the system that manages how the agent actually runs. It handles execution and tool calls, controls access and deals with errors.</p><p>In human terms, this is the combination of judgement, rules and supervision that keeps a person working safely. A new employee doesn’t get access to every system on day one. Their work is reviewed. When something goes wrong, there’s a process for handling it.</p><p>An agent needs the same. The harness decides which tools the agent can use, what happens when a tool call fails, when a human needs to approve an action and how every step is logged.</p><p>Without a harness, an agent might work in a demo. With one, it can be trusted in production.</p><p>𝗣𝗮𝗿𝘁 𝟯: 𝗧𝗵𝗲 𝗪𝗵𝗼𝗹𝗲 𝗕𝗼𝗱𝘆</p><p>𝟳. 𝗔𝗜 𝗔𝗴𝗲𝗻𝘁 = 𝗕𝗿𝗮𝗶𝗻 + 𝗛𝗮𝗻𝗱𝘀</p><p>When all six building blocks work together, you get an AI agent.</p><p>It doesn’t just answer questions. It plans the steps on its own, uses tools to take action and completes tasks from start to finish. It reasons with the brain, draws on knowledge and memory, understands the business through the ontology, reaches systems through MCP, follows proven methods through skills and stays within boundaries through the harness.</p><p>That’s the difference between a chatbot and an agent. A chatbot talks. An agent works.</p><p>𝗣𝗮𝗿𝘁 𝟰: 𝗪𝗵𝗮𝘁 𝗧𝗵𝗶𝘀 𝗠𝗲𝗮𝗻𝘀 𝗳𝗼𝗿 𝗘𝗻𝘁𝗲𝗿𝗽𝗿𝗶𝘀𝗲𝘀</p><p>The human body analogy makes one thing clear: no single part can do the job alone.</p><p>Yet many enterprise agent projects focus almost entirely on the brain. They compare models, test prompts and upgrade to the newest release, while the rest of the body is incomplete.</p><p>In practice, struggling agents usually have a missing body part, not a weak brain:</p><p>• No ontology, and the agent misunderstands how the business works.</p><p>• No memory, and every conversation starts from scratch.</p><p>• No MCP or integrations, and the agent can talk about work but can’t do it.</p><p>• No skills, and results vary every time the same task is run.</p><p>• No harness, and the agent can’t be trusted with real actions.</p><p>Before upgrading the model, it’s worth asking a simpler question: which part of the body is missing?</p><p>A practical way to start:</p><p>• Map the business first. Define the key entities and relationships the agent needs to understand.</p><p>• Connect the data. Make sure the agent can retrieve the right information, and remember what matters.</p><p>• Start with a few well-defined skills. Choose repeat tasks where consistency creates clear value.</p><p>• Build the harness early. Set permissions, approvals and logging before the agent takes real actions.</p><p>• Then choose the model that fits. With the rest of the body in place, the model becomes a component you can swap and improve over time.</p><p>𝗖𝗼𝗻𝗰𝗹𝘂𝘀𝗶𝗼𝗻</p><p>The model gets the attention, but it’s only the brain.</p><p>An AI agent that delivers real business value needs the whole body: knowledge and experience, a map of the world, a nervous system to reach your systems, reusable expertise and a control system that keeps it safe.</p><p>The organisations that succeed with agentic AI won’t be the ones with the smartest brain. They’ll be the ones that built the complete body around it.</p><p>Which building block is missing in your AI agent today?</p><p>If you found this useful, subscribe to get more practical insights on Data Modernization, AI Adoption and Digital Growth.</p><p>Also follow me on <a href="https://www.linkedin.com/in/birjesangram/">https://www.linkedin.com/in/birjesangram/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f683930934a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 MCP Server Use Cases Every Enterprise Should Know]]></title>
            <link>https://medium.com/@birjesangram/5-mcp-server-use-cases-every-enterprise-should-know-20fa631fef8a?source=rss-7690a7c3254a------2</link>
            <guid isPermaLink="false">https://medium.com/p/20fa631fef8a</guid>
            <category><![CDATA[digital-growth]]></category>
            <category><![CDATA[data-modernization]]></category>
            <category><![CDATA[ai-adoption]]></category>
            <dc:creator><![CDATA[Sangram Birje]]></dc:creator>
            <pubDate>Mon, 09 Nov 2026 12:31:01 GMT</pubDate>
            <atom:updated>2026-11-09T12:31:01.582Z</atom:updated>
            <content:encoded><![CDATA[<p>One protocol, any tool: how AI agents reach real systems safely, and where to start</p><p>Most enterprise AI assistants today are very good at one thing: talking.</p><p>They can summarise a document, draft an email or explain a concept. But ask one to check the status of a customer’s ticket, open a pull request or pull last quarter’s numbers from the data warehouse, and it usually hits a wall. It either says it can’t access that, or worse, it guesses.</p><p>The model isn’t the problem. Access is.</p><p>For the last few years, connecting an AI system to a business tool meant building a custom integration for every pair: this model to that CRM, this assistant to that database. Every new tool meant new code, new authentication and new maintenance.</p><p>The Model Context Protocol (MCP) changes that. It gives AI agents one standard way to discover and use tools. Instead of building a custom bridge for every system, you connect an MCP server once, and any compatible agent can use it.</p><p>In this article, I’ll walk through five practical MCP use cases, what each one looks like in practice, and the guardrail that makes each one safe to deploy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VkVmb1BfOdJ--z8HU5afjg.gif" /></figure><p>𝗣𝗮𝗿𝘁 𝟭: 𝗛𝗼𝘄 𝗠𝗖𝗣 𝗪𝗼𝗿𝗸𝘀 𝗶𝗻 𝗣𝗹𝗮𝗶𝗻 𝗧𝗲𝗿𝗺𝘀</p><p>Before looking at the use cases, it helps to understand the basic flow. It’s the same every time.</p><p>𝟭. 𝗧𝗵𝗲 𝗮𝗴𝗲𝗻𝘁</p><p>This is the AI system doing the work: a coding assistant, a support bot, a data analyst agent. It runs inside a host application, such as Claude, Cursor or a company’s own platform.</p><p>𝟮. 𝗧𝗵𝗲 𝗠𝗖𝗣 𝘀𝗲𝗿𝘃𝗲𝗿</p><p>Each business system is wrapped in an MCP server. The server describes what the system can do as a list of tools, such as “find_contact” or “run_query”.</p><p>When the agent connects, it asks the server for this list (a request called tools/list). From then on, the agent knows exactly which actions are available and what information each one needs.</p><p>𝟯. 𝗧𝗵𝗲 𝗴𝘂𝗮𝗿𝗱𝗿𝗮𝗶𝗹</p><p>Between the agent and the system sits a permission layer. This might be OAuth scopes, a read-only database role or an isolated browser session. It decides what the agent is actually allowed to do, regardless of what it asks for.</p><p>𝟰. 𝗧𝗵𝗲 𝗿𝗲𝘀𝘂𝗹𝘁</p><p>The agent calls a tool, gets real data back and uses it to answer or act. The answer is grounded in your systems rather than in the model’s memory.</p><p>That’s the whole pattern: agent, tools, guardrail, result. Every use case below follows it.</p><p>𝗣𝗮𝗿𝘁 𝟮: 𝗙𝗶𝘃𝗲 𝗨𝘀𝗲 𝗖𝗮𝘀𝗲𝘀</p><p>𝟭. 𝗖𝗼𝗱𝗶𝗻𝗴 𝗔𝗴𝗲𝗻𝘁𝘀 → 𝗚𝗶𝘁𝗛𝘂𝗯</p><p>The problem: developers switch constantly between their editor, the AI assistant and GitHub. They copy code into the chat, copy answers back, and open the browser to check pull requests and build results.</p><p>How MCP helps: the GitHub MCP server gives a coding agent tools such as search_code, create_pull_request, list_issues and get_workflow_run.</p><p>The agent can read the repository, make a change, open a pull request and check whether the CI pipeline passed, all without the developer leaving the conversation. It can also triage incoming issues by reading them and suggesting labels or owners.</p><p>The guardrail: OAuth scopes. The agent only gets the permissions the token allows. A team might allow it to open pull requests but not merge them, so a human always approves what goes into the main branch.</p><p>𝟮. 𝗦𝘂𝗽𝗽𝗼𝗿𝘁 𝗕𝗼𝘁𝘀 → 𝗖𝗥𝗠</p><p>The problem: a support bot without access to customer data can only give generic answers. “Please check your account settings” doesn’t help a customer whose order is late.</p><p>How MCP helps: a CRM MCP server, for platforms like Salesforce or HubSpot, exposes tools such as find_contact, get_tickets, update_deal and log_activity.</p><p>Now the bot can look up the customer’s account, see their open tickets, update the record and log the conversation. The reply is based on the customer’s actual situation, not a guess.</p><p>The guardrail: per-user OAuth. The bot acts with the permissions of the person or role it’s serving, so it can only see and change the records that person is allowed to access. This matters a great deal for privacy and compliance.</p><p>𝟯. 𝗔𝗻𝗮𝗹𝘆𝘀𝘁𝘀 → 𝗗𝗮𝘁𝗮𝗯𝗮𝘀𝗲𝘀</p><p>The problem: business users have questions, and the answers sit in databases they can’t query. Every question becomes a request to the data team, and the queue gets longer.</p><p>How MCP helps: a database MCP server, for platforms like Postgres, Snowflake or Supabase, gives an analyst agent tools such as list_tables, describe_schema, run_query and explain_query.</p><p>A user asks a question in plain English. The agent looks at the available tables, understands their structure, writes the SQL, runs it and explains the result, often with a chart.</p><p>The guardrail: a read-only database role. The agent can read data but cannot change or delete it. Many teams also block bulk exports, so the agent answers questions without becoming a way to extract entire tables.</p><p>This is also a good example of why the guardrail sits outside the model. You don’t rely on the prompt saying “only write SELECT queries”. You give the agent a database role that physically cannot do anything else.</p><p>𝟰. 𝗢𝗽𝘀 𝗔𝗴𝗲𝗻𝘁𝘀 → 𝗦𝗹𝗮𝗰𝗸 + 𝗝𝗶𝗿𝗮</p><p>The problem: incidents often unfold in long, noisy Slack threads. Someone eventually has to read the whole thing, work out what happened and create a ticket. That step is easy to delay or forget.</p><p>How MCP helps: with Slack and Atlassian MCP servers, an ops agent can use tools to search messages, post updates, create issues and move them through a workflow.</p><p>The agent summarises the thread, files a Jira issue with the key details and posts the ticket link back to the channel. The incident becomes tracked work instead of a conversation that scrolls away.</p><p>The guardrail: scoped tokens. The agent might be allowed to read specific channels and create tickets in one project, but nothing beyond that.</p><p>𝟱. 𝗕𝗿𝗼𝘄𝘀𝗲𝗿 𝗔𝗴𝗲𝗻𝘁𝘀 → 𝗪𝗲𝗯 𝗔𝘂𝘁𝗼𝗺𝗮𝘁𝗶𝗼𝗻</p><p>The problem: not every system has an API. Some internal portals, legacy applications and supplier websites can only be used through a browser.</p><p>How MCP helps: the Playwright MCP server gives an agent browser tools such as browser_navigate, browser_click, browser_type and browser_snapshot. The agent can open a page, read its structure, fill forms and click through a workflow.</p><p>This is useful for testing user interfaces, completing repetitive web tasks and pulling information from pages that have no other way in.</p><p>The guardrail: an isolated browser session. The agent works in a separate, controlled browser rather than in a user’s personal session with all their logins. It’s also worth checking that automated use is allowed by the website’s terms.</p><p>𝗣𝗮𝗿𝘁 𝟯: 𝗧𝗵𝗲 𝗣𝗮𝘁𝘁𝗲𝗿𝗻 𝗕𝗲𝗵𝗶𝗻𝗱 𝗔𝗹𝗹 𝗙𝗶𝘃𝗲</p><p>Look at the five use cases side by side and the same structure appears every time:</p><p>• An agent that needs to get something done</p><p>• An MCP server that turns a business system into a list of tools</p><p>• A guardrail that controls what the agent can actually do</p><p>• A result grounded in real data</p><p>The tools make the agent useful. The guardrail makes it safe to deploy.</p><p>That second part is where enterprise success or failure is usually decided. The technical connection is often the easy part. The harder questions are about permissions, accountability and trust.</p><p>𝗣𝗮𝗿𝘁 𝟰: 𝗪𝗵𝗲𝗿𝗲 𝘁𝗼 𝗦𝘁𝗮𝗿𝘁</p><p>If you’re planning your first MCP deployment, a few principles help:</p><p>• Start with read-only access. Let the agent look things up before it’s allowed to change anything. This builds confidence and shows value quickly.</p><p>• Pick one high-friction workflow. Choose a task people already find painful, like triaging issues or answering data questions, and measure the time saved.</p><p>• Keep permissions in the system, not the prompt. Use roles, scopes and tokens to enforce limits. Prompts can be ignored or manipulated. Permissions can’t.</p><p>• Add write actions one at a time. Once the read-only version is trusted, allow one carefully scoped action, such as creating a ticket, with human approval for anything high-stakes.</p><p>• Log every tool call. You should always be able to see which agent called which tool, with what input, and what happened.</p><p>𝗖𝗼𝗻𝗰𝗹𝘂𝘀𝗶𝗼𝗻</p><p>For the last few years, the question about enterprise AI was “How smart is the model?” With MCP, the question is becoming “What can the model safely reach?”</p><p>The answer to that second question will decide how much real work AI does inside your organisation. Agents that can only talk will stay assistants. Agents that can reach your systems, with the right guardrails, start to become part of how work gets done.</p><p>The organisations that benefit most won’t be the ones that connect the most tools the fastest. They’ll be the ones that connect the right tools with the right permissions, and build trust one workflow at a time.</p><p>Which system in your organisation would you connect to an AI agent first?</p><p>If you found this useful, subscribe to get more practical insights on Data Modernization, AI Adoption and Digital Growth.</p><p>Also follow me on <a href="https://www.linkedin.com/in/birjesangram/">https://www.linkedin.com/in/birjesangram/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20fa631fef8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The RAG Family Tree]]></title>
            <link>https://medium.com/@birjesangram/the-rag-family-tree-c3203665d4c3?source=rss-7690a7c3254a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3203665d4c3</guid>
            <category><![CDATA[ai-adoption]]></category>
            <category><![CDATA[digital-growth]]></category>
            <category><![CDATA[data-modernization]]></category>
            <dc:creator><![CDATA[Sangram Birje]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 12:31:02 GMT</pubDate>
            <atom:updated>2026-11-06T12:31:02.481Z</atom:updated>
            <content:encoded><![CDATA[<p>15 retrieval patterns, what problem each one solves, and how to know when you need the next one</p><p>Ask five AI teams which RAG approach they use and you’ll likely get five different answers. Naive RAG. Hybrid RAG. GraphRAG. Agentic RAG. Something with a name you’ve never heard of.</p><p>It’s easy to see these as competing products, where one is “best” and the rest are outdated. That’s not how they evolved.</p><p>Almost every RAG variant was created to fix one specific weakness in an earlier version. Hybrid search exists because pure vector search misses exact terms. Rerankers exist because the top matches aren’t always the right ones. GraphRAG exists because some questions need relationships, not passages. Agentic RAG exists because some questions can’t be answered with a single search.</p><p>Seen that way, the many RAG types stop being a confusing list and become a family tree. And the useful question changes from “Which RAG is best?” to “Which problem do we actually have?”</p><p>In this article, I’ll walk through 15 RAG patterns, grouped into five branches, and explain when each one is worth the extra cost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iZ67yHAiFN5ypyLApxD0Sg.gif" /></figure><p>𝗣𝗮𝗿𝘁 𝟭: 𝗧𝗵𝗲 𝗦𝘁𝗮𝗿𝘁𝗶𝗻𝗴 𝗣𝗼𝗶𝗻𝘁</p><p>Every branch of the tree grows from the same root.</p><p>𝟭. 𝗟𝗟𝗠 𝗔𝗹𝗼𝗻𝗲</p><p>The model answers from what it learned during training. No retrieval, no external documents.</p><p>This is fine for general knowledge, but it breaks down quickly in an enterprise. The model doesn’t know your policies, your products or anything that happened after its training cut-off. When it doesn’t know, it may still produce a confident answer.</p><p>𝟮. 𝗡𝗮𝗶𝘃𝗲 𝗥𝗔𝗚</p><p>Introduced in a 2020 research paper from Facebook AI, this is the pattern most people mean by “RAG”. Split documents into chunks, turn each chunk into an embedding, and at query time add the top few most similar chunks to the prompt.</p><p>It’s simple, cheap and surprisingly effective. For many internal knowledge assistants, a well-built naive RAG system is enough. Every other pattern in this article is a response to a way it can fail.</p><p>𝗣𝗮𝗿𝘁 𝟮: 𝗪𝗵𝗲𝗻 𝗬𝗼𝘂𝗿 𝗗𝗼𝗰𝘂𝗺𝗲𝗻𝘁𝘀 𝗙𝗶𝘁 𝗶𝗻 𝘁𝗵𝗲 𝗣𝗿𝗼𝗺𝗽𝘁</p><p>Context windows have grown dramatically. For smaller knowledge bases, that opens a different path: skip most of the retrieval altogether.</p><p>𝟯. 𝗟𝗼𝗻𝗴 𝗖𝗼𝗻𝘁𝗲𝘅𝘁</p><p>Instead of searching for the right chunks, send all the relevant documents to the model and let it read them.</p><p>This removes a whole category of failure: the right information can’t be missed by search if search never happens. The trade-off is cost and speed, since you pay for every token on every request. Models can also pay less attention to information buried in the middle of a very long prompt.</p><p>𝟰. 𝗖𝗮𝗰𝗵𝗲-𝗔𝘂𝗴𝗺𝗲𝗻𝘁𝗲𝗱 𝗚𝗲𝗻𝗲𝗿𝗮𝘁𝗶𝗼𝗻 (𝗖𝗔𝗚)</p><p>CAG takes long context one step further. The documents are loaded into the model once, and the processed result is cached and reused across requests.</p><p>It works best when the knowledge base is small and stable, such as a product manual or an internal policy set. When documents change frequently, the cache has to be rebuilt, and the advantage shrinks.</p><p>𝗣𝗮𝗿𝘁 𝟯: 𝗪𝗵𝗲𝗻 𝗦𝗲𝗮𝗿𝗰𝗵 𝗠𝗶𝘀𝘀𝗲𝘀 𝘁𝗵𝗲 𝗥𝗶𝗴𝗵𝘁 𝗖𝗵𝘂𝗻𝗸</p><p>This is the branch most production teams spend most of their time on. The answer exists in the documents, but retrieval doesn’t find it.</p><p>𝟱. 𝗛𝘆𝗯𝗿𝗶𝗱 𝗥𝗔𝗚</p><p>Vector search is good at meaning. It’s weak at exact terms like product codes, error numbers and policy IDs. Keyword search (usually BM25) is the opposite.</p><p>Hybrid RAG runs both and combines the results. It’s one of the cheapest and most reliable upgrades you can make, and in my view it should be the default for most enterprise systems.</p><p>𝟲. 𝗔𝗱𝘃𝗮𝗻𝗰𝗲𝗱 𝗥𝗔𝗚</p><p>Advanced RAG adds steps before and after retrieval. Before: rewrite the user’s question so it’s clearer and easier to search. After: use a reranker model to reorder the results so the most relevant chunks come first.</p><p>Rerankers in particular tend to deliver a noticeable improvement for a modest cost, because they look at the question and each chunk together rather than comparing them separately.</p><p>𝟳. 𝗖𝗼𝗻𝘁𝗲𝘅𝘁𝘂𝗮𝗹 𝗥𝗔𝗚</p><p>A chunk on its own often loses the context that gives it meaning. “Revenue grew 3% over the previous quarter” doesn’t say which company or which quarter.</p><p>Contextual RAG fixes this by adding a short explanation to each chunk before it’s indexed. Anthropic reported that this approach reduced failed retrievals by 49% when combined with keyword search, and by 67% when reranking was added.</p><p>𝟴. 𝗛𝘆𝗗𝗘 (𝗛𝘆𝗽𝗼𝘁𝗵𝗲𝘁𝗶𝗰𝗮𝗹 𝗗𝗼𝗰𝘂𝗺𝗲𝗻𝘁 𝗘𝗺𝗯𝗲𝗱𝗱𝗶𝗻𝗴𝘀)</p><p>Questions and answers often look different. A short question may not resemble the long passage that answers it.</p><p>HyDE asks the model to write a hypothetical answer first, then searches using that answer instead of the question. Even if the hypothetical answer is wrong in its details, it often looks more like the real document, which leads to better matches.</p><p>𝗣𝗮𝗿𝘁 𝟰: 𝗪𝗵𝗲𝗻 𝗔𝗻𝘀𝘄𝗲𝗿𝘀 𝗡𝗲𝗲𝗱 𝗦𝘁𝗿𝘂𝗰𝘁𝘂𝗿𝗲</p><p>Some questions can’t be answered from a single passage. They need a summary across many documents, or an understanding of how things are connected.</p><p>𝟵. 𝗥𝗔𝗣𝗧𝗢𝗥</p><p>RAPTOR builds a tree of summaries over your documents. The bottom level is the original chunks. Each level above summarises groups of chunks from the level below.</p><p>At query time, the system can retrieve from any level: specific details from the bottom or a broad overview from the top. This helps with questions like “What are the main themes in these reports?”, which naive RAG handles poorly.</p><p>𝟭𝟬. 𝗚𝗿𝗮𝗽𝗵𝗥𝗔𝗚</p><p>GraphRAG, popularised by Microsoft, turns documents into a knowledge graph of entities (people, products, systems) and the relationships between them. It also groups related entities into communities and summarises them.</p><p>This makes it strong at questions about connections and global patterns across a large collection. The trade-off is cost: building and updating the graph requires a lot of LLM calls.</p><p>𝟭𝟭. 𝗟𝗶𝗴𝗵𝘁𝗥𝗔𝗚</p><p>LightRAG combines graph-based retrieval with vector search, and is designed to be cheaper to build and easier to update than full GraphRAG. New documents can be added without rebuilding the whole graph.</p><p>It’s a reasonable middle ground for teams who want some of the benefits of a graph without the full cost.</p><p>𝗣𝗮𝗿𝘁 𝟱: 𝗪𝗵𝗲𝗻 𝗢𝗻𝗲 𝗦𝗲𝗮𝗿𝗰𝗵 𝗜𝘀𝗻’𝘁 𝗘𝗻𝗼𝘂𝗴𝗵</p><p>The final branch moves from fixed pipelines to systems that decide for themselves how to retrieve.</p><p>𝟭𝟮. 𝗠𝘂𝗹𝘁𝗶-𝗵𝗼𝗽 𝗥𝗔𝗚</p><p>Some questions require several steps. “Which supplier of our best-selling product had a compliance issue last year?” means first finding the best-selling product, then its suppliers, then their compliance records.</p><p>Multi-hop RAG searches, reasons about what it found, and searches again until it has enough to answer.</p><p>𝟭𝟯. 𝗔𝗴𝗲𝗻𝘁𝗶𝗰 𝗥𝗔𝗚</p><p>In agentic RAG, retrieval becomes a tool that an agent can choose to use. The agent decides whether to search, which source to search, and when it has enough information.</p><p>This is the most flexible pattern, and also the hardest to control. Each extra decision is another LLM call, and another point where something can go wrong.</p><p>𝟭𝟰. 𝗔𝗱𝗮𝗽𝘁𝗶𝘃𝗲-𝗥𝗔𝗚</p><p>Not every question needs the same effort. Adaptive-RAG first estimates how complex a question is, then routes it accordingly: no retrieval for simple questions, single-step retrieval for moderate ones, and multi-step retrieval for complex ones.</p><p>This keeps the cost of easy questions low while still handling hard ones properly.</p><p>𝟭𝟱. 𝗖𝗼𝗿𝗿𝗲𝗰𝘁𝗶𝘃𝗲 𝗥𝗔𝗚 (𝗖𝗥𝗔𝗚) 𝗮𝗻𝗱 𝗦𝗲𝗹𝗳-𝗥𝗔𝗚</p><p>These two patterns add self-checking.</p><p>Corrective RAG grades the retrieved documents before using them. If they’re relevant, it uses them. If they’re poor, it falls back to another source, such as a web search.</p><p>Self-RAG trains the model to reflect as it works: deciding when to retrieve, judging whether what it found is relevant, and checking whether its own answer is supported by the evidence.</p><p>𝗛𝗼𝘄 𝘁𝗼 𝗖𝗵𝗼𝗼𝘀𝗲 𝗬𝗼𝘂𝗿 𝗣𝗹𝗮𝗰𝗲 𝗼𝗻 𝘁𝗵𝗲 𝗠𝗮𝗽</p><p>The most common mistake I see is teams jumping straight to the most advanced pattern they’ve read about. An agentic GraphRAG system is impressive in a demo. It’s also expensive, slow and hard to debug if your actual problem was that search couldn’t find product codes.</p><p>A more practical approach:</p><p>• Start with naive RAG and a good evaluation set of real questions.</p><p>• Look at where it fails. Don’t guess.</p><p>• If the right chunk isn’t being retrieved, move along the search branch: hybrid search, reranking, contextual chunks.</p><p>• If your knowledge base is small and stable, consider long context or CAG instead of retrieval.</p><p>• If questions need summaries or relationships, look at RAPTOR, LightRAG or GraphRAG.</p><p>• If questions need several steps, then consider multi-hop, adaptive or agentic patterns.</p><p>Each step along the tree usually improves accuracy. It also adds cost, latency and complexity. The goal isn’t to reach the end of the tree. It’s to stop at the point where your evaluation says the system is good enough.</p><p>𝗖𝗼𝗻𝗰𝗹𝘂𝘀𝗶𝗼𝗻</p><p>The RAG landscape looks crowded because each new pattern gets its own name. But underneath, the story is simple: each one is a targeted fix for a specific failure.</p><p>For enterprises, that’s good news. You don’t need to keep up with every new variant. You need to understand your own failures, measure them, and take the smallest step that fixes them.</p><p>Where does your RAG system sit on this map today, and what’s the next failure you need to fix?</p><p>If you found this useful, subscribe to get more practical insights on Data Modernization, AI Adoption and Digital Growth.</p><p>Also follow me on <a href="https://www.linkedin.com/in/birjesangram/">https://www.linkedin.com/in/birjesangram/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3203665d4c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>