<?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 Swathi Saravana Selvam on Medium]]></title>
        <description><![CDATA[Stories by Swathi Saravana Selvam on Medium]]></description>
        <link>https://medium.com/@swathissara?source=rss-acfe7f19621c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FdHFDpWyfhL-4m3YnOwoUg.jpeg</url>
            <title>Stories by Swathi Saravana Selvam on Medium</title>
            <link>https://medium.com/@swathissara?source=rss-acfe7f19621c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:40:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@swathissara/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[When Your AI Looks Healthy But Is Quietly Making Terrible Decisions]]></title>
            <link>https://medium.com/@swathissara/when-your-ai-looks-healthy-but-is-quietly-making-terrible-decisions-2b1f05f7e97e?source=rss-acfe7f19621c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b1f05f7e97e</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Swathi Saravana Selvam]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 20:21:26 GMT</pubDate>
            <atom:updated>2026-04-07T20:21:26.189Z</atom:updated>
            <content:encoded><![CDATA[<h3>A field report from someone who shipped GenAI to 50K+ daily users and lost sleep over what it was doing when nobody was watching.</h3><p>Let me set the scene.</p><p>It’s 11 PM. I’m staring at a Grafana dashboard. Everything is green. Latency is low. Uptime is pristine. Error rates are flatlined. My manager is happy. The stakeholders are happy. The 50,000 people who used our AI banking assistant today presumably got answers to their questions.</p><p>And I have absolutely no idea if those answers were any good.</p><p>This is the story of Cora+, a RAG-based system I helped build on IBM WatsonX, with Elasticsearch-based retrieval, running at a 99.9% SLA. And more importantly, this is the story of the massive blind spot that every team shipping AI into production is about to discover for themselves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*myD68P7JwVKLUhKI49N9KA.png" /></figure><h3>“But the dashboard says everything is fine”</h3><p>Here’s what traditional monitoring tells you about your AI system:</p><ul><li>✅ Is it up? Yes.</li><li>✅ Is it fast? Yes.</li><li>✅ Is it returning responses? Yes.</li></ul><p>Here’s what it doesn’t tell you:</p><ul><li>❌ Are those responses <em>correct</em>?</li><li>❌ Did it just confidently mix up two unrelated policy documents?</li><li>❌ Is it slowly getting worse and nobody’s noticed?</li></ul><p>We spent months building robust infrastructure — load balancing, failover, caching, the works. We could tell you the p99 latency of every single retrieval call. We could not tell you whether the answer a customer received about their mortgage options was actually right.</p><p>That gap? That’s not a monitoring problem. That’s a <em>fundamentally different category of observability</em> that most of our tooling wasn’t designed for.</p><h3>Pain Point #1: A Retrieval Hit Is Not an Answer</h3><p>Here’s how RAG works, in case you need a refresher:</p><ol><li>User asks a question</li><li>You search your knowledge base for relevant chunks</li><li>You stuff those chunks into a prompt</li><li>The LLM synthesizes a response</li><li>User gets an answer</li></ol><p>Simple, right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*5Yp-w1MiN0y9D1MS.jpg" /></figure><p>Here’s what actually happens:</p><p>Elasticsearch returns chunks with high BM25 + vector similarity scores. Great. The model reads them and generates something fluent, confident, and well-structured. Also great. But the chunks came from two different product documents — one about personal loans, one about business credit lines — and the model happily blended them into a single coherent-sounding answer that is <em>technically about neither</em>.</p><p>Nothing in our monitoring caught this. Nothing <em>could</em> catch this. Because we were measuring retrieval relevance and generation latency as separate metrics. Nobody was watching the seam between “we found relevant documents” and “we produced a correct answer.”</p><p>The retrieval was “good.” The generation was “good.” The end-to-end output was wrong.</p><p>This is like checking that your engine is running and your wheels are spinning and concluding the car must be going in the right direction.</p><h3>Pain Point #2: Confidence ≠ Correctness</h3><p>This one hits different when you’re serving banking customers.</p><p>LLMs don’t hedge. They don’t say “honestly, I’m not sure about this one, maybe check with a human.” They produce grammatically perfect, contextually plausible, completely fabricated answers with the exact same tone and structure as correct ones.</p><p>When your system is answering questions about interest rates, account policies, or eligibility criteria — for real people making real financial decisions — this isn’t a cute limitation. It’s a liability.</p><p>We had no programmatic way to distinguish between:</p><ul><li><strong>Response A</strong>: Accurate, well-sourced, correctly synthesized → confidence: high</li><li><strong>Response B</strong>: Hallucinated, mixed sources, subtly wrong → confidence: also high</li></ul><p>The model doesn’t know it’s wrong. The monitoring doesn’t know it’s wrong. The user <em>definitely</em> doesn’t know it’s wrong. So who catches it?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*G6bOLNA14CPh49i7" /></figure><p>Nobody. That’s the answer. Nobody catches it until a customer complains, or worse, makes a decision based on bad information.</p><h3>Pain Point #3: The Failure Mode Is Silent</h3><p>Traditional software has the decency to crash loudly. It throws exceptions. It returns 500s. It pages you at 3 AM. You curse, you fix it, you go back to sleep.</p><p>GenAI systems don’t crash. They <em>degrade</em>.</p><p>Here’s a real scenario: your knowledge base gets updated. New policy documents replace old ones. The chunking is slightly different. The embeddings shift. The retrieval starts pulling in chunks that are <em>related</em> but not <em>optimal</em>. Response quality drops maybe 10–15% over three weeks.</p><p>Nothing goes red. No alerts fire. Latency is the same. Uptime is the same. The responses just get… a little less accurate. A little more vague. A little more likely to miss a nuance.</p><p>This is the AI equivalent of a slow gas leak. By the time you smell it, the damage is done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*ZsrKTWT7xBWsXA1j.jpg" /></figure><p>And the worst part? When someone finally notices, you can’t even pinpoint when it started. Was it the document update two weeks ago? The model version bump? The prompt template change your colleague made on a Friday afternoon? Good luck.</p><h3>Pain Point #4: The Attribution Problem From Hell</h3><p>OK, so a customer reports a bad answer. Progress! At least we know something went wrong.</p><p>Now: <em>what</em> went wrong?</p><p>In a multi-stage RAG pipeline, the answer could be hiding in any layer:</p><ul><li><strong>Retrieval</strong>: Did we pull the wrong chunks? Were the right documents even in the index?</li><li><strong>Reranking</strong>: Did the reranker shuffle the order and bury the best chunk?</li><li><strong>Context assembly</strong>: Did the prompt template truncate critical information?</li><li><strong>Generation</strong>: Did the model hallucinate despite having good context?</li><li><strong>Guardrails</strong>: Did the safety filter strip out the actual answer because it contained a flagged keyword?</li><li><strong>Post-processing</strong>: Did the formatting step mangle the response?</li></ul><p>Each component can be individually “working correctly,” while the end-to-end output is garbage. It’s like diagnosing why a patient is sick by running tests on each organ separately — heart looks fine, lungs look fine, liver looks fine, and then shrugging when the patient doesn’t get better.</p><p>Without end-to-end tracing, a complete decision trail from query to response — you’re just guessing. And I’ve spent late nights enough guessing.</p><h3>So What’s the Actual Solution?</h3><p>I’ve been thinking about this a lot. Not theoretically but practically. As in, what would I actually build if I could start from scratch?</p><p>Here’s where I’ve landed:</p><h3>1. Decision trails, not just logs</h3><p>Every single response needs a trace. Not an application log. A <em>decision trace</em>. What was the query. What was retrieved. How it was ranked. What made it into the context window. What the model generated. What the guardrails modified. What the user received.</p><p>This isn’t a new idea: distributed tracing has existed since Dapper. But the mental model needs to change. In traditional microservices, you trace <em>requests</em>. In AI systems, you need to trace <em>decisions</em>. The unit of observability isn’t “did this service respond”, it’s “was this reasoning path sound.”</p><p>The hard engineering problem: building this trace layer without adding meaningful latency to the pipeline. At Cora+, we were operating under strict SLA requirements. Every millisecond of overhead in the tracing layer is a millisecond stolen from the response. You need async instrumentation, efficient serialization, and smart sampling — and you can’t lose traces for the responses that matter most (which are, unfortunately, often the slowest and most complex ones).</p><h3>2. Response quality evaluation that actually scales</h3><p>Here’s the evaluation trilemma every production team hits:</p><ul><li><strong>Human review</strong>: Accurate but doesn’t scale. You can’t review 50K responses a day.</li><li><strong>Reference-based evaluation</strong>: Precise but impractical. You can’t pre-build golden answers for every possible query.</li><li><strong>LLM-as-judge</strong>: Scalable but introduces a new problem — you’re building a second AI system to judge the first one. Now you have two systems you can’t fully trust.</li></ul><p>The answer isn’t picking one. It’s layering them. Use fast heuristic checks (response length, source coverage, entity consistency) to catch obvious failures in real-time. Use LLM-based evaluation on a sample for deeper quality signals. Use human review on the edge cases the LLM evaluator is least confident about.</p><p>And — and this is the part people miss — <strong>your evaluator needs observability too</strong>. I’ve seen LLM judges confidently flag correct answers as hallucinations because the phrasing didn’t exactly match the source document. Now you’re debugging your debugger. It’s evaluation all the way down.</p><h3>3. Regression detection, not just point-in-time evaluation</h3><p>Individual response evaluation matters, but what keeps you alive in production is catching <em>trends</em>. Response quality drifting down over time. Retrieval relevance shifting after a knowledge base update. A specific category of questions suddenly getting worse answers.</p><p>This needs time-series quality metrics — not just “was this response good” but “is this <em>type</em> of response getting worse.” Statistical process control applied to AI output quality. The techniques exist in manufacturing (Six Sigma, control charts). Nobody’s really applied them properly to LLM systems yet.</p><h3>Why This Matters Beyond My Experience</h3><p>Every team shipping AI agents right now is about to hit this wall. Maybe not today. Maybe not this quarter. But the moment you go from demo to production, from “it works on my laptop” to “it’s handling real users at scale,” you’ll discover that your entire observability stack was designed for a world where software either works or it doesn’t.</p><p>AI systems don’t live in that world. They live in a world of degrees — mostly right, sometimes wrong, occasionally confidently catastrophic. And the tooling to navigate that world doesn’t exist yet. Not really. Not in a way that works for engineers shipping fast and learning as they go.</p><p>The gap isn’t “can we monitor AI systems.” It’s “can we make AI decision quality as observable, measurable, and debuggable as we’ve made traditional system health.”</p><p>I think the answer is yes. But it requires new primitives, not just new dashboards on old data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O2x3WNDNDMwyCcMopOyr6w.png" /></figure><h3>TL;DR</h3><p>I’ve shipped a GenAI system to 50K+ daily users. Here’s what I wish someone had told me:</p><ol><li><strong>Your system can be “up” and still be giving terrible answers.</strong> Traditional monitoring won’t save you.</li><li><strong>LLMs are equally confident when they’re right and when they’re wrong.</strong> You need external quality evaluation, not just model confidence.</li><li><strong>AI quality degrades silently.</strong> By the time someone notices, you’ve been serving bad answers for weeks.</li><li><strong>Multi-stage pipeline debugging is painful.</strong> Without end-to-end decision tracing, you’re guessing.</li><li><strong>The tooling layer for AI decision quality is the next big infrastructure problem.</strong> It’s as important as observability was for microservices a decade ago.</li></ol><p>If you’re building AI systems and nodding along to any of this — hi, we should talk.</p><p><em>Swathi Saravana Selvam — doing my Master&#39;s in CS @ Cornell — building things that work, then figuring out how to prove they work.</em></p><p><a href="https://www.linkedin.com/in/swathi-saravanan-/">https://www.linkedin.com/in/swathi-saravanan-/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b1f05f7e97e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>