<?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"><channel><title><![CDATA[I Stopped Trusting AI Answers. That’s When I Started Building Better AI Systems.]]></title><description><![CDATA[I Stopped Trusting AI Answers. That’s When I Started Building Better AI Systems.]]></description><link>https://trustingaisystems.hashnode.dev</link><image><url>https://cdn.hashnode.com/res/hashnode/image/upload/v1593680282896/kNC7E8IR4.png</url><title>I Stopped Trusting AI Answers. That’s When I Started Building Better AI Systems.</title><link>https://trustingaisystems.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Fri, 18 Sep 2026 11:09:58 GMT</lastBuildDate><atom:link href="https://trustingaisystems.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[I Stopped Trusting AI Answers. That’s When I Started Building Better AI Systems.]]></title><description><![CDATA[Generative AI is very good at sounding confident.
That is both its biggest strength and one of its biggest problems.
Ask an LLM a question and you can often get an impressive answer within seconds. Th]]></description><link>https://trustingaisystems.hashnode.dev/i-stopped-trusting-ai-answers-that-s-when-i-started-building-better-ai-systems</link><guid isPermaLink="true">https://trustingaisystems.hashnode.dev/i-stopped-trusting-ai-answers-that-s-when-i-started-building-better-ai-systems</guid><category><![CDATA[generative ai]]></category><category><![CDATA[RAG ]]></category><category><![CDATA[llm]]></category><category><![CDATA[AI]]></category><category><![CDATA[Machine Learning]]></category><category><![CDATA[Artificial Intelligence]]></category><dc:creator><![CDATA[Shlok Das]]></dc:creator><pubDate>Sun, 09 Aug 2026 11:05:40 GMT</pubDate><content:encoded><![CDATA[<p>Generative AI is very good at sounding confident.</p>
<p>That is both its biggest strength and one of its biggest problems.</p>
<p>Ask an LLM a question and you can often get an impressive answer within seconds. The response is well structured, grammatically correct, and sometimes even more detailed than you expected.</p>
<p>But there is a problem:</p>
<p>A confident answer isn't necessarily a correct answer.</p>
<p>I learned this while experimenting with AI applications. At first, I thought the solution to inaccurate responses was simply better prompting.</p>
<p>It wasn't.</p>
<p>The problem with asking an LLM to "just know"</p>
<p>Imagine building an AI assistant for a company.</p>
<p>You give it a prompt:</p>
<p>"You are an intelligent company assistant. Answer the user's questions accurately."</p>
<p>It works surprisingly well for general questions.</p>
<p>Then someone asks:</p>
<p>"What is our company's refund policy for orders older than 30 days?"</p>
<p>The model doesn't actually know your company's refund policy.</p>
<p>It has two choices:</p>
<p>Admit that it doesn't know. Generate something that sounds reasonable.</p>
<p>And language models are extremely good at option two.</p>
<p>This is where the difference between using an LLM and building an AI system becomes important.</p>
<p>The idea behind RAG</p>
<p>One approach I found particularly useful is Retrieval-Augmented Generation (RAG).</p>
<p>The basic idea is quite simple.</p>
<p>Instead of expecting the model to have all the information it needs, we give it relevant information at the time of the query.</p>
<p>A simplified flow looks like this:</p>
<p>User question → Retrieve relevant information → Give information to LLM → Generate answer</p>
<p>For example, suppose a company has thousands of documents containing:</p>
<p>HR policies Product documentation Internal processes Customer support information Technical documentation</p>
<p>Instead of putting everything into one enormous prompt, we can process those documents, convert their content into embeddings, and store them in a vector database.</p>
<p>When a user asks a question, the system searches for the most relevant pieces of information.</p>
<p>Those pieces are then provided to the LLM as context.</p>
<p>The model isn't being asked to magically know the answer.</p>
<p>It is being asked to reason over information that we retrieved for it.</p>
<p>That distinction is important.</p>
<p>But RAG doesn't magically solve hallucinations</p>
<p>This was another lesson that became obvious after actually working with the architecture.</p>
<p>You can build a RAG pipeline and still get bad answers.</p>
<p>Why?</p>
<p>Because there are several places where things can go wrong.</p>
<ol>
<li>The wrong document gets retrieved</li>
</ol>
<p>If the retrieval system doesn't find the relevant information, the model has bad context.</p>
<p>Garbage in, garbage out.</p>
<ol>
<li>The retrieved context is incomplete</li>
</ol>
<p>The answer might require information from multiple documents, but the system may only retrieve one.</p>
<ol>
<li>The context can be noisy</li>
</ol>
<p>Giving the model 10 irrelevant documents isn't necessarily better than giving it two useful ones.</p>
<ol>
<li>The model can still make things up</li>
</ol>
<p>Even with good context, an LLM can sometimes infer something that isn't actually supported by the provided information.</p>
<p>So RAG shouldn't be treated as a magic anti-hallucination button.</p>
<p>It's a system that reduces the amount of information the model has to invent.</p>
<p>Prompt engineering is still important</p>
<p>This doesn't mean prompting is irrelevant.</p>
<p>The prompt can tell the model how to use the retrieved information.</p>
<p>For example, instead of:</p>
<p>"Answer the question."</p>
<p>we can instruct it to:</p>
<p>Use only the provided context to answer the question. If the answer cannot be found in the context, say that the information is unavailable.</p>
<p>That small change can make the system much more reliable.</p>
<p>But there's an important engineering lesson here:</p>
<p>You can't prompt your way out of every architectural problem.</p>
<p>If your retrieval system consistently returns irrelevant documents, rewriting the prompt 50 times probably isn't going to fix the root cause.</p>
<p>Sometimes the solution isn't a better prompt.</p>
<p>It's better retrieval.</p>
<p>The part people don't talk about enough: evaluation</p>
<p>This is probably one of the most important parts of building AI applications.</p>
<p>A demo can look amazing.</p>
<p>You ask five questions.</p>
<p>The AI answers all five correctly.</p>
<p>You think you've built something great.</p>
<p>Then 500 real users start asking questions you never considered.</p>
<p>Suddenly you discover:</p>
<p>Some questions retrieve the wrong documents. Some answers contain unsupported claims. Some responses are unnecessarily long. Some queries are extremely expensive. Some questions have no answer in your knowledge base.</p>
<p>This is why AI applications need evaluation.</p>
<p>You need actual test questions and expected behaviour.</p>
<p>Instead of asking:</p>
<p>"Does my AI application work?"</p>
<p>ask:</p>
<p>"How often does it work, where does it fail, and why?"</p>
<p>That is a much more useful question.</p>
<p>What I find exciting about GenAI</p>
<p>The interesting thing about generative AI isn't simply that a model can write text.</p>
<p>It's that we can combine models with traditional software engineering.</p>
<p>An LLM can become one component inside a larger system involving:</p>
<p>APIs + databases + retrieval + tools + authentication + business logic + UI + monitoring</p>
<p>That's where things get interesting.</p>
<p>The model doesn't have to do everything.</p>
<p>It just needs to do the things it is good at.</p>
<p>For example, instead of asking an LLM to calculate a customer's invoice, I would rather let normal software perform the calculation and let the LLM explain the result to the customer.</p>
<p>Instead of asking an LLM to remember an entire knowledge base, retrieve the relevant information.</p>
<p>Instead of trusting every generated answer, evaluate it.</p>
<p>The best AI systems I've seen don't replace engineering.</p>
<p>They combine AI with good engineering.</p>
<p>What I'm taking away from this</p>
<p>My biggest change in perspective has been moving from:</p>
<p>"How can I make the model give a better answer?"</p>
<p>to:</p>
<p>"How can I design a system that gives the model the right information and the right tools to produce a reliable answer?"</p>
<p>That shift sounds small, but it changes how you approach AI development.</p>
<p>Generative AI makes it incredibly easy to build a prototype.</p>
<p>The harder part is building something people can actually trust.</p>
<p>And I think that's where the real engineering challenge begins.<br />/</p>
]]></content:encoded></item></channel></rss>