<?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: mofuteq</title>
    <description>The latest articles on DEV Community by mofuteq (@mofuteq).</description>
    <link>https://dev.to/mofuteq</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%2F3986517%2F1522fd82-a3f8-4372-b241-0750977f2488.JPG</url>
      <title>DEV Community: mofuteq</title>
      <link>https://dev.to/mofuteq</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mofuteq"/>
    <language>en</language>
    <item>
      <title>Your RAG Retrieved the Right Documents but Still Gave the Wrong Answer</title>
      <dc:creator>mofuteq</dc:creator>
      <pubDate>Fri, 19 Jun 2026 12:35:09 +0000</pubDate>
      <link>https://dev.to/mofuteq/your-rag-retrieved-the-right-documents-but-still-gave-the-wrong-answer-5fdo</link>
      <guid>https://dev.to/mofuteq/your-rag-retrieved-the-right-documents-but-still-gave-the-wrong-answer-5fdo</guid>
      <description>&lt;p&gt;Your retriever returned the right documents. The similarity scores look fine. The answer is still wrong. If you've shipped RAG, you've seen this — and it's the failure that survives every retrieval upgrade.&lt;/p&gt;

&lt;h2&gt;
  
  
  What everyone tries
&lt;/h2&gt;

&lt;p&gt;Reranker. Higher top-k. Hybrid search. A better embedding model. All of these chase the same goal: &lt;em&gt;documents more similar to the query.&lt;/em&gt; They help when the right document wasn't being retrieved. They do nothing when the right document &lt;strong&gt;was&lt;/strong&gt; retrieved and the answer is still wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it doesn't work
&lt;/h2&gt;

&lt;p&gt;Similarity answers "is this chunk about the same topic?" It does not answer "does this chunk contain the facts needed to support the answer?" Those come apart constantly. A chunk can be highly similar — same vocabulary, same subject — and contain nothing that actually grounds the answer. Hand the model a pile of on-topic text and it will produce a fluent, plausible, even cited-looking answer. The grounding is cosmetic: the text was nearby, not load-bearing.&lt;/p&gt;

&lt;p&gt;High similarity with a wrong answer isn't a contradiction. You asked retrieval to find related text. It did. Nobody asked whether the text was &lt;em&gt;enough.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The one shift
&lt;/h2&gt;

&lt;p&gt;Stop treating retrieval output as evidence. Treat it as candidate material that has to pass an explicit evidence check before it can support an answer. Put a step between retrieval and generation: &lt;em&gt;does the retrieved set actually contain the facts this answer requires? If not, abstain.&lt;/em&gt; When the documents don't contain the facts, the system should return nothing rather than a confident guess.&lt;/p&gt;

&lt;p&gt;Relevant context in, only sufficient evidence allowed through. That's the line between a RAG demo and a RAG system you can trust in production.&lt;/p&gt;




&lt;p&gt;I write about the three boundaries where production RAG dies — query, evidence, output — from the angle of shipping under security and model constraints. &lt;a href="https://blog.mofuteq.space/your-rag-retrieved-documents-not-evidence" rel="noopener noreferrer"&gt;Read the full version on my blog&lt;/a&gt;, where this connects to the practical &lt;strong&gt;RAG Failure Diagnosis Kit&lt;/strong&gt; for teams debugging production RAG.&lt;/p&gt;

</description>
      <category>rag</category>
      <category>llm</category>
      <category>ai</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
