<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abhijeet Hiwale</title>
    <description>The latest articles on DEV Community by Abhijeet Hiwale (@abhii07).</description>
    <link>https://dev.to/abhii07</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F874610%2Fba89dac1-3891-4ee4-8344-3d41c7337e9b.jpeg</url>
      <title>DEV Community: Abhijeet Hiwale</title>
      <link>https://dev.to/abhii07</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abhii07"/>
    <language>en</language>
    <item>
      <title>Your AI Isn't Broken. Your Architecture Is.</title>
      <dc:creator>Abhijeet Hiwale</dc:creator>
      <pubDate>Sun, 21 Jun 2026 06:49:36 +0000</pubDate>
      <link>https://dev.to/abhii07/your-ai-isnt-broken-your-architecture-is-5fam</link>
      <guid>https://dev.to/abhii07/your-ai-isnt-broken-your-architecture-is-5fam</guid>
      <description>&lt;p&gt;Everyone blames hallucination. I've started blaming the design.&lt;/p&gt;

&lt;p&gt;I work on a fintech banking platform — Java, Spring Boot, microservices. When a payment fails, we don't shrug and say "the network is probabilistic." We trace it. We find the exact hop where something went wrong. We fix it.&lt;/p&gt;

&lt;p&gt;But when an LLM-powered feature fails, the default reaction is usually: "yeah, AI hallucinates sometimes."&lt;/p&gt;

&lt;p&gt;And after going through a structured ML cohort over the last few weeks, I think I finally understand why.&lt;/p&gt;




&lt;h2&gt;
  
  
  The model is working fine. The pipeline isn't.
&lt;/h2&gt;

&lt;p&gt;Large language models are probabilistic by design. They don't look up answers — they generate the most statistically likely next token given context. That means they will occasionally produce plausible-sounding output that isn't grounded in fact.&lt;/p&gt;

&lt;p&gt;This is a known property, not a bug. The mistake is building systems that treat this probabilistic step as if it were a deterministic one.&lt;/p&gt;

&lt;p&gt;Here's a concrete example. Say you're building a banking chatbot that needs to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Parse the user's intent ("show me last month's transactions over ₹5000")&lt;/li&gt;
&lt;li&gt;Query the transactions database&lt;/li&gt;
&lt;li&gt;Format and summarize the results&lt;/li&gt;
&lt;li&gt;Respond to the user&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Steps 2 and 3 are deterministic. There's a correct answer. The transactions either exist or they don't. The sum is either right or wrong.&lt;/p&gt;

&lt;p&gt;If you route those steps through an LLM — asking it to generate a SQL query, run it mentally, summarize the output — you've introduced a probabilistic component where zero ambiguity is acceptable. In a financial context, a "plausible-sounding" transaction summary that's 3% wrong is not a minor UX issue. It's a compliance problem.&lt;/p&gt;




&lt;h2&gt;
  
  
  The math compounds fast
&lt;/h2&gt;

&lt;p&gt;Here's what most people miss when they start chaining LLM calls together.&lt;/p&gt;

&lt;p&gt;If each step in your pipeline has a 90% success rate — which sounds fine — and you have 5 steps, your overall pipeline reliability is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;0.9 × 0.9 × 0.9 × 0.9 × 0.9 = ~59%&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A 5-step agentic workflow where every node is an LLM call fails 4 out of 10 times. Not because any single step is broken. Because the architecture is wrong.&lt;/p&gt;

&lt;p&gt;This is something I think about in terms of how we handle fraud detection on our platform. The ML model's job is to score a transaction — is this pattern anomalous? That's genuinely probabilistic. Pattern matching under uncertainty is exactly what the model is good at.&lt;/p&gt;

&lt;p&gt;But the downstream decision — block the card, flag for review, let it pass — that's a deterministic rule engine. Hard thresholds. Business logic. Audit trails. Putting an LLM in that loop would be architecturally insane, regardless of how good the model is.&lt;/p&gt;

&lt;p&gt;The model handles ambiguity. The function handles decisions.&lt;/p&gt;




&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo2nl1fq8qtir90zdqher.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo2nl1fq8qtir90zdqher.png" alt="AI architecture and decision systems flow" width="800" height="1000"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The part nobody talks about in tutorials
&lt;/h2&gt;

&lt;p&gt;Every LLM tutorial shows you the happy path. Very few show you where the model should be completely absent from the pipeline.&lt;/p&gt;

&lt;p&gt;The design question worth asking: &lt;strong&gt;which parts of this workflow require genuine judgment or language understanding, and which parts have a correct, verifiable answer?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;LLM's job: extract intent, handle ambiguity, generate natural language.&lt;br&gt;
Function call / API / rule engine's job: everything with a ground truth.&lt;/p&gt;

&lt;p&gt;This isn't a new insight — it's basically what tool-use and function calling were invented for. The model decides &lt;em&gt;what&lt;/em&gt; to do. A real function actually &lt;em&gt;does&lt;/em&gt; it. But a lot of builders still treat function calling as a nice-to-have instead of a load-bearing architectural decision.&lt;/p&gt;




&lt;h2&gt;
  
  
  Where to actually look when your AI feature breaks
&lt;/h2&gt;

&lt;p&gt;For a while I thought the hard part was getting the model to behave. Prompt engineering. Fine-tuning. Better retrieval.&lt;/p&gt;

&lt;p&gt;The cohort work I've been doing shifted that. The models are actually pretty capable. What's hard is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Knowing which parts of your pipeline should never touch the model&lt;/li&gt;
&lt;li&gt;Building the decision layer that acts on model output — the bridge between a score or a label and an actual system action&lt;/li&gt;
&lt;li&gt;Tracing failures accurately so you don't blame the model when the architecture is wrong&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If your AI feature is unreliable, the honest diagnostic question is: how many of my pipeline steps are probabilistic that shouldn't be? The answer is usually more than you think.&lt;/p&gt;




&lt;p&gt;Hallucination is real. But it's also one of the most convenient excuses in AI engineering right now.&lt;/p&gt;

&lt;p&gt;Most of the failures I've seen — in projects, in tutorials, in production systems discussed in public postmortems — aren't the model generating nonsense. They're systems that were designed without a clear line between "where the LLM is appropriate" and "where a function call is appropriate."&lt;/p&gt;

&lt;p&gt;Draw that line first. Build around it. Then see how often the model is actually the problem.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
