<?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 Prashant Nerkar on Medium]]></title>
        <description><![CDATA[Stories by Prashant Nerkar on Medium]]></description>
        <link>https://medium.com/@pnerkar?source=rss-93acc8b53177------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zHGz2jMIuVhnRYvFmMyw5w.jpeg</url>
            <title>Stories by Prashant Nerkar on Medium</title>
            <link>https://medium.com/@pnerkar?source=rss-93acc8b53177------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 19:13:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pnerkar/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[The Power of Being Present: The Leadership Skill We Often Overlook]]></title>
            <link>https://pnerkar.medium.com/the-power-of-being-present-the-leadership-skill-we-often-overlook-96c8b31a6b44?source=rss-93acc8b53177------2</link>
            <guid isPermaLink="false">https://medium.com/p/96c8b31a6b44</guid>
            <category><![CDATA[emotional-intelligence]]></category>
            <category><![CDATA[team-culture]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[servant-leadership]]></category>
            <dc:creator><![CDATA[Prashant Nerkar]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 04:35:35 GMT</pubDate>
            <atom:updated>2026-11-19T04:35:35.529Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*gusDyvc-9mYXnJbvC4L0fw.jpeg" /></figure><p>A few months ago, I noticed an interesting pattern in how a leader interacted with their team. The leader was experienced, knowledgeable, and constantly busy. Their calendar was packed with back-to-back meetings, and they were involved in several important initiatives.</p><p>But over time, a pattern began to emerge:</p><ul><li>Team meetings were frequently marked as <em>Tentative</em>, leaving everyone wondering whether the leader would actually attend.</li><li>Sometimes, meetings were missed without any prior communication or acknowledgment afterward.</li><li>Meeting notes and action items were shared, but often went unread or unanswered.</li><li>Team members raised important challenges, only to find little follow-up.</li><li>During conversations, the leader would multitask, respond to emails, or focus on the next meeting rather than the discussion happening in front of them.</li></ul><p>Individually, these might seem like small things. After all, leaders have demanding schedules, competing priorities, and unexpected situations.</p><p>But collectively, they send a powerful message. They can make people feel that their time isn’t valued, their contributions aren’t important, and their concerns aren’t a priority.</p><p>What struck me most was that the leader genuinely cared about the team’s success. The intention was never to disengage, but the impact of their behavior was different from their intention.</p><blockquote><em>It reinforced an important leadership lesson: Being available is not the same as being present.</em></blockquote><p>Leadership presence isn’t measured by how many meetings you attend, how many messages you respond to, or how busy your calendar looks. It’s measured by the attention, respect, consistency, and follow-through you bring to your interactions with people. Sometimes, showing up for your team means simply showing up mentally and physically.</p><h3>What Does It Really Mean to Be Present as a Leader?</h3><p>Being present means giving people your undivided attention, demonstrating genuine interest in what they have to say, and making them feel heard, respected, and valued.</p><p>It’s not about being physically present in every meeting, responding to every message, or having an open calendar. It’s about making people feel that, when they have your attention, they truly have it.</p><p><strong>Think about how often we:</strong></p><ul><li>Join meetings while responding to emails.</li><li>Listen to an employee while mentally preparing for the next meeting.</li><li>Interrupt someone because we believe we already know the answer.</li><li>Focus on deadlines and deliverables without understanding the challenges people are experiencing.</li><li>Ask, “How is everything going?” but don’t pause long enough to hear the real answer.</li></ul><p>We may be managing tasks efficiently, but are we leading people effectively?</p><blockquote><em>Every time we miss a commitment, ignore a follow-up, or give someone only half of our attention, we make a small withdrawal from the trust we’ve built with our team.</em></blockquote><h3>Five Moments Where Being Present Makes a Difference</h3><h4>1. When Someone Brings You a Problem — Listen Before You Solve</h4><p>Imagine an engineer approaches you because a production issue has disrupted their team’s work for several days.</p><p>Your first instinct might be to ask: “What’s the root cause? Why hasn’t this been fixed? What’s the recovery plan?”</p><p>Those are important questions. But start somewhere else.</p><p><strong>Instead, ask: “Walk me through what’s happening. What’s been the most challenging part?”</strong></p><p>Give them time to explain. You may discover that the real issue isn’t technical complexity. It could be unclear ownership, competing priorities, or a dependency that nobody is addressing.</p><p><strong>Best practice:</strong> Listen to understand before responding. Ask open-ended questions. Resist the urge to jump immediately into solution mode.</p><h3>2. When a Team Member Is Struggling — Show Empathy Before Accountability</h3><p>Imagine a high-performing team member suddenly starts missing commitments. Their participation in meetings changes, and their energy seems different.</p><p>A task-focused leader might immediately focus on performance metrics. A present leader takes a moment to have a genuine conversation.</p><p><strong>Ask: “I’ve noticed things have been challenging recently. Is there anything getting in your way? How can I help?”</strong></p><p>This doesn’t mean lowering expectations or avoiding accountability. It means understanding the circumstances before making judgments.</p><p><strong>Best practice:</strong> Pay attention to changes in behavior. Create a safe environment for honest conversations. Balance empathy with clear expectations, appropriate support, and accountability.</p><h3>3. During Disagreements — Bring Emotional Steadiness</h3><p>Leadership presence is especially important when things go wrong.</p><p>Consider a major production incident. Customers are impacted, stakeholders are asking questions, and multiple engineering teams are trying to identify the root cause. This is when people look to leadership.</p><p>A leader who reacts emotionally, assigns blame, or creates panic can make an already difficult situation worse. A present leader remains calm, asks clear questions, establishes priorities, and helps the team focus on resolution.</p><p>Instead of asking: “Who caused this?”</p><p><strong>Ask: “What do we know? What don’t we know? What needs to happen next? Who needs to be involved to move this forward?”</strong></p><p><strong>Best practice:</strong> Stay calm under pressure. Separate facts from assumptions. Focus on resolution first and learning afterward. Create an environment where people can raise issues without fear.</p><h3>4. During One-on-Ones — Make the Conversation About the Person</h3><p>One-on-ones can easily become status meetings. Project updates. Action items. Delivery dates. Escalations.</p><p>But if every conversation is about work, we miss an opportunity to understand the person behind the work. Avoid turning every one-on-one into a project status review.</p><p><strong>Instead, try asking:</strong></p><ul><li><strong>What has energized you recently?</strong></li><li><strong>What’s frustrating you?</strong></li><li><strong>Is there something you want to learn or take ownership of?</strong></li><li><strong>What can I do differently to help you succeed?</strong></li></ul><p>Sometimes the most meaningful leadership conversations happen when we stop talking about the next deliverable.</p><p><strong>Best practice:</strong> Protect one-on-one time. Put distractions away. Ask thoughtful questions. Listen without judgment. Follow through on what you hear.</p><h3>5. When Recognizing Success — Make Appreciation Personal</h3><p>A quick “Great job, team!” in a meeting is nice.</p><p>But imagine recognizing an engineer who spent several nights helping restore a critical platform, or a team member who quietly mentored others through a difficult transformation. Instead of generic appreciation, tell them specifically what you noticed and why it mattered.</p><p><strong>Say: “I appreciated how you took ownership during the incident, brought the right teams together, and kept everyone focused on the customer impact. Your leadership made a real difference.”</strong></p><p>People remember when their contributions are genuinely seen.</p><p>Best practice: Be specific, timely, and authentic. Recognize people publicly when appropriate and appreciate them personally. Acknowledge not just outcomes, but also behaviors, collaboration, ownership, and growth.</p><h3>Seven Habits to Build Leadership Presence</h3><p>Being present is not a personality trait. It is a leadership practice that can be developed intentionally. Here are seven habits worth building:</p><p>1. <strong>Be intentional:</strong> Before entering a conversation, mentally shift your focus to the person in front of you.</p><p>2. <strong>Eliminate distractions:</strong> Put your phone away, close your laptop when possible, and avoid multitasking.</p><p>3. <strong>Listen more than you speak:</strong> Don’t interrupt. Allow silence. Give people room to think.</p><p>4. <strong>Ask better questions:</strong> Replace assumptions with curiosity. Ask “Tell me more” instead of immediately offering advice.</p><p>5. <strong>Be emotionally steady:</strong> Your response sets the tone, especially during uncertainty and difficult situations.</p><p>6. <strong>Know the person behind the role:</strong> Understand people’s aspirations, challenges, motivations, and strengths.</p><p>7. <strong>Follow through:</strong> Presence doesn’t end when the conversation ends. Read meeting notes, acknowledge action items, respond to concerns, honor commitments, and close the loop. People notice when leaders remember what they said they would do.</p><h3>A Final Thought: People Remember How You Made Them Feel</h3><p>As leaders, we spend considerable time thinking about strategy, execution, technology, financial results, organizational structures, and business outcomes.</p><p>All of these matter. But leadership is ultimately about people. People may forget the details of a meeting, the presentation you delivered, or the number of action items you assigned.</p><p>But they will remember whether you listened when they needed help, whether you remained calm when things became difficult, whether you recognized their contributions, and whether they felt valued.</p><blockquote><em>Your team doesn’t need you to be available every minute. They need you to be fully present when it matters.</em></blockquote><h3>Your 48-Hour Leadership Challenge</h3><p>In the next 48 hours, choose one person on your team and give them five minutes of your undivided attention.</p><ul><li>No phone. No emails. No multitasking. No rushing to the next meeting.</li><li>Just you and them.</li><li>Ask how they’re doing. Listen without interrupting. Be genuinely curious. Don’t try to solve everything.</li><li>Just be present.</li><li>You might be surprised by what you learn — and by the difference five minutes can make.</li></ul><p>Because sometimes, the most powerful thing a leader can give someone isn’t an answer, a solution, or direction.</p><p><strong>It’s their FULL attention.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96c8b31a6b44" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Are DORA Metrics Dead in the Era of Agentic AI?]]></title>
            <link>https://pnerkar.medium.com/are-dora-metrics-dead-in-the-era-of-agentic-ai-ede93459b813?source=rss-93acc8b53177------2</link>
            <guid isPermaLink="false">https://medium.com/p/ede93459b813</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[site-reliability]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[agentic-dora]]></category>
            <category><![CDATA[developer-experience]]></category>
            <dc:creator><![CDATA[Prashant Nerkar]]></dc:creator>
            <pubDate>Sun, 27 Sep 2026 22:31:05 GMT</pubDate>
            <atom:updated>2026-09-27T22:40:52.973Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*561jB3CE90DjymUE92w9WA.jpeg" /><figcaption>MS Office Stock Images</figcaption></figure><p>For more than a decade, the DevOps Research and Assessment (DORA) metrics have helped engineering leaders answer a fundamental question: <strong>How effectively can our organization deliver software?</strong></p><p>The engineering team relied on DORA metrics such as<strong> </strong><em>Deployment Frequency, Change Lead Time, Change Failure Rate, Failed Deployment Recovery Time and Deployment Rework Rate</em>. These metrics transformed engineering conversations.</p><p>Instead of asking, <em>“How busy are our developers?”</em>, organizations could ask: <em>How quickly do changes reach production?</em> <em>How often do changes fail?</em> <em>How quickly can we recover?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*ucxOtCr4BafEiW2i9HH32A.png" /><figcaption>Fig 1: Traditional DORA dashboard</figcaption></figure><p>But software engineering is entering a fundamentally different era. AI Agents can now write code, generate tests, analyze pull requests, investigate incidents, modify infrastructure, remediate production issues, and continuously iterate without waiting for a human to perform every step. That raises a new question: <strong>Are traditional DORA metrics still enough?</strong></p><p><strong>DORA isn’t dead</strong>. But DORA alone is no longer enough to describe engineering performance in an agentic world. And this is where we need to start thinking about <strong>Agentic DORA</strong>.</p><h3>From Developer to Human + Agent Engineering</h3><p>Traditional software delivery looks roughly like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kKPNFcuEi8xTEA_QtgA0XQ.png" /><figcaption>Fig 2: Software Development Life Cycle (SDLC)</figcaption></figure><p>The human (developer) is the primary actor. AI may assist along the way, but the human is still driving most of the workflow.</p><p>Now consider an agentic workflow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sf6kDjlDYPHLawxLSjw3DQ.png" /><figcaption>Fig 3: Agent Development Life Cycle (ADLC)</figcaption></figure><p>The human increasingly becomes the person who defines intent, establishes guardrails, supervises the system, and handles exceptions. The unit of engineering work is changing. That matters because our metrics were designed around a world where humans performed most of the work.</p><h3>Consider a Simple Example:</h3><p>Imagine Team A.</p><p><strong>Before adopting AI:</strong></p><ul><li>10 deployments per week</li><li>5% change failure rate</li><li>60-minute MTTR</li></ul><p>Now the team introduces AI agents.</p><p><strong>After AI adoption:</strong></p><ul><li>100 deployments per week</li><li>15% change failure rate</li><li>5-minute MTTR</li></ul><p>Traditional DORA tells an interesting story. The deployment frequency increased from <strong>10 to 100</strong>. That’s a huge increase in delivery velocity. But change failure rate also increased from <strong>5% to 15%</strong>. At the same time, recovery improved dramatically from <strong>60 minutes to 5 minutes</strong>.</p><p>So, what happened? Did engineering performance improve? The answer isn’t obvious from a single metric. The team may now be operating a completely different system.</p><p><strong>More changes → more opportunities for failure → dramatically faster detection and recovery.</strong></p><blockquote>The important question is no longer simply: “How many deployments did you make?” It becomes: “How effectively can your organization safely create, deploy, detect, and recover from change?”</blockquote><h3>Does Traditional DORA Still Matter in the Age of AI?</h3><p>This isn’t an argument to throw away DORA. Quite the opposite. The DORA remains extremely valuable for measuring software delivery performance. The traditional metrics answer questions such as:</p><ul><li><strong>Deployment Frequency: </strong>How frequently are we delivering changes?</li><li><strong>Change Lead Time: </strong>How long does it take for a change to move from development to production?</li><li><strong>Change Failure Rate: </strong>How often do deployments result in failure</li><li><strong>Failed Deployment Recovery Time: </strong>How quickly can we restore service after a failed deployment?</li><li><strong>Deployment Rework Rate: </strong>How much deployment activity is spent on unplanned remediation or rework?</li></ul><p>These remain important. The problem occurs when we try to use these metrics to describe the entire engineering system in an agentic environment.</p><h3>So, What Is Agentic DORA?</h3><p>The <strong>Agentic DORA</strong> as a conceptual extension of DORA for the world of human + AI-agent software engineering. The goal isn’t to replace DORA. It is to answer additional questions:</p><ul><li>How much of the engineering lifecycle is autonomous?</li><li>How effectively are AI agents performing engineering tasks?</li><li>How much human intervention is required?</li><li>How often do agents succeed, fail, retry, or escalate?</li><li>Can agents detect and remediate production problems safely?</li></ul><h3>Traditional DORA vs. Agentic DORA</h3><p>Traditional DORA primarily measures how efficiently software moves from development to production. Its focus is on DORA metrics and the developer is generally the primary actor, and the unit of measurement is typically a commit, pull request, or deployment.</p><p>In contrast, Agentic DORA expands the measurement model to the entire human-and-AI engineering system. The primary actors are now both humans and AI agents, and the unit of work can begin with a business intent or engineering task and span agent execution, code generation, testing, review, deployment, observability, and remediation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K2DrAm1sjhzWGeTlNBFG9w.png" /><figcaption>Fig 4: Side by Side comparison between Traditional v/s Agentic DORA</figcaption></figure><blockquote>Future engineering dashboard = <strong>DORA + AI economics + reliability</strong>.</blockquote><h3>DORA Autopilot — Future of DORA</h3><p>DORA Autopilot is an emerging way to think about using AI agents and automation to continuously improve DORA metrics, rather than simply measuring them. A DORA Autopilot layer continuously watches your GitHub, CI/CD, Kubernetes, observability, incident-management and ticketing data.</p><p><strong>For example:</strong> A team suddenly experiences an increase in Change Failure Rate. So instead of simply showing: Change Failure Rate increased from 8% to 14%, the DORA Autopilot investigates. It detects the deterioration, correlates failed deployments, analyzes and recommends actions. It this process it also learns and optimizes for future deployment strategies.</p><p>So the DORA dashboard changes from: “<strong>Here is your DORA score.</strong>” to “<strong>Here is what is hurting your DORA metrics, why it is happening, and what the system is doing about it.</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*3c3avOB3Mh0ILGlznHMyZA.png" /><figcaption>Fig 5: High level Agentic DORA Architecture</figcaption></figure><blockquote><strong>Agentic DORA</strong> is the broader operating model; <strong>DORA Autopilot </strong>can be the implementation that actually takes action.</blockquote><h3>Conclusion</h3><p>DORA remains an important framework for measuring software delivery performance. However, in an era where AI agents are increasingly writing code, testing software, identifying vulnerabilities, deploying changes, monitoring production, and even remediating incidents, DORA alone no longer tells the complete story.</p><p>The future is not <strong>DORA vs. Agentic DORA</strong>.</p><p>It is <strong>DORA + Agentic Engineering Metrics + Reliability + Business Outcomes.</strong></p><p>The real evolution is a shift from asking: <strong><em>“How fast can engineers ship software?” </em></strong>to a much broader question: <strong><em>“How effectively can our engineering system transform intent into reliable, secure, and measurable business outcomes?”</em></strong></p><p>And that engineering system is changing. It is no longer made up of developers alone. It increasingly includes <strong>human engineers, AI coding agents, testing agents, security agents, deployment agents, observability agents, and remediation agents</strong> all working together across the software delivery lifecycle.</p><p>The next generation of engineering leaders may therefore ask more than <strong>“What are our DORA metrics?”</strong></p><p>They will also ask:</p><p><strong>How much of our software delivery lifecycle is autonomous? How reliable and secure is that autonomy? How effectively do humans and AI agents collaborate? And, most importantly, what business outcomes are we creating?</strong></p><p>That is where <strong>Agentic DORA</strong> becomes relevant not as a replacement for DORA, but as an evolution of how we measure engineering performance in an increasingly autonomous software delivery world.</p><p>So, Are DORA Metrics Dead? The answer is <strong>No. But they are evolving.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ede93459b813" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From AIOps to Agentic SRE: How Reliability Is Becoming Autonomous]]></title>
            <link>https://pnerkar.medium.com/from-aiops-to-agentic-sre-how-reliability-is-becoming-autonomous-e56bb54dbf2d?source=rss-93acc8b53177------2</link>
            <guid isPermaLink="false">https://medium.com/p/e56bb54dbf2d</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[service-level-objectives]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[site-reliability]]></category>
            <category><![CDATA[aiops]]></category>
            <dc:creator><![CDATA[Prashant Nerkar]]></dc:creator>
            <pubDate>Sun, 15 Mar 2026 04:40:30 GMT</pubDate>
            <atom:updated>2026-03-15T04:49:44.971Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*uHVOz38o5KJBTgCwQBm8aA.jpeg" /><figcaption>SRE Dashboard</figcaption></figure><h3>The problem we keep running into</h3><p><strong>02:00 Monday:</strong> The healthcare claims dashboard showed a subtle, ominous climb in latency. On paper, the system was perfect, kubernetes pods were green, resources were stable but in reality, hospital and pharmacy submissions were slowing to a crawl. This triggered a cascade of retries, doubling traffic and bloating queues.</p><p><strong>02:05 Monday:</strong> The on-call engineer dove into the logs. After a deep-dive trace, the culprit emerged: a minor update to a downstream validation service had introduced redundant database lookups for specific claim patterns. These “extra milliseconds” compounded into a massive bottleneck. The team immediately triggered a rollback.</p><p><strong>02:35 Monday:</strong> Following a successful rollback at 02:30, all systems were restored and stakeholders were notified.</p><p>While the solution was a simple reversal, the <strong>35-minute diagnostic window</strong> left pharmacies struggling with coverage verification and hospitals facing a massive claims backlog.</p><h3>Introduction</h3><p>Site Reliability Engineering (SRE) is moving past a critical crossroads. For a decade, we have mastered the “how” of infrastructure perfecting observability, automation, and CI/CD. Yet, despite our “green” dashboards, the 2:00 am wake-up calls persist. Reliability still feels like a game of reactive whack-a-mole, and the speed of resolution depends more on an individual engineer’s intuition than on a standardized process. <strong>The reality is that modern systems have outgrown human-centered operations.</strong></p><p>Our shift toward microservices, Kubernetes, and globally distributed architectures has fundamentally changed the nature of failure. Today’s outages are rarely linear or isolated; they are <strong>emergent behaviors</strong> born from a web of dependencies. Because complexity scales exponentially while headcount scales linearly, manual intervention is reaching a breaking point.</p><p>To bridge this gap, we first turned to <strong>Artificial Intelligence for IT Operations </strong>(<strong>AIOps): </strong>applying machine learning to filter noise and flag anomalies. While AIOps helped us identify problems faster, it remained a passive tool. In a world of millisecond-sensitive healthcare and financial systems, simply “seeing” a fire isn’t enough. We are now entering the era of <strong>Agentic SRE</strong>. This represents a fundamental shift in the discipline:</p><ul><li><strong>Traditional SRE:</strong> Humans manage the system using automated tools.</li><li><strong>AIOps:</strong> Machine learning alerts humans to specific patterns.</li><li><strong>Agentic SRE:</strong> Autonomous, goal-driven agents act as “digital teammates.”</li></ul><p>These agents don’t just report an incident; they <strong>reason</strong> through it, execute corrective actions, verify the fix, and refine their own logic for the next event. By shifting from passive detection to active, autonomous resolution, Agentic SRE allows reliability to finally become intentional rather than incidental.</p><h3>AIOps: Helpful, but passive</h3><p>AIOps uses big data, analytics, and machine learning to enhance and automate IT operations. It ingests data from multiple sources to detect anomalies, identify root causes, and automatically resolve issues, reducing downtime, operational costs, and manual effort for IT teams.</p><p>AIOps brought intelligence to operations including identifying and detecting anomaly on metrics, noise reduction and alert correlations, Root-cause suggestions etc.<em> </em>But AIOps largely stops here. <strong>It lets humans decide and act.</strong> That means Humans are still the execution engine, the Mean Time to Resolve (MTTR) is still bounded by human response time and Automation is reactive and scripted. AIOps does <strong>analyze</strong> but modern systems demand something that can <strong>act</strong>.</p><blockquote><em>Reliability is no longer something we respond to it’s something our systems actively maintain.</em></blockquote><h3>Enter Agentic SRE</h3><p>While AIOps offers insights, Agentic SRE uses autonomous agents to act, accelerating incident resolution (MTTR) by up to 90%. The operational problems are driving this shift, and the Agentic SRE is helping to reduce MTTR and Service Level Objectives (SLOs) are becoming the control plane for autonomous reliability. If AIOps was about intelligence, <strong>Agentic SRE is about ownership</strong>: systems that take responsibility for their own reliability, with humans guiding strategy instead of firefighting failures.</p><p><strong>Agentic SRE</strong> is a modern evolution of SRE where AI agents don’t just observe systems they <strong><em>act</em></strong> on them, autonomously and continuously, within well-defined guardrails. Think of it as moving from <strong>“humans with dashboards”</strong> to <strong>“software agents that reason, decide, and execute reliability work.”</strong></p><blockquote><strong>Traditional SRE:</strong> Alert → Human → Diagnose → Fix</blockquote><blockquote><strong>Agentic SRE:</strong> Detect → Reason → Act → Verify → Learn</blockquote><p>From traditional alerting it focuses on <strong>Goals</strong> (SLOs, SLIs, Error Budgets). Instead of passive dashboards left to monitor, it has <strong>Reasoning agents</strong>. From runbook buried into documentation sites or scripts in GitHub, it provides <strong>Decision graphs</strong>. From assigning humans to monitor and execute, it empowers them to <strong>Supervise</strong>. The Agentic systems operate in <strong>closed loops</strong>, not tickets.</p><h3>What makes an SRE system “agentic”?</h3><p>An <strong>Agentic SRE system</strong> is defined by multiple core capabilities that transform how reliability is managed. These capabilities shift SRE from a reactive alert-driven discipline to a proactive, goal-driven reliability model.</p><ul><li>It <strong>observes continuously</strong>, ingesting signals such as metrics, events, logs, traces, deployments, configuration changes, and traffic patterns to maintain real-time awareness.</li><li>It then <strong>reasons over context</strong>, correlating what has changed with what is breaking to understand impact quickly.</li><li>Based on this understanding, the system <strong>acts autonomously</strong> by executing responses such as rollbacks, scaling adjustments, traffic shifts, or throttling.</li><li>It also <strong>verifies outcomes</strong>, ensuring SLOs are restored before declaring the issue resolved.</li><li>Finally, it <strong>learns from incidents</strong>, continuously improving its confidence, policies, and decision-making over time.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xs14yjuV5VuQX_KJaYQFWQ.png" /><figcaption>Agentic SRE Workflow</figcaption></figure><h3>How Agentic SRE reduces MTTR</h3><h4><strong>Use Case #1: Latency Spike Triggered by a Release</strong></h4><ul><li>In a traditional operations model, a sudden increase in system latency typically begins with an alert notification. The on-call engineer responds by reviewing dashboards and logs to identify the root cause. After analyzing recent changes, they often suspect the latest deployment as the source of the issue. A manual rollback is then initiated to restore system performance. This reactive process can take considerable time, resulting in a mean time to recovery (MTTR) of approximately <strong>30 to 60 minutes</strong>.</li><li>In contrast, an agentic operations approach handles the same scenario far more proactively. Instead of waiting for an alert, the system detects abnormal <strong>error budget</strong> consumption early. An intelligent agent automatically correlates the deployment timestamp with the observed latency regression. It conducts a canary comparison, and when performance degradation is confirmed, it triggers an automated rollback. Once the rollback is complete, the system verifies that SLOs are restored. This autonomous and data-driven response significantly reduces the MTTR to <strong>just 3 to 5 minutes</strong>.</li></ul><h4><strong>Use Case #2: Managing a Noisy Tenant in a Multi-Tenant Environment</strong></h4><ul><li>In a multi-tenant system, performance issues can arise when a single customer begins consuming an excessive share of shared resources, unintentionally degrading the experience for other tenants.</li><li>In an agentic operations model, the system continuously monitors performance patterns at the tenant level. When it detects abnormal latency deviations linked to a specific tenant, it analyzes request behavior to confirm the anomaly. Based on this insight, the system can automatically apply throttling controls or isolate the tenant to protect overall system stability. At the same time, it notifies both the account team and the SRE function, ensuring transparency and coordinated follow-up. This proactive and automated intervention minimizes disruption, resulting in near-zero customer impact and effectively negligible mean time to recovery.</li></ul><h4><strong>Use Case #3: Capacity Misprediction During a Traffic Surge</strong></h4><ul><li>In a traditional operations model, sudden traffic spikes often lead to CPU utilization alerts that prompt teams to manually scale infrastructure. This reactive approach introduces the risk of either over-provisioning resources, which increases costs, or under-provisioning, which can degrade system performance and user experience. The response typically depends on human intervention and real-time judgment, making it slower and less precise during rapidly changing demand patterns.</li><li>In an agentic operations model, predictive intelligence continuously analyzes incoming traffic trends and detects early signals of a rising request rate. Based on these insights, the system proactively scales infrastructure before performance degradation occurs. It dynamically adjusts Horizontal Pod Autoscaler (HPA) thresholds to match evolving demand and automatically scales resources back down once the surge subsides. This anticipatory and adaptive response ensures that capacity is always aligned with workload needs, making the entire event effectively invisible to end users, with no noticeable impact on service reliability.</li></ul><h3>SLOs are the control plane of Agentic SRE</h3><p>Agentic systems don’t react to <em>alerts</em>. They optimize against <strong>SLOs and Error Budgets</strong>.</p><p><strong>Example: Defining SLIs and SLOs</strong></p><p>The SLO and SLIs enables <strong>error-budget-based decisions</strong>, such as: Auto-rollback if burn rate &gt; 14×, Pause deployments if budget &lt; 20% and Require human approval for risky actions.</p><pre>service: claims-api<br><br>sli:<br>  name: http_request_latency<br>  metric: http_server_request_duration_seconds_bucket<br>  threshold: &quot;p95 &lt; 300ms&quot;</pre><pre>slo:<br>  name: claims-api-latency<br>  objective: 99.9<br>  window: 30d<br>  error_budget_policy:<br>    fast_burn_threshold: 14<br>    slow_burn_threshold: 2  </pre><p><strong>SLO burn rate calculation: </strong>This is the <strong>decision trigger</strong> for agentic remediation.</p><pre>def burn_rate(error_ratio, slo_target):<br>    error_budget = 1 - slo_target<br>    return error_ratio / error_budget<br><br># Example<br>error_ratio_last_5m = 0.02      # 2% errors<br>slo_target = 0.999             # 99.9% SLO<br><br>rate = burn_rate(error_ratio_last_5m, slo_target)<br><br>if rate &gt; 14:<br>    trigger_auto_remediation()</pre><p><strong>Example: Reasoning agent — </strong>The reasoning agent correlates <strong>deploy events + SLO violation</strong>.</p><pre>def correlate_root_cause():<br><br>    deploy_event = check_recent_deploy()<br><br>    if deploy_event:<br>        return {<br>            &quot;cause&quot;:&quot;recent deployment&quot;,<br>            &quot;action&quot;:&quot;rollback&quot;<br>        }<br><br>    if high_cpu():<br>        return {<br>            &quot;cause&quot;:&quot;resource pressure&quot;,<br>            &quot;action&quot;:&quot;scale&quot;<br>        }<br><br>    return {<br>        &quot;cause&quot;:&quot;unknown&quot;,<br>        &quot;action&quot;:&quot;notify&quot;<br>    }</pre><p><strong>Example: Human-in-the-loop (Slack Alert)</strong></p><pre>import requests<br><br>def notify_oncall(message):<br><br>    webhook=&quot;SLACK_WEBHOOK&quot;<br><br>    requests.post(<br>        webhook,<br>        json={&quot;text&quot;:message}<br>    )<br><br>Example message:<br>  Agent rolled back claims-api due to 18x error budget burn.<br>  Latency recovered within 2 minutes.</pre><h3><strong>Agentic SRE Demo — GitHub Project</strong></h3><p>Coming soon…</p><h3><strong>Conclusion: The future is self-healing (with supervision)</strong></h3><p>The evolution from AIOps to Agentic SRE marks a transition from <strong>informed systems</strong> to <strong>autonomous ones</strong>. While AIOps streamlined how we diagnose failures, Agentic SRE completes the loop by enabling systems to resolve them. This shift isn’t about removing the human element; it’s about elevating it. By delegating routine detection and remediation to intelligent agents, engineers are freed from the toil of the “on-call grind” to focus on high-level strategy, policy definition, and resilient architecture.</p><p>In an era of hyper-complex, distributed environments, relying on human reaction time is no longer a viable scaling strategy. Observability data is only as valuable as the action it triggers. The true leap forward occurs when that data drives <strong>autonomous decision-making</strong>.</p><p>Agentic SRE represents the next frontier of operational intelligence a world where systems: <strong>Continuously monitor</strong> reliability targets in real-time, <strong>Independently reason</strong> through anomalies and execute corrective actions, <strong>Verify recovery outcomes</strong> while escalating only high-risk, strategic decisions to humans. Ultimately, the future of SRE lies in <strong>self-maintaining systems</strong>. By transforming our infrastructure from a passive patient into a self-healing organism, we allow engineers to stop responding to the symptoms of failure and start building the robust, resilient foundations of the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e56bb54dbf2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Revolutionizing Data Platforms: How Generative AI and Agentic Workflows Are Shaping the Future of…]]></title>
            <link>https://pnerkar.medium.com/revolutionizing-data-platforms-how-generative-ai-and-agentic-workflows-are-shaping-the-future-of-f0b7d5262b6d?source=rss-93acc8b53177------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0b7d5262b6d</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[data-platforms]]></category>
            <category><![CDATA[etl-pipeline]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[langgraph]]></category>
            <dc:creator><![CDATA[Prashant Nerkar]]></dc:creator>
            <pubDate>Mon, 29 Dec 2025 04:03:01 GMT</pubDate>
            <atom:updated>2025-12-29T04:30:26.986Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*OgXcmi4MQd2MtsMHLtry3A.jpeg" /></figure><h3>Revolutionizing Data Platforms: How Generative AI and Agentic Workflows Are Shaping the Future of ETL</h3><h3>What is a Data Platform?</h3><p>A data platform is an end‑to‑end technology ecosystem that supports the ingestion, storage, cleansing, transformation, analysis, and governance of data. It blends hardware and software capabilities to help organizations harness their data assets for stronger decision‑making and improved operational performance.</p><p>Common categories include <strong>Enterprise Data Platforms</strong> that centralize and manage structured data, <strong>Big Data Platforms</strong> that process massive datasets in real time using distributed computing, <strong>Cloud Data Platforms</strong> that deliver scalable, pay‑as‑you‑go storage and analytics, and <strong>Customer Data Platforms</strong> that consolidate information from multiple channels to create a unified customer profile. A typical data platform architecture spans data ingestion, storage, transformation, visualization, and analytics, supported by governance, metadata management, and observability layers.</p><p>In sectors like financial services and healthcare, organizations struggle because critical data is fragmented across core banking systems, trading engines, risk platforms, legacy mainframes, and external providers. To remain competitive, they require an automated, intelligent data pipeline that can rapidly, accurately, and compliantly integrate these diverse data sources into a single, trusted ecosystem.</p><h3>How Agentic AI can modernize Data Platform</h3><p>To accelerate data platform modernization, organizations can adopt a Multi‑Agent Platform powered by Large Language Models (LLMs), orchestration frameworks, and agent‑driven workflows such as LangGraph and LangChain. This approach enables automation across critical functions, including data source integration, schema inference and mapping, pipeline generation, continuous monitoring with automated remediation, governance activities like data quality and lineage, and the enforcement of service‑level agreements (SLAs).</p><ul><li><strong>AI agents </strong>streamline complex tasks such as interpreting data structures, mapping fields, and validating data quality capabilities that are especially valuable when dealing with unstructured reports, regulatory filings, or legacy data formats.</li><li><strong>Orchestration</strong> frameworks like Apache Airflow provide dependable, auditable pipelines that align with stringent financial SLAs.</li><li>A <strong>Lakehouse</strong> architecture, combined with technologies such as Spark and Kafka, delivers a scalable and resilient foundation for executing risk models, detecting fraud, supporting regulatory reporting, and enabling real‑time decisioning.</li></ul><h3>Let’s explore an ETL use case specifically targeting schema inference.</h3><blockquote>Schema inference refers to the automated identification of a dataset’s structure, or schema, directly from its source data, eliminating the need for manual definition.</blockquote><p><strong>Scenario</strong>: A major corporation gets customer data in JSON file format which is messy and realistic. It has inconsistent field names (customer_id, id, customerId), mixed date formats and types (age as int and string). It also has missing values and partial names.</p><p>In this example, we’ll compare schema inference in traditional ETL pipelines versus agentic AI pipelines built with LangGraph, followed by sample customer data and code samples for both approaches:</p><p><strong>Sample Customer Data:</strong></p><pre>5001, John Doe, 1992-03-14, Active<br>5002, Nancy Smith,, Inactive:</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*KI_gg91S0TDRiC75-9yKCA.png" /><figcaption>Converted to CSV‑like structure</figcaption></figure><h3>Traditional ETL Schema Inference</h3><p>Traditional <strong>Extract, Transform, and Load (ETL)</strong> tools infer schema using static rules. They scan a dataset (CSV, JSON, Parquet, DB table), applies deterministic rules and produces a fixed schema that must be correct before downstream transformations run.</p><p>The ETL is predictable, deterministic and works well for stable, structured data. It is easy to validate and govern. The traditional ETL breaks when data drifts. It cannot reason about semantic meaning or reconcile conflicting schemas. It requires manual intervention for anomalies and cannot autonomously explore or repair data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*JIX4EEKc4SN5bEVxu705VQ.png" /><figcaption>Traditional ETL Pipeline</figcaption></figure><p><strong>Traditional ETL Inferred Schema (Typical)</strong></p><pre># Create a Spark Session<br>from pyspark.sql import SparkSession<br><br>spark = SparkSession.builder \<br>    .appName(&quot;TraditionalETLSchemaInference&quot;) \<br>    .getOrCreate()<br><br># Read the Raw File (Schema Inference Enabled)<br>df = spark.read \<br>    .option(&quot;header&quot;, &quot;false&quot;) \<br>    .option(&quot;inferSchema&quot;, &quot;true&quot;) \<br>    .option(&quot;delimiter&quot;, &quot;,&quot;) \<br>    .csv(&quot;customers.csv&quot;)<br><br># Print the Inferred Schema<br>df.printSchema()</pre><p><strong>Expected Output:</strong></p><pre>{<br>  &quot;col1&quot;: &quot;integer&quot;,<br>  &quot;col2&quot;: &quot;string&quot;,<br>  &quot;col3&quot;: &quot;string&quot;,<br>  &quot;col4&quot;: &quot;string&quot;<br>}</pre><p>This is how traditional ETL maps data types:</p><ul><li>5001 → integer</li><li>John Doe → string</li><li>1992-03-14 → string (unless date format is explicitly configured)</li><li>Active → string</li></ul><p>The output lacks semantic understanding and recognition that col3 is a date. It has no handling of missing Date of Birth (DOB) or understanding of domain values (“Active”, “Inactive”). The field has no naming and/or validation or drift detection. The traditional ETL treats everything as <strong>columns</strong>, not <strong>concepts</strong>.</p><h3>Agentic AI Schema Inference</h3><p>Modern multi-agent ETL pipeline systems support dynamic collaboration among AI-powered agents. For instance, LangGraph an open-source framework enables agentic workflows where LLM-powered agents can read sample data, infer a unified schema, explain reasoning and output a normalized schema.</p><p>The LangGraph workflow pipeline includes multiple agents: Retrieval Agent, Schema Inference Agent and Transformation Agent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RZGEYrRM2yeuaYtiIppBhQ.png" /><figcaption>LangGraph Pipeline</figcaption></figure><p>This is how Agentic AI maps data types:</p><ul><li>5001 → likely a customer ID</li><li>John Doe → person name</li><li>1992-03-14 → date of birth</li><li>Active / Inactive → status enum</li><li>Missing DOB → nullable field</li></ul><p><strong>AI‑Inferred Schema (Semantic)</strong></p><pre>{<br>  &quot;customer_id&quot;: &quot;integer&quot;,<br>  &quot;full_name&quot;: &quot;string&quot;,<br>  &quot;date_of_birth&quot;: &quot;date|null&quot;,<br>  &quot;status&quot;: &quot;enum[Active, Inactive]&quot;<br>}</pre><p>The AI inferred schema includes semantic field naming, type inference with nullability, enum detection, missing value handling and domain reasoning. It can also generate transformation code, validate and correct data.</p><p><strong>Agentic AI Schema Inference (LangGraph Pipeline)</strong></p><pre># ----- Define State -----<br>from langgraph.graph import StateGraph, END<br>from langchain_openai import ChatOpenAI<br><br>llm = ChatOpenAI(model=&quot;gpt-4o-mini&quot;)<br><br>class DataState(dict):<br>    raw_data: str<br>    parsed_rows: list<br>    inferred_schema: dict<br>    transform_code: str<br><br># ----- Retrieval Agent (Parses Raw Text Into Rows) -----<br>def retrieval_agent(state: DataState):<br>    prompt = f&quot;&quot;&quot;<br>    Parse the following CSV-like text into structured JSON rows:<br>    {state[&#39;raw_data&#39;]}<br>    &quot;&quot;&quot;<br>    response = llm.invoke(prompt)<br>    state[&quot;parsed_rows&quot;] = eval(response.content)<br>    return state<br><br># ----- Schema Inference Agent -----<br>def schema_agent(state: DataState):<br>    prompt = f&quot;&quot;&quot;<br>    Infer a unified schema from this data:<br>    {state[&#39;parsed_rows&#39;]}<br><br>    Provide:<br>    - semantic field names<br>    - data types<br>    - nullability<br>    - enum detection<br>    Output JSON only.<br>    &quot;&quot;&quot;<br>    response = llm.invoke(prompt)<br>    state[&quot;inferred_schema&quot;] = eval(response.content)<br>    return state<br><br># ----- Transformation Agent (Generates Code) -----<br>def transformation_agent(state: DataState):<br>    prompt = f&quot;&quot;&quot;<br>    Generate Python code that transforms the parsed rows into the schema:<br>    {state[&#39;inferred_schema&#39;]}<br><br>    Include:<br>    - field renaming<br>    - date parsing<br>    - null handling<br>    - enum normalization<br>    &quot;&quot;&quot;<br>    response = llm.invoke(prompt)<br>    state[&quot;transform_code&quot;] = response.content<br>    return state<br><br># ----- Build the LangGraph Workflow -----<br>graph = StateGraph(DataState)<br><br>graph.add_node(&quot;retrieve&quot;, retrieval_agent)<br>graph.add_node(&quot;schema&quot;, schema_agent)<br>graph.add_node(&quot;transform&quot;, transformation_agent)<br><br>graph.set_entry_point(&quot;retrieve&quot;)<br>graph.add_edge(&quot;retrieve&quot;, &quot;schema&quot;)<br>graph.add_edge(&quot;schema&quot;, &quot;transform&quot;)<br>graph.add_edge(&quot;transform&quot;, END)<br><br>app = graph.compile()<br><br># ----- Run the Pipeline -----<br>result = app.invoke({<br>    &quot;raw_data&quot;: &quot;&quot;&quot;<br>    5001, John Doe, 1992-03-14, Active<br>    5002, Nancy Smith,, Inactive<br>    &quot;&quot;&quot;<br>})<br><br>print(&quot;Parsed Rows:&quot;, result[&quot;parsed_rows&quot;])<br>print(&quot;Schema:&quot;, result[&quot;inferred_schema&quot;])<br>print(&quot;Transform Code:&quot;, result[&quot;transform_code&quot;])</pre><p><strong>Example Output (AI‑Generated)</strong></p><p>Parsed Rows</p><pre>[<br>  {&quot;id&quot;: 5001, &quot;name&quot;: &quot;John Doe&quot;, &quot;dob&quot;: &quot;1992-03-14&quot;, &quot;status&quot;: &quot;Active&quot;},<br>  {&quot;id&quot;: 5002, &quot;name&quot;: &quot;Nancy Smith&quot;, &quot;dob&quot;: null, &quot;status&quot;: &quot;Inactive&quot;}<br>]</pre><p>Inferred Schema</p><pre>{<br>  &quot;customer_id&quot;: &quot;integer&quot;,<br>  &quot;full_name&quot;: &quot;string&quot;,<br>  &quot;date_of_birth&quot;: &quot;date|null&quot;,<br>  &quot;status&quot;: &quot;enum[Active, Inactive]&quot;<br>}</pre><p>Generated Transformation Code (Excerpt)</p><pre>import datetime<br>def transform(rows):<br>    out = []<br>    for r in rows:<br>        out.append({<br>            &quot;customer_id&quot;: int(r[&quot;id&quot;]),<br>            &quot;full_name&quot;: r[&quot;name&quot;],<br>            &quot;date_of_birth&quot;: (<br>                datetime.datetime.strptime(r[&quot;dob&quot;], &quot;%Y-%m-%d&quot;).date()<br>                if r[&quot;dob&quot;] else None<br>            ),<br>            &quot;status&quot;: r[&quot;status&quot;].capitalize()<br>        })<br>    return out</pre><p><strong>The AI performs the following tasks immediately:</strong> establishing schema, handling nullability, managing enumerations, executing type conversions, generating Spark code, enforcing data quality rules, and creating documentation. Processes that previously demanded significant time are now completed within seconds, allowing engineers to focus on reviewing the generated code and results.</p><h3>Conclusion</h3><p>Traditional Data Platform ETL pipelines employ deterministic schema inference, which is effective for stable and structured data but often fails under real-world conditions such as schema drift, inconsistent naming conventions, mixed data types, and semi-structured sources. As organizations accelerate the adoption of AI, data becomes increasingly dynamic, unstructured, and heterogeneous, rendering previous models inadequate.</p><p>Agentic AI powered by LangGraph offers a fundamentally new approach. These LLM-powered agents interpret data semantics beyond mere syntax, autonomously identifying schema drift, reconciling inconsistencies, and recommending corrective measures. They generate transformation code, validate underlying assumptions, and perform iterative improvements. Additionally, these agents integrate seamlessly with existing ETL, SRE, and ML pipelines, functioning as intelligent co-processors. This evolution transforms schema inference from a fragile, rule-based process into a resilient, AI-driven data quality solution.</p><p>Modern data platforms must accommodate increasing volumes and varieties of data, enabling stakeholders from scientists to managers to access insights quickly for informed decision-making. Robust platforms facilitate exploration, tracking, and analysis of information, allowing organizations to act swiftly on actionable insights. As both the volume and diversity of data streams expand, it becomes imperative for data platforms to advance accordingly. Integrating machine learning and AI capabilities is essential to address evolving requirements and support organizational objectives. Through the use of AI agents, orchestration frameworks, and advanced data engineering tools, institutions can modernize enterprise-wide data extraction, transformation, and governance.</p><p><em>Disclaimer : The code is auto generated using Micorosft CoPilot</em></p><p><strong><em>The statements made here reflect the author’s personal views and should not be interpreted as those of CVS Health or any related organization.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0b7d5262b6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leading with Empathy in the Age of Generative AI]]></title>
            <link>https://pnerkar.medium.com/leading-with-empathy-in-the-age-of-generative-ai-1c74fe81b5a1?source=rss-93acc8b53177------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c74fe81b5a1</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[empathy]]></category>
            <category><![CDATA[building-relations]]></category>
            <category><![CDATA[social-awareness]]></category>
            <category><![CDATA[soft-skills]]></category>
            <dc:creator><![CDATA[Prashant Nerkar]]></dc:creator>
            <pubDate>Sat, 14 Jun 2025 17:10:43 GMT</pubDate>
            <atom:updated>2025-12-29T04:33:51.781Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*oy9KrvtEDbOeUb0kPh-pAg.jpeg" /><figcaption>Image Credit: MS Office</figcaption></figure><p>Generative AI is a type of artificial intelligence that can create new content, such as text, images, music, software code, or video, by identifying patterns from existing data. Unlike traditional AI, which mainly focuses on analyzing or classifying data, generative AI produces outputs that resemble human creativity. Generative AI is being applied in various fields, including marketing, education, healthcare, and software engineering, to improve productivity, automate tasks, and enable creative ventures.</p><p>Gartner Says Generative AI will Require 80% of Engineering Workforce to Upskill Through 2027. It is projecting significant impacts of generative AI on the job market, with some roles becoming obsolete while new ones emerge. While some speculate about AI replacing human workers, Gartner emphasizes that human expertise will remain crucial, especially in complex software development. Organizations are already investing in generative AI, with some using it to generate job descriptions and predict future roles requiring AI oversight.</p><blockquote><strong><em>Nvidia CEO: </em></strong><em>You won’t lose your job to AI — you’ll ‘lose your job to somebody who uses AI</em></blockquote><h3>Key Impacts and Trends:</h3><ul><li>Job Disruption</li><li>Increased Demand for AI Expertise</li><li>Upskilling and Reskilling</li><li>New Roles in Software Engineering and Operations</li><li>Market Growth</li></ul><p>In a world where generative AI is rapidly transforming the workplace, the need for human connection remains unwavering. As leaders, we are not solely navigating technological advancements; we are also guiding individuals through periods of uncertainty, change, and opportunity. While AI can automate tasks and enhance productivity, it cannot supplant empathy, trust, or ethical judgment. Therefore, empathetic leadership becomes increasingly pertinent and essential. How do we maintain empathy when machines increasingly undertake roles traditionally held by humans? Here are some approaches to leading with compassion in the era of intelligent machines.</p><h3>1. Acknowledge the Human Impact of AI</h3><p>AI adoption can bring uncertainty, concerns about job displacement, skill obsolescence, loss of creative control, ethical considerations, and resistance. Instead of enforcing change from the top, it is beneficial to start with listening. It is important to understand that people may be concerned about their roles, identity, and future.</p><ul><li>Listen actively to employees’ concerns without dismissing them.</li><li>Recognize the emotions behind resistance to change.</li><li>Clearly communicate the “why” of AI adoption with transparency.</li></ul><blockquote><em>We hear your concerns. Let’s navigate this transformation together.</em></blockquote><h3>2. Empower Through Learning and Growth</h3><p>Individuals should be provided with opportunities to prosper alongside AI, rather than compete against it. Rather than merely training individuals to endure, focus on empowering them to excel. Assist teams in transitioning from repetitive tasks to roles that necessitate creativity, judgment, and empathy — qualities that AI cannot emulate.</p><ul><li>Invest in reskilling and upskilling programs.</li><li>Facilitate the shift of employees from task-based roles to human-first roles involving creativity, strategy, and relationship-building.</li></ul><blockquote><em>Reskilling isn’t about replacement. It’s about reinvention.</em></blockquote><h3>3. Balance Efficiency with Human Connection</h3><p>Generative AI can write, code, or analyze — but it cannot perform tasks requiring emotional consideration. AI should manage routine tasks, allowing leaders to concentrate on mentoring, coaching, and meaningful conversations. Technology should support relationships rather than diminish them.</p><ul><li>Prioritize human dialogue, judgment, and emotional intelligence.</li><li>Ensure AI complements interpersonal interaction rather than replacing it.</li></ul><blockquote><em>The best use of AI? Giving humans more time to be… human.</em></blockquote><h3>4. Lead with Ethical Responsibility</h3><p>AI presents challenges regarding biases and ethical considerations, while empathy maintains human involvement. It is recommended to avoid deploying generative AI systems that could unintentionally exclude or marginalize users.</p><ul><li>Ask: “Is this fair?” not just “Is this efficient?”</li><li>Ask: “Who benefits?”</li><li>Ask: “Who might be left behind?”</li><li>Include diverse perspectives in AI policy and implementation.</li></ul><blockquote><em>Empathy keeps AI human-aligned — not just data-driven.</em></blockquote><h3>5. Lead with Vulnerability and Openness</h3><p>Effective leaders acknowledge their ongoing learning process. This transparency fosters trust and encourages an environment conducive to curiosity, dialogue, and collective development.</p><ul><li>Avoid professing to have all the answers regarding AI.</li><li>Establish psychological safety, enabling others to ask questions and express uncertainties.</li></ul><blockquote><em>AI is evolving. So are we — together.</em></blockquote><h3>Conclusion</h3><p>The rise of generative AI is inevitable, and it will influence the future of work. Empathy will influence the future of leadership. In this era of machines, humanity becomes a key differentiator. Empathy is not considered a weakness in the AI era; it is seen as the differentiator. While AI handles complexity, humans handle context. While AI scales content, humans scale connection.</p><p>Empathetic leadership ensures AI is used to enhance human aspects of work. By recognizing emotions, investing in people, and making ethical choices, leaders can ensure that AI serves as a tool for progress rather than a source of concern.</p><p><strong><em>The statements made here reflect the author’s personal views and should not be interpreted as those of CVS Health or any related organization.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c74fe81b5a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zero Frustration, Zero Bars: How to Build Mobile Apps That Work Anywhere]]></title>
            <link>https://pnerkar.medium.com/zero-frustration-zero-bars-how-to-build-mobile-apps-that-work-anywhere-dca13560a6f5?source=rss-93acc8b53177------2</link>
            <guid isPermaLink="false">https://medium.com/p/dca13560a6f5</guid>
            <category><![CDATA[mobile-ux]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[offline-mode]]></category>
            <category><![CDATA[network-status]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <dc:creator><![CDATA[Prashant Nerkar]]></dc:creator>
            <pubDate>Tue, 11 Mar 2025 01:46:52 GMT</pubDate>
            <atom:updated>2025-12-29T04:34:24.337Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vln9hBuKpu1OVrXvOgtrFg.jpeg" /></figure><h3>Introduction</h3><p>The churn rate measures how quickly customers stop using your product or service. In mobile apps, it indicates user disengagement. Losing a user isn’t just about lost revenue — it also adds costs for acquiring new users, such as marketing and sales expenses. Churn rate helps businesses assess customer lifetime value (<strong>LTV</strong>) and determine customer acquisition cost (<strong>CAC</strong>). If your LTV-to-CAC ratio is 1:1, your expenses cancel out your value, leaving no profit. That’s why minimizing churn and maximizing user retention are crucial for sustained growth and financial success.</p><blockquote><strong>“Gartner predicts that by 2025, 80% of application usage will involve offline or low-data mode and the offline-first applications will have 30% higher retention rate than online-only apps”.</strong></blockquote><p>Your mobile app should be <strong>responsive, resilient, and intelligent</strong> when handling data requests under poor network conditions.</p><h3>Why Should You Support Low-Data or Zero Network in Mobile Apps?</h3><p>Low-data or Offline-first (Zero Network) applications are built to operate efficiently even with limited or no internet access. Benefits include:</p><ul><li><strong>Enhanced User Experience and Wider Reach:</strong> Users maintain app functionality without the internet, appealing to those in low-connectivity areas or frequent travelers, thus expanding accessibility.</li><li><strong>Boosted Engagement and Retention: </strong>Consistent functionality, regardless of connection, fosters user trust and prolonged engagement, leading to higher retention rates.</li><li><strong>Reduced Battery Usage:</strong> Offline apps minimize battery drain by limiting constant network checks and data retrieval, which are power-intensive.</li><li><strong>Minimized Downtime:</strong> Offline support mitigates disruptions from network outages or server issues, ensuring continuous feature access.</li></ul><h3>Top 10 Use Cases for Applications with Offline Mode</h3><p>Offline functionality is essential for enhancing performance, improving user experience, and ensuring seamless access to data even without an internet connection. Here are ten common use cases where apps benefit from offline support:</p><ol><li><strong>E-commerce Apps: </strong>Cache product details, images, and user preferences to reduce loading times and improve browsing speed.</li><li><strong>Note-Taking Apps: </strong>Allow users to create, edit, and store notes locally, syncing them with the cloud when online.</li><li><strong>News Apps: </strong>Save articles and user preferences, enabling offline reading of previously loaded content.</li><li><strong>Banking Apps: </strong>Securely store temporary session tokens and essential transaction data for quick access.</li><li><strong>Password Managers: </strong>Encrypt and store login credentials locally for secure offline access.</li><li><strong>Video Streaming Apps: </strong>Let users download and watch videos offline, reducing dependency on network availability.</li><li><strong>Social Media Apps: </strong>Save draft posts, messages, and media files locally until they can be uploaded.</li><li><strong>Fitness Apps: </strong>Track workouts, steps, and health metrics offline, syncing data with cloud services later.</li><li><strong>Project Management Apps: </strong>Store tasks, deadlines, and notes locally to ensure productivity in low-connectivity areas.</li><li><strong>AI-Powered Apps: </strong>Use locally stored machine learning models for handwriting recognition, image processing, or speech-to-text without an internet connection.</li></ol><p>By implementing offline capabilities, apps can provide a smooth, uninterrupted user experience, minimize data usage, and ensure reliability in areas with poor or no network coverage.</p><h3>Optimizing User Experience in Low-Data or Zero Network Scenarios</h3><p><strong>1. Clear Offline Communication and Network Status:</strong></p><ul><li><strong>Informative Offline Mode:</strong> When connectivity is lost, display a user-friendly message or progress indicator to acknowledge the situation and provide reassurance.</li><li><strong>Real-time Network Feedback:</strong> Alert users to “Poor Connection” or similar messages when data loading is delayed, setting expectations and prompting potential action.</li></ul><p><strong>2. Efficient Image Loading:</strong></p><ul><li><strong>Optimized Image Sizes:</strong> Utilize low-resolution images for faster loading on slow networks, reducing data consumption.</li><li><strong>Progressive Image Loading:</strong> Implement progressive loading, where images initially appear blurry and sharpen as more data is received, providing a faster-perceived loading time.</li></ul><p><strong>3. Strategic Data Loading and Navigation:</strong></p><ul><li><strong>Lazy Loading:</strong> Load data only when needed, minimizing initial load times and bandwidth usage.</li><li><strong>Pagination:</strong> Break large datasets into smaller, manageable chunks to improve performance. Load the first page initially and load subsequent pages as the user scrolls or navigates.</li></ul><p><strong>4. Local Data Management and Synchronization:</strong></p><ul><li><strong>User Defaults:</strong> UserDefaults is a lightweight solution for storing small pieces of data like settings or preferences. It should not be used for large datasets.</li><li><strong>File System Storage: </strong>For storing large files, such as images or videos, the iOS file system is a good choice. Developers can manage these files in directories within the app’s sandboxed environment.</li><li><strong>Local Caching:</strong> Store user actions (e.g., adding to cart) locally using databases like <strong>Core Data or SQLite</strong> when offline. Synchronize these actions automatically when connectivity is restored. Developers can implement caching with tools such as <strong>NSCache</strong> or third-party libraries like <strong>SDWebImage</strong> for images.</li><li><strong>Pre-Caching Essential Data:</strong> Pre-download and store critical data (e.g., product categories, banners, user data) when the app launches to enable offline functionality.</li></ul><p><strong>5. Robust API Call Handling:</strong></p><ul><li><strong>Retry Mechanisms with Exponential Backoff:</strong> Implement retry logic for API calls in poor network conditions, incorporating delays and exponential backoff strategies to prevent overwhelming the server. <strong>Example:</strong> Implement a backoff strategy where retry delays increase exponentially (e.g., 2 seconds, 4 seconds, 8 seconds), preventing repeated failures in rapid succession.</li><li><strong>User-Initiated Retry:</strong> Provide a “Retry” button to allow users to manually reload data when network conditions improve.</li></ul><h3>Data Synchronization</h3><p>Data synchronization ensures that changes made to local data while offline are correctly reflected on the server once the device goes online. The key to a successful offline-first app is selecting an approach that balances reliability, efficiency, and performance. Before initiating a sync, verify that the device has a network connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*xUukdJoKiKkWtdQ38EneYA.png" /><figcaption>Figure 1: Offline First architecture</figcaption></figure><ul><li><strong>Pull-based Sync: </strong>This approach is more suitable for apps where updates are less time-sensitive and can be synchronized periodically. Example: For the iOS app, the app periodically checks for updates from the server (using REST API) at predefined intervals (e.g., every 10 minutes), fetches any changes, and then updates the local Datastore (e.g. Apple Core Data).</li><li><strong>Push-based Sync: </strong>In this approach, the mobile application pushes changes to the server when the device reconnects. This is ideal for apps where updates need to be sent immediately upon reconnection. E.g. Use <strong>NSManagedObjectContextDidSave</strong> notifications to detect changes in iOS Core Data.</li><li><strong>Hybrid Sync: </strong>Combining both push and pull approaches, hybrid synchronization enables immediate pushing of updates and periodic checks for incoming updates.</li></ul><h3>Securing Local Data Storage &amp; Caching</h3><p>By applying encryption and secure data handling practices, you can effectively safeguard PHI and PII in a mobile app. These measures help ensure compliance with HIPAA and GDPR while protecting user privacy. To secure local storage data in an iOS app, apply multiple layers of security such as:</p><p><strong>iOS Apps:</strong></p><ul><li>Store sensitive data (Passwords, Tokens, Encryption Keys) in <strong>Apple’s Keychain</strong></li><li>Encrypt <strong>Core Data SQLite</strong> using File Protection (Apple’s Built-in Security) or SQLCipher for Full Database Encryption.</li><li>Protect user-generated files (e.g., PDFs, images, logs) by applying iOS <strong>File Protection</strong> (AES encryption)</li><li>Store encryption keys in <strong>Secure Enclave</strong>, ensuring they never leave the device.</li></ul><p><strong>Apple Secure Enclave:</strong> <a href="https://support.apple.com/guide/security/secure-enclave-sec59b0b31ff/web">https://support.apple.com/guide/security/secure-enclave-sec59b0b31ff/web</a></p><p><strong>Apple Keychain:</strong> <a href="https://support.apple.com/guide/security/keychain-data-protection-secb0694df1a/web">https://support.apple.com/guide/security/keychain-data-protection-secb0694df1a/web</a></p><p><strong>Android Apps:</strong></p><ul><li>Store sensitive data (passwords, tokens, encryption keys) using Android’s <strong>EncryptedSharedPreferences</strong> (AES-256 encryption).</li><li>Encrypt <strong>SQLite</strong> databases using SQLCipher to prevent unauthorized access.</li><li>Use Android’s <strong>EncryptedFile API</strong> to encrypt user-generated files (PDFs, images, logs) with AES-256-GCM encryption.</li><li>Store encryption keys in <strong>Android Keystore</strong>, ensuring they remain hardware-backed and inaccessible to apps or users.</li></ul><p><strong>Android Keystore:</strong> <a href="https://developer.android.com/privacy-and-security/keystore">https://developer.android.com/privacy-and-security/keystore</a></p><p><strong>Android Trusty:</strong> <a href="https://source.android.com/docs/security/features/trusty">https://source.android.com/docs/security/features/trusty</a></p><h3>Key Challenges in Implementing Offline-First Apps</h3><ul><li><strong>Synchronization Complexity:</strong> Inconsistent data synchronization can lead to conflicts, data loss, and a degraded user experience. Maintaining parity between local and remote data is a significant technical hurdle. Last Write Wins (LWW) is the final update overriding any previous changes.</li><li><strong>Data Integrity Assurance:</strong> Ensuring data accuracy across devices during synchronization is critical to prevent inconsistencies and maintain reliability. Versioning for each record with a timestamp is necessary.</li><li><strong>Managing Network Variability:</strong> Adapting to fluctuating network conditions during data synchronization presents a significant challenge, requiring robust error handling and conflict resolution strategies.</li><li><strong>Storage Optimization:</strong> Limited storage capacity on iOS devices necessitates efficient local data management to prevent excessive storage consumption.</li></ul><h3>Conclusion</h3><p>In conclusion, embracing an offline-first approach and building offline-first mobile applications has become essential in modern app development, ensuring seamless functionality regardless of network connectivity. This capability enhances user experience, boosts retention rates, and expands usability for both enterprise and consumer-focused apps. Ultimately, adopting an offline-first strategy for mobile application development is not optional, but crucial for sustained success in today’s mobile-driven landscape.</p><p>By prioritizing a smooth user experience even in challenging network conditions, developers can significantly reduce churn, attract a wider audience, and cultivate deeper engagement. While implementing offline features presents obstacles, the substantial long-term advantages for user satisfaction and business growth make it a strategic necessity. Utilizing the best practices outlined in this guide allows developers to create resilient applications that excel in network-constrained environments, delivering exceptional value and securing a competitive edge.</p><p><strong><em>The statements made here reflect the author’s personal views and should not be interpreted as those of CVS Health or any related organization.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dca13560a6f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Small but Mighty: How Open-Source Small Language Models Are Redefining AI]]></title>
            <link>https://pnerkar.medium.com/small-but-mighty-how-open-source-small-language-models-are-redefining-ai-260957e15bb6?source=rss-93acc8b53177------2</link>
            <guid isPermaLink="false">https://medium.com/p/260957e15bb6</guid>
            <category><![CDATA[open-source-ai]]></category>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[small-language-model]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Prashant Nerkar]]></dc:creator>
            <pubDate>Sun, 09 Feb 2025 21:05:56 GMT</pubDate>
            <atom:updated>2025-12-29T04:34:41.979Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FMcGU5SuPrqfqBbzy5z7_g.jpeg" /></figure><h3>Introduction</h3><p>The launch of DeepSeek’s R1, an open-source reasoning model designed to challenge OpenAI’s O1, highlights a critical shift in the AI landscape. However, the launch triggered a sharp decline in market values for major chipmakers, with Nvidia losing nearly <strong>$600 billion</strong> in market capitalization and the Nasdaq index dropping over 3%. Broadcom and TSMC also faced notable losses, reflecting investor concerns about reduced demand for high-performance computing infrastructure.</p><p>While R1 promises a more cost-effective and energy-efficient approach, it is also emblematic of a larger trend toward small, open-source language models that are gaining momentum globally. The <strong>Large Language Models (LLMs) </strong>such as OpenAI’s GPT and Google’s PaLM are immensely powerful, their high computational requirements make them less suitable for smaller-scale applications. This is where <strong>Open-Source Small Language Models (SLMs)</strong> excel, offering a lightweight, cost-efficient, and customizable alternative for developers aiming to incorporate NLP (Natural Language Processing) capabilities into their projects.</p><blockquote>“The age of AI is in full steam, propelling a global shift to NVIDIA computing,” said Jensen Huang, founder and CEO of NVIDIA.</blockquote><p>This article delves into how Open-Source SLMs are transforming industries by providing a cost-effective, efficient, and adaptable solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2DYYJ5itnvWPLq8ROM0qwg.png" /><figcaption>Figure 1: LLM Landscape: <a href="https://arxiv.org/html/2409.15790">https://arxiv.org/html/2409.15790</a></figcaption></figure><h3>What are Small Language Models?</h3><p>The SLMs are developed through model compression techniques such as knowledge <strong>distillation</strong>, <strong>pruning</strong>, and <strong>quantization</strong>. These methods condense a larger pre-trained model by transferring its core knowledge to a smaller “<strong>student</strong>” model, guided by a “<strong>teacher</strong>” model. This results in a more efficient model that maintains strong performance while requiring significantly less computational power.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sKzWAFF8YKckut1TaSLxVQ.png" /><figcaption>Image Source: <a href="https://arxiv.org/pdf/2006.05525">https://arxiv.org/pdf/2006.05525</a></figcaption></figure><ul><li><strong>Distillation:</strong> A technique where a large pre-trained model (teacher) trains a smaller model (student) to replicate its patterns and outputs, enabling knowledge transfer while reducing complexity.</li><li><strong>Pruning:</strong> The process of eliminating redundant neurons or connections in a neural network, reducing model size while preserving essential functionality.</li><li><strong>Quantization:</strong> A method that decreases the precision of model weights, minimizing memory usage and computational requirements without significantly affecting performance.</li></ul><h3>How Small Language Models Work?</h3><p>The SLMs work by using model compression techniques to reduce the size of a large pre-trained model while maintaining strong performance. Here’s how they generally work:</p><ul><li><strong>Train a Large Language Model:</strong> A high-capacity language model is initially trained on a vast dataset of text and code.</li><li><strong>Distillation Process:</strong> A smaller model learns to replicate the outputs of the larger model, capturing essential patterns and knowledge from its “teacher.”</li><li><strong>Pruning and Quantization:</strong> To minimize size and computational demands, the smaller model is optimized by removing redundant components (pruning) and reducing weight precision (quantization).</li></ul><h3>Real-World Applications of Small Language Models</h3><ul><li><strong>Sentiment Analysis: </strong>Analyze customer feedback in real time for actionable insights.</li><li><strong>Summarization: </strong>Generate concise summaries for articles, legal documents, or research papers.</li><li><strong>Customer Support Chatbots: </strong>Enable<strong> </strong>domain-specific assistants on web servers/edge devices.</li><li><strong>Content Moderation: </strong>Detect inappropriate content in social forums with minimal infrastructure.</li><li><strong>Language Translation: </strong>Provide quick and reliable translations for low-resource languages.</li></ul><h3>Popular Open-Source Small Language Models</h3><p>The SLMs are built for lightweight applications that demand fewer computational resources, while still offering robust NLP capabilities. These models are well-suited for edge devices, mobile apps, and environments with limited resources. They are popular for their efficiency, accessibility, and ability to carry out NLP tasks with minimal computational overhead.</p><ul><li><strong>DistilBERT </strong><a href="https://huggingface.co/distilbert/distilbert-base-uncased">https://huggingface.co/distilbert/distilbert-base-uncased</a></li><li><strong>Phi </strong><a href="https://azure.microsoft.com/en-us/products/phi">https://azure.microsoft.com/en-us/products/phi</a></li><li><strong>Gemma </strong><a href="https://ai.google.dev/gemma">https://ai.google.dev/gemma</a></li><li><strong>LLaMA </strong><a href="https://ai.meta.com/open/">https://ai.meta.com/open/</a></li></ul><blockquote>Open-source SLMs can offer competitive results with significant performance consistency improvements and a cost reduction of 5x to 29x compared to proprietary LLMs like OpenAI’s GPT-4 (<a href="https://arxiv.org/abs/2312.14972">https://arxiv.org/abs/2312.14972</a>)</blockquote><h3>Why Use Open-Source Small Language Models?</h3><p>The open-source SLMs offer several advantages over their larger, proprietary counterparts, particularly for researchers, developers, and organizations with limited resources. Here are some specific examples and metrics related to the advantages of SLMs:</p><p><strong>Cost-Effective Deployment:</strong></p><ul><li><strong><em>Example</em></strong><em>: A healthcare startup uses </em><strong><em>DistilBERT</em></strong><em> (a smaller, distilled version of BERT) to deploy a sentiment analysis tool for patient feedback. The cost of deploying a large model like </em><strong><em>BERT</em></strong><em> would require high-end GPUs or TPUs. In contrast, using DistilBERT reduces deployment costs, requiring less memory and computational power, resulting in an annual infrastructure.</em></li></ul><p><strong>Customizability and Flexibility:</strong></p><ul><li><strong><em>Example</em></strong><em>: A financial services company fine-tunes </em><strong><em>LLaMA</em></strong><em> on its proprietary customer support data to handle common queries in banking services. Using fine-tuning techniques like </em><strong><em>PEFT </em></strong><em>(Parameter-Efficient Fine-Tuning) and </em><strong><em>LORA</em></strong><em> (Low-Rank Adaptation) allows the company to tailor the model without needing vast computing resources or extensive labeled data.</em></li></ul><p><strong>Privacy and Security:</strong></p><ul><li><strong><em>Example</em></strong><em>: A law firm deploys </em><strong><em>Gemma</em></strong><em> locally to process confidential legal documents. Keeping the model offline ensures that no sensitive client data is transmitted externally, adhering to strict confidentiality agreements and legal compliance regulations. On-premises deployments of SLMs can reduce data leakage risks compared to cloud-based solutions where data may be subject to unauthorized access.</em></li></ul><p><strong>Faster Performance:</strong></p><ul><li><strong><em>Example</em></strong><em>: A mobile app in a low-connectivity region utilizes </em><strong><em>DistilBERT</em></strong><em> for text classification tasks. The app, running on mid-range mobile devices, can process queries in </em><strong><em>milliseconds</em></strong><em>, whereas the same task on a large model like BERT would take </em><strong><em>seconds</em></strong><em>.</em></li></ul><p><strong>Transparency and Trust:</strong></p><ul><li><strong><em>Example</em></strong><em>: A research lab uses </em><strong><em>LLaMA</em></strong><em> for scientific text generation. The lab can examine the open-source model’s code, contribute improvements, and identify potential biases or issues with data, creating a transparent process that builds trust in the model’s outputs.</em></li></ul><p><strong>Democratizing AI:</strong></p><ul><li><strong><em>Example</em></strong><em>: A university in a developing country uses </em><strong><em>DistilBERT</em></strong><em> for a translation project that aids in educational content translation. By using the open-source model, the university avoids expensive API services and provides free access to quality translation tools for the local community.</em></li></ul><h3>Domain-Specific Small Language Models</h3><p>Domain-specific SLMs are AI models tailored for specific fields like <strong>finance</strong>, <strong>healthcare</strong>, <strong>law</strong>, or <strong>research</strong>. They are pre-trained and/or fine-tuned to excel at understanding and generating domain-specific text, offering higher accuracy than general-purpose models. Building a domain-specific language model can be done in two ways :</p><p><strong>Training from scratch</strong> — using unlabeled domain data in a self-supervised framework, is resource-intensive and requires high-quality datasets.</p><p><strong>Fine-tuning</strong> — involves adapting a pre-trained model like DistilBERT or LLaMA for a specific use case. For example, in the healthcare domain, fine-tuning can make the model proficient in medical terminology, allowing it to perform tasks like summarizing medical notes. A simplified example of fine-tuning:</p><ul><li><em>Start with a pre-trained model (e.g., DistilBERT).</em></li><li><em>Fine-tune on a dataset containing medical records and annotations, such as a dataset of doctor-patient interactions.</em></li><li><em>The model learns to interpret domain-specific terms while retaining its general language understanding</em></li></ul><h3>GitHub Repo:</h3><p>To test the functionality of the Open-source SLMs, we will experiment with DistilBERT and<strong> </strong>Llama 3. The models are downloaded from their websites and installed on MacBook Apple M3 Pro, Sonoma, 18 GB.<em> </em><a href="https://github.com/prashantnerkar/GenAI">https://github.com/prashantnerkar/GenAI</a></p><blockquote>According to a report from SemiAnalysis.com, it costs approximately $700,000 per day to run ChatGPT.</blockquote><h3>Scenario #1: Enhancing Customer Service with Sentiment Analysis in Credit Card Finance</h3><p>A Credit Card Finance Company uses sentiment analysis to improve customer service by analyzing feedback on credit card services, payments, interest rates, and rewards. The analysis classifies customer sentiment as positive, negative, or neutral, helping prioritize issues and identify areas for improvement. By automating this process, reviews and complaints are quickly assessed, allowing the company to focus on negative feedback and track shifts in customer satisfaction. The company uses the <strong>DistilBERT</strong> SLM for sentiment classification of customer reviews.</p><pre># Load pre-trained model and tokenizer<br>model_name = &quot;distilbert-base-uncased&quot;<br>tokenizer = DistilBertTokenizer.from_pretrained(model_name)<br>model = DistilBertForSequenceClassification.from_pretrained(model_name, num_labels=2)<br><br># Function to perform sentiment analysis<br>def analyze_sentiment(review):<br>    inputs = tokenizer(review, return_tensors=&quot;pt&quot;, truncation=True, padding=True, max_length=512)<br>    with torch.no_grad():<br>        outputs = model(**inputs)<br>    logits = outputs.logits<br>    sentiment = torch.argmax(logits, dim=1).item()<br>    return &quot;Positive&quot; if sentiment == 1 else &quot;Negative&quot;</pre><pre>Review: The foreign transaction fees are too high.<br>Sentiment: Negative<br><br>Review: I like the travel rewards.<br>Sentiment: Positive<br><br>Review: The card offers good rewards on fitness memberships.<br>Sentiment: Positive</pre><h3>Scenario #2: Improving Patient Communication with Automated Medical Document Summarization</h3><p>A medical clinic aims to enhance communication between healthcare professionals and patients by implementing an automated system that summarizes complex medical documentation into simpler, more understandable summaries for patients. This system uses the <strong>LLaMA</strong> SLM to generate concise summaries of medical notes, diagnoses, and treatment plans.</p><pre># Initialize the LLaMA 3.2 model<br>llm = OllamaLLM(model=&quot;llama3.2&quot;)<br><br># Define prompt template for summarization<br>prompt = PromptTemplate(<br>    input_variables=[&quot;document&quot;],<br>    template=&quot;Summarize the following medical documentation:\n{document}\nProvide a brief and concise summary.&quot;<br>)<br><br># Create LLM chain for summarization<br>summarization_chain = LLMChain(llm=llm, prompt=prompt)</pre><pre>Medical Document Summary:<br>Here&#39;s a simplified explanation of the patient&#39;s medical history:<br><br>A 56-year-old man has been having chest pain and trouble breathing when he exercises. He also has high blood pressure, diabetes, and high cholesterol. The doctor thinks his heart is not getting enough blood because of blocked or narrow arteries, which can cause stable angina.<br><br>The doctor will help him with medication to reduce the strain on his heart and make lifestyle changes such as eating a healthier diet and exercising safely.</pre><h3>Evaluating Models and Datasets</h3><p>Evaluating machine learning models and datasets is essential to ensure reliability and accuracy, helping to identify issues like <strong>bias</strong>, <strong>overfitting</strong>, and <strong>data quality</strong> problems. This process aids in selecting the best model, optimizing its parameters, and understanding its limitations.</p><p>Hugging Face’s Evaluate library provides various evaluation methods across domains such as computer vision, NLP, and reinforcement learning. <a href="https://huggingface.co/docs/evaluate/index">https://huggingface.co/docs/evaluate/index</a></p><h3>Open-Source Small Language Model Considerations</h3><ul><li><strong>When to Use Open-Source SLMs:</strong> Open-source SLMs are best suited for scenarios where resource efficiency, privacy, and cost-effectiveness are essential, and the tasks are straightforward and less complex. They excel in real-time applications, edge devices, and specific domains where fine-tuning can improve their performance.</li><li><strong>When to Avoid:</strong> For applications demanding high accuracy, advanced reasoning, or complex language understanding — such as complex conversations, detailed content generation, or multi-modal tasks — a larger, more powerful model may be required.</li></ul><h3>Conclusion</h3><p>In conclusion, open-source SLMs are revolutionizing the AI field by making NLP capabilities more accessible, efficient, and adaptable. As advancements in model compression techniques and architecture continue, SLMs will become even more capable, providing solutions for industries ranging from healthcare to finance.</p><p>Moving forward, we expect these models to bridge the gap between large-scale models and real-time, cost-efficient applications, opening new possibilities for AI-driven innovations across the globe.</p><p><strong><em>The statements made here reflect the author’s personal views and should not be interpreted as those of CVS Health or any related organization.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=260957e15bb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing Observability Telemetry Data]]></title>
            <link>https://pnerkar.medium.com/securing-observability-telemetry-data-601e71b7fdae?source=rss-93acc8b53177------2</link>
            <guid isPermaLink="false">https://medium.com/p/601e71b7fdae</guid>
            <dc:creator><![CDATA[Prashant Nerkar]]></dc:creator>
            <pubDate>Sat, 05 Oct 2024 02:02:53 GMT</pubDate>
            <atom:updated>2025-12-29T04:39:17.884Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M1cozuPpCbkXPVDL" /></figure><h3>Introduction</h3><p>In today’s IT landscape, enterprise systems are highly complex, consisting of dynamic and distributed components such as networks, firewalls, on-premises and cloud-based hardware, and software applications. To ensure smooth operation, these systems require comprehensive monitoring and analysis to understand their behavior across various scenarios.</p><p>IT teams face the ongoing challenge of managing frequent updates to both hardware and software while tracking system performance across different environments and responding to incidents in real-time. With customers expecting 24/7 support and uptime, it becomes essential to provide a streamlined approach for collecting and analyzing data from diverse products. This empowers customers to make informed decisions and stay competitive in the rapidly evolving digital world.</p><h3>Why is Telemetry important?</h3><p><strong>Telemetry</strong>, derived from “tele” (remote) and “metron” (measure), refers to the automated collection and transmission of data such as logs, metrics, events, and traces from remote sources to a central system. This data is used for monitoring, analysis, decision-making, performance optimization, and resource management. Telemetry relies on sensors, communication systems, and monitoring tools to gather and interpret the data, providing critical insights into system operations and behavior.</p><p>Telemetry data is typically categorized into four primary types, collectively known as <strong>MELT</strong>: Metrics, Events, Logs, and Traces.</p><p><strong>Metrics</strong>: Aggregated measurements that indicate system performance over time, helping to track trends and patterns.</p><p><strong>Events</strong>: Data related to specific occurrences within the environment, capturing the details of activities or changes.</p><p><strong>Logs</strong>: Automatically generated, timestamped records that document system or application events for troubleshooting and analysis.</p><p><strong>Traces</strong>: Hierarchically organized spans of timestamped data that represent application activity, providing insights into system behavior and dependencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*dFLePko8S0dAVJTHYK1UDg.png" /><figcaption>Three Pillars of Observability</figcaption></figure><p>Telemetry data is often raw, dispersed, and available in various types — both structured and unstructured data formats. In its disaggregated form, it holds little value. However, when this data is aggregated, correlated, and enriched with the right context, it provides a comprehensive view of the interactions between an organization’s applications, networks, servers, and data, including insights into security risks and threats. By leveraging this aggregated data, IT operations, security, and compliance teams can detect anomalies, identify abnormal activities, generate timely alerts to prevent incidents, and assist in root cause analysis for faster resolution.</p><blockquote>“Security isn’t something you buy, it’s something you do, and it takes talented people to do it right.”</blockquote><h3>Securing Telemetry Data</h3><p>Deriving value from telemetry data involves more than just collecting it. Telemetry has the potential to enable a wide range of insights and actions, but only if you understand the type of data to collect and gather it efficiently. The telemetry pipeline has four major steps:</p><p>1. <strong>Collect</strong>: Identify telemetry requirements, data sources, and transmission protocols.</p><p>2. <strong>Transform</strong>: Scrub sensitive data such as PII / PHI to align with compliance standards.</p><p>3. <strong>Enrich</strong>: Enrich and augment data for better context.</p><p>4. <strong>Route</strong>: Intelligently route data to any observability, analytics, or visualization platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*UCdKGdO28M6pEb4GHZSVXQ.png" /><figcaption>Observability Telemetry Pipeline</figcaption></figure><p>Securing telemetry data is crucial to protect sensitive information and ensure the integrity and availability of your monitoring systems. Unsecured telemetry data is an easy target for any malicious actor looking to exploit weaknesses and dependencies within an organization’s enterprise applications or systems. Here are ten essential questions to ask about your telemetry pipeline to ensure its effectiveness, security, and efficiency:</p><p>1. What <strong>encryption</strong> techniques are employed to secure your data in transit and at rest?</p><p>2. How do you <strong>authorize</strong> users to access telemetry data?</p><p>3. What <strong>protocols</strong> are utilized for data collection and transmission, and are they secure?</p><p>4. Are you maintaining <strong>audit</strong> <strong>logs</strong> for access to telemetry data and configuration changes?</p><p>5. What algorithms are implemented to ensure the <strong>integrity</strong> of telemetry data?</p><p>6. Is the telemetry data isolated and <strong>secured</strong> from your network to reduce the attack surface?</p><p>7. Are you conducting <strong>security audits</strong> to identify and remediate software vulnerabilities?</p><p>8. How do you scrub or filter <strong>sensitive data</strong>, such as PII and/or PHI?</p><p>9. How is your telemetry data backed up, and are those <strong>backups</strong> securely stored?</p><p>10. Do you have an <strong>incident response plan</strong> in place for security incidents involving telemetry data?</p><p>Implementing a well-defined and robust strategy can significantly enhance the security of your telemetry data, ensuring it remains protected from unauthorized access and tampering.</p><h3>Conclusion</h3><p>To ensure the security of telemetry data, it is crucial to adopt a multi-layered approach that includes encryption, strong authentication, and access control mechanisms. Protecting data both in transit and at rest is essential for preventing unauthorized access and tampering, while tools such as checksums and signed metadata help safeguard data integrity. Implementing secure communication channels, monitoring access logs, and utilizing role-based access control further mitigate risks. Additionally, adhering to regulatory requirements and adopting practices like zero-trust architecture provides an extra layer of security, ensuring that observability data remains confidential, intact, and accessible only to authorized users.</p><p>The collection and analysis of telemetry data have transformed IT systems monitoring by providing vital insights into system performance and health, enabling IT teams to proactively identify and address issues. As innovations in generative AI, large language models (LLMs), and edge computing emerge, the power of telemetry will expand, allowing for more advanced data collection and analysis techniques. As these technologies progress, telemetry will remain an essential component of effective IT management, serving as a cornerstone for system monitoring and health assessments.</p><p><strong><em>The statements made here reflect the author’s personal views and should not be interpreted as those of CVS Health or any related organization.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=601e71b7fdae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vector Databases Unveiled: A Beginner’s Guide to Data Navigation]]></title>
            <link>https://pnerkar.medium.com/vector-databases-unveiled-a-beginners-guide-to-data-navigation-95fa3b3e0fe6?source=rss-93acc8b53177------2</link>
            <guid isPermaLink="false">https://medium.com/p/95fa3b3e0fe6</guid>
            <category><![CDATA[vector-embeddings]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[similarity-search]]></category>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[rags]]></category>
            <dc:creator><![CDATA[Prashant Nerkar]]></dc:creator>
            <pubDate>Mon, 13 May 2024 22:37:20 GMT</pubDate>
            <atom:updated>2025-12-29T04:35:51.659Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*4mJ-y_iLhtbpfffyCH1BbQ.png" /></figure><h3>Introduction</h3><p>In today’s data-centric environments, the demand for efficient and scalable database solutions has never been higher. The rise of Generative AI and Large Language Models (LLM) has highlighted the need for managing unstructured data effectively. Traditional databases often struggle with such data types, but the advent of Vector database technology represents a significant leap forward. Rooted in neural networks, these databases excel at navigating complex data structures, making them indispensable in modern data management.</p><blockquote>According to Gartner, over 30% of enterprises are expected to integrate vector databases by 2026, leveraging them to support essential business models with critical data.</blockquote><p>This article explores the realm of vector databases, diving into their internal mechanisms, sample code, the landscape of vector databases, factors influencing selection, and more.</p><h3>Understanding Vector Databases</h3><p>Vector databases diverge from conventional relational databases like PostgreSQL, designed for organizing tabular data into rows and columns. They also stand apart from modern NoSQL databases such as MongoDB, which store data in JSON format.</p><p>Vectors constitute arrays of numerical values capable of representing intricate unstructured entities such as words, images, videos, and audio, generated through machine learning (ML) models. Specializing in the storage and retrieval of unstructured data, vector databases leverage high-dimensional numerical representations referred to as vector embeddings. Renowned for their proficiency in similarity searches, these databases employ methodologies like the approximate nearest neighbor (ANN) algorithm.</p><h3>Internal Working of Vector Databases</h3><p>At their core, vector databases harness sophisticated algorithms and data structures to optimize the storage and retrieval of high-dimensional vectors. They commonly utilize indexing methods like inverted indexes, tree-based structures, or hashing algorithms to expedite search functions. Furthermore, vector databases may capitalize on specialized hardware such as GPUs or TPUs to boost computational efficiency, particularly for deep learning endeavors. Leveraging the parallel processing prowess of these accelerators markedly enhances performance while mitigating query latency.</p><p>Vector databases rely on algorithms like <strong>Random Projection</strong>, <strong>Product Quantization</strong>, <strong>Locality-sensitive hashing</strong>, and <strong>Hierarchical Navigable Small World </strong>(HNSW) to manage data efficiently. These algorithms form the backbone of similarity measures, essential for comparing and identifying the most pertinent results for a query. Various similarity measures, such as <strong>Cosine similarity</strong>, <strong>Euclidean distance</strong>, and <strong>Dot product</strong>, play crucial roles in this process.</p><p>Before delving into the sample code, it’s imperative to grasp the underlying mechanics. Let’s initiate with a basic example illustrating “<strong>Cosine similarity</strong>.”</p><p>Consider a dataset comprising nine (9) elements requiring categorization based on their alignment within a two-dimensional reference frame, characterized by X and Y axes. Each element occupies coordinates within this spatial layout, allowing us to gauge the resemblance between vectors, or more precisely, their similarity. This comparison technique is technically termed cosine similarity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lA2WkXrz0PwKzqcLYUVJZQ.png" /><figcaption>Vector Similarities</figcaption></figure><p>Here, I’ve established a distance metric between “Mango” and “Cat,” indicating a weak similarity, whereas the similarity between “Mouse” and “Dog” is stronger, and even stronger between “Dog” and “Cat.” To recap, our data will be transformed into vector spaces, positioning them in proximity or distance from others based on their similarity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*mH0eM4vQ02NDYms51dLnxw.png" /><figcaption>Reference: wikipedia</figcaption></figure><p>The cosine formula utilized in cosine similarity provides a straightforward method to grasp the correlation between two vectors. Mathematically, the cosine similarity formula is articulated as follows: AB represents the dot product of vectors A and B, while AB signifies the product of the magnitudes of vectors A and B.</p><h3>Creating a Query Engine with a Vector Database</h3><p>In this technical design, we are using Python, LangChain, OpenAI, and Pinecone vector database to develop a basic query engine designed to produce contextually relevant and meaningful responses. The diagram below provides deeper insight into the function of vector databases and their application within our sample code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cOml5k7xgKQ8PrLMOsDfcw.png" /><figcaption>Query Engine Design</figcaption></figure><ul><li><strong>Source Data</strong>: The unstructured data comprises text, images, and audio/video files.</li><li><strong>Application</strong>: The user interface intended for user access. Example: ChatGPT.</li><li><strong>Query</strong>: The query initiated by an application user.</li><li><strong>Embedding Model</strong>: It is a key component of Retrieval Augmented Generation (RAG). Example: Open AI’s ADA 002 for text embedding.</li><li><strong>Vector Embedding</strong>: Vector embeddings represent a method for converting words, sentences, and various data types into numerical representations that encapsulate their meaning and interconnections.</li><li><strong>Post-Processing:</strong> Following the retrieval of nearest neighbors by a vector database for a query vector, there’s an optional process of re-ranking the result set rows. While re-ranking is resource-intensive compared to the initial vector query, it has the potential to enhance the ordering of the existing vector query results.</li></ul><h3>Source Code</h3><p>The following sample code demonstrates the insertion of content into the vector database utilizing the embedding model.</p><pre>pinecone_index_name = &#39;search&#39; #Pinecone index name<br>search = Pinecone.from_documents(index_name = pinecone_index_name,<br>  documents = texts, embedding = embeddings)</pre><p>The following sample code performs a query on the vector database to conduct a similarity search.</p><pre>query = &quot;What is the best medicine for covid?&quot;<br>result = search.similarity_search(query)</pre><p>The source code for the application is available on GitHub. Setup instructions can be found in “README.md” file. You can download the code from here: <a href="https://github.com/prashantnerkar/similarity-search">https://github.com/prashantnerkar/similarity-search</a>.</p><h3>Vector Database Landscape</h3><p>The database market is currently saturated, with new vendors innovating to capture the AI market. Existing database providers are enhancing their offerings by introducing new features atop their management solutions. We’ve identified several vector database products based on their licensing models and their ability to persist and query data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*xn3BZYfuOFDdqWO_AdYTHg.png" /><figcaption>Vector DB Landscape</figcaption></figure><h3>Framework for Choosing the Right Vector Database</h3><p>When choosing a vector database, numerous factors influence the decision-making process. The choice of vector database is contingent upon application-specific demands, including adherence to corporate legal and compliance standards. Below, we outline the top five considerations for evaluating a vector database:</p><h4><strong>1. Performance:</strong></h4><ul><li>Assess the database’s scalability and proficiency in managing large-scale datasets and executing computationally intensive tasks like vector similarity searches.</li><li>Assess the database’s performance like concerning key performance indicators such as Queries per Second (QPS), Recall Rate, and Latency</li><li>Are industry-standard benchmark tools like <strong>ANN-Benchmark</strong> and <strong>VectorDBBench</strong> employed to evaluate the database’s performance?</li></ul><h4><strong>2. Scalability:</strong></h4><ul><li>Seek a database solution capable of both horizontal and vertical scalability to handle increasing data volumes while maintaining optimal performance.</li><li>Verify if the database offers features such as load balancing, support for multiple replications, robust backup mechanisms, and failover capabilities.</li></ul><h4><strong>3.</strong> <strong>Developer Productivity and Compatibility:</strong></h4><ul><li>Are there APIs/SDKs available for developer access to the database?</li><li>Evaluate the ease of setup, configuration, and deployment processes.</li><li>Verify compatibility with existing infrastructure and programming languages to facilitate seamless integration.</li><li>Determine if any special hardware requirements are necessary for deployment.</li><li>Assess compatibility with leading cloud providers like GCP, Azure, or AWS.</li></ul><h4><strong>4.</strong> <strong>Features:</strong></h4><ul><li>Assess the database’s functionalities including real-time querying support, integrated analytics tools, and data replication features.</li><li>Check for in-built Observability &amp; Monitoring solutions within the database.</li><li>Determine if the database supports seamless enterprise integrations.</li><li>Choose a database with a vibrant community and comprehensive documentation to facilitate troubleshooting and support processes.</li></ul><h4><strong>5.</strong> <strong>Enterprise Readiness:</strong></h4><ul><li>Are there any compliance or security concerns with the database, such as open security vulnerabilities?</li><li>What are the licensing terms, fees, and costs associated with support and maintenance?</li><li>What is the licensing model employed by the database — perpetual, subscription-based, or cloud-based?</li><li>Are there any additional costs for infrastructure provisioning and hosting?</li><li>Are there any hidden or unexpected costs associated with using the database?</li></ul><h3>Conclusion</h3><p>Vector databases vary in their feature sets, impacting your decision-making process based on your application’s long-term goals. For instance, while most support features like multi-tenancy and disk indexing, only a select few offer ephemeral indexing. Your application may necessitate specific features from this subset. Despite these considerations, conducting thorough research on each option remains essential. It’s crucial to balance benefits with costs and select a solution that fits your budget and needs.</p><p>In summary, vector databases provide an efficient means of managing high-dimensional data. By comprehending their inner workings, considering factors like performance and scalability, and assessing associated licensing and expenses, organizations can leverage vector databases to extract valuable insights from their data.</p><h3>References:</h3><ul><li>High-quality datasets: <a href="https://www.kaggle.com/datasets">https://www.kaggle.com/datasets</a></li><li>Embedding models: <a href="https://python.langchain.com/v0.1/docs/integrations/text_embedding/">https://python.langchain.com/v0.1/docs/integrations/text_embedding/</a></li><li>Cosine Similarity: <a href="https://en.wikipedia.org/wiki/Cosine_similarity">https://en.wikipedia.org/wiki/Cosine_similarity</a></li></ul><p><strong><em>The statements made here reflect the author’s personal views and should not be interpreted as those of CVS Health or any related organization.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95fa3b3e0fe6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an Open-Source Observability Platform]]></title>
            <link>https://pnerkar.medium.com/building-an-open-source-observability-platform-b9fed4f702f2?source=rss-93acc8b53177------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9fed4f702f2</guid>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[site-reliability]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[observability]]></category>
            <dc:creator><![CDATA[Prashant Nerkar]]></dc:creator>
            <pubDate>Wed, 03 Jan 2024 19:35:16 GMT</pubDate>
            <atom:updated>2025-12-29T04:36:54.793Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Today, enterprises are under constant pressure to ensure their IT infrastructure and applications are available throughout the year with 9’ of availability. The complexity of modern architectures (such as containers, hybrid cloud, SOA, and microservices) is constantly growing, generating vast volumes of unmanageable logs.</p><p>We need intelligent Application Performance Management (APM) and Observability tools to achieve production excellence and meet the availability and uptime goals. These include analyzing application health, performance, and user experience. Adopting machine learning techniques to identify anomalies and behavior patterns will help detect the root cause early and meet customer service level agreements (SLA).</p><p>The APM and Observability tools market is undoubtedly hot. These tools ingest multiple telemetry data feeds and are powerful analytics platforms providing critical insights into application and infrastructure health, including system performance. The software development teams that adopt Observability can iteratively release their application code in production.</p><blockquote>As per “MarketsandMarkets” research, the market size of observability tools and platforms will grow from USD 2.4 billion in 2023 to USD 4+ billion by 2028 at a Compound Annual Growth Rate (CAGR) of 11.7%.</blockquote><h3>What is Observability?</h3><p>Observability is the ability to collect data about distributed applications, infrastructure, and communication among its internal and external components and services, allowing teams to debug their systems diligently.</p><p>It enables the Site Reliability Engineering (SRE), Software Engineering, and Operations teams to analyze the customer impact and triage a service outage. Observability and Monitoring somewhat overlap and are used interchangeably.</p><ul><li>Observability (proactive) makes the data accessible. It allows you to ask any system question to know how the code behaves more deeply.</li><li>Monitoring (reactive) is the task of collecting and displaying that data and the ability to determine the system’s overall state.</li></ul><p>The three pillars of Observability are <strong>Logs</strong>, <strong>Traces</strong>, and <strong>Metrics</strong>, which are essential for SRE Observability.</p><ul><li>Logs help us diagnose the issues and tell us why they happened.</li><li>Traces allow us to isolate issues and tell us where they happened.</li><li>Metrics help us detect the issues and tell us what happened.</li></ul><p>Market Tools, Capabilities, and Challenges</p><p>Gartner’s magic quadrant for APM and Observability has identified 20+ vendor products offering APM and Observability capabilities, including self-hosted, vendor-managed, or SaaS deployments. These products provide multiple features, including application performance metrics, Monitoring and alerting on events, traceability, anomaly detection, and vulnerabilities.</p><p>For example, an enterprise business application comprises homegrown applications built upon multiple technologies such as .NET, Java, Python, SQL, NoSQL DB, 3rd party / off-the-shelf products such as Salesforce, HubSpot, and integrations such as Stripe and PayPal. Homegrown applications are hosted in an on-premises data center or by cloud vendors like AWS, GCP, or Azure. The off-the-shelf products are SaaS-based or integrated via APIs. The complexity of the application architecture and customer SLAs can make it highly distributed, spanning tens and hundreds of nodes, services, and instances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WztOGbaYfWheRhD0uLtxgg.png" /><figcaption><a href="https://www.honeycomb.io/gartner-magic-quadrant-apm-observability-2023">Gartner Magic Quadrant™ 2023 Observability Leaders</a></figcaption></figure><ul><li><strong>Too Many APM Tools: </strong>Enterprise applications use various tools for monitoring application health and performance, such as New Relic or Data Dog, Error logging tools such as Splunk, and cloud vendor-provided tools such as AWS CloudWatch. These products overlap in functionality, and maintaining and managing these tools (procurement, licensing, pricing, learning curve) can be cumbersome.</li><li><strong>Unpredictable Data Volume: </strong>Imagine the volume of Observability data (logs, traces, metrics) collected based on the application traffic, usage, and dependency on external products. The data storage required to consolidate these data feeds can quickly grow out of control.</li><li><strong>Pricing is Complex:</strong> These vendor products also offer different pricing models such as charge per host (such as Splunk, Data Dog, Dynatrace), per-user (such as New Relic), per-ingestion (such as SumoLogic, AppDynamics). The complexity of pricing models makes it challenging to compare Total Cost of Ownership (TCO) among vendors and determine the right tool that fits your requirements and budget.</li></ul><h3>Why Choose Open-Source Observability Platform?</h3><p>Open-source-based Observability tools aim to provide a standard, vendor-agnostic approach for ingesting, transforming, and sending data to an Observability back-end. The open-source observability tools can be an alternative to save on licensing costs and consolidate multiple APM tools with the tool that fits your requirements and budget.</p><p><strong>However, maintaining open-source systems may require efforts to set up and maintain and will add to your initial operational cost. But in the long term, you will save on licensing fees and avoid vendor lock-in and contractual agreements.</strong></p><blockquote><strong>Gartner</strong> predicts that, by 2025, 70% of new cloud-native application monitoring will use open-source instrumentation rather than vendor-specific agents for improved interoperability, and 70% of new cloud-native applications will adopt OpenTelemetry for observability rather than vendor-specific agents and software development kits (SDKs).</blockquote><h3>Scale Observability Using Open-Source Ecosystem</h3><p>The open-source landscape for Observability is quite dynamic. There are multiple CNCF (Cloud Native Computing Foundation) open-source tools for Observability and Monitoring. We see a familiar pattern where Enterprises are adopting the <strong>OpenTelemetry</strong> framework and <strong>LGTM</strong> technology stack.</p><ul><li><strong>OpenTelemetry</strong>: The “Too Many Tools” described in the challenges brings up a new challenge in telemetry data collection. Each tool vendor has its APIs, SDKs, agents, and collectors for logging, metrics, and traces. We need a unified telemetry collection using the OpenTelemetry framework to create and manage telemetry data such as logs, traces, and metrics. The OTel project under CNCF offers a suitable set of vendor-agnostic APIs, SDKs, and tools for generating and collecting telemetry data and exporting it to various analysis tools. You get one API and SDK per programming language to extract your application’s observability data, a standard collector, a transmission protocol (OTLP), and more.</li></ul><p><a href="https://opentelemetry.io/docs/demo/architecture/">Demo Architecture</a></p><ul><li><strong>LGTM: </strong>The most popular open-source-based Observability and Monitoring tools leverage the LGTM technology stack. In the LGTM Stack (<a href="https://grafana.com/oss">https://grafana.com/oss</a>), we leverage <strong>Loki</strong> for log aggregation, <strong>Grafana</strong> dashboards for telemetry visualizations, <strong>Tempo </strong>(or Jaeger) for trace aggregation, and <strong>Mimir</strong> (or <strong>Managed</strong> <strong>Prometheus)</strong> for metrics aggregation.</li></ul><figure><img alt="Grafana.com" src="https://cdn-images-1.medium.com/max/1024/1*ChYILsX4bkyydQSxFyBepQ.png" /><figcaption>Grafana.com</figcaption></figure><ul><li>The LGTM tech stack supports docker containers, and the end-to-end implementation can be deployed on On-prem, GCP, AWS, or Azure instead of the Grafana cloud.</li><li>An alternative option for Mimir is the Prometheus database. The AWS, GCP, and Azure have a managed service for Prometheus.</li></ul><h3>Conclusion</h3><p><strong>Observability</strong> is about complete visibility across your systems and tying business metrics with technical data. <strong>Monitoring</strong> is about understanding if things are working correctly, and <strong>AIOps</strong> is about getting meaning from that visibility. Observability and Monitoring are critical to ensure the smooth functioning of applications and meet customer SLAs. In conclusion, by investing in open-source frameworks such as OTel and LGTM tools, the SRE teams can effectively observe and monitor their applications and gain insights into system behavior and potential issues. These tools offer cost-effectiveness and customization to suit specific requirements. It promotes vendor neutrality, which can be critical for avoiding vendor lock-in.</p><p>You can read a free chapter on Three Pillars of Observability at Oreilly.com:</p><p><a href="https://www.oreilly.com/library/view/distributed-systems-observability/9781492033431/ch04.html">Distributed Systems Observability</a></p><p><strong><em>The statements made here reflect the author’s personal views and should not be interpreted as those of CVS Health or any related organization.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9fed4f702f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>