<?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 Arunoday on Medium]]></title>
        <description><![CDATA[Stories by Arunoday on Medium]]></description>
        <link>https://medium.com/@arunodaymukherjee1993?source=rss-62a795d1bfd4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8QdRCaHL8MXyh9yA</url>
            <title>Stories by Arunoday on Medium</title>
            <link>https://medium.com/@arunodaymukherjee1993?source=rss-62a795d1bfd4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 04:30:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arunodaymukherjee1993/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 Blindfolded Librarian Problem -And How IBM’s STAIR Finally Solved It]]></title>
            <link>https://medium.com/@arunodaymukherjee1993/the-blindfolded-librarian-problem-ab69f1ff5ca1?source=rss-62a795d1bfd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab69f1ff5ca1</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[hallucinations]]></category>
            <dc:creator><![CDATA[Arunoday]]></dc:creator>
            <pubDate>Mon, 21 Sep 2026 20:42:04 GMT</pubDate>
            <atom:updated>2026-09-22T12:45:24.348Z</atom:updated>
            <content:encoded><![CDATA[<p>Picture a consultant. It’s 2am. She’s reviewing a 600-page regulatory document, a government procurement guideline her firm’s AI assistant has been trained on for six months. She types a question about penalty clauses in breach scenarios.</p><p>The assistant answers confidently. Cites a section. Sounds authoritative.</p><p>She prints it. Takes it to the client meeting.</p><p>The section cited doesn’t exist in that context. The AI retrieved a paragraph from the wrong chapter, a superficially similar phrase from the risk mitigation section, and her LLM stitched it into a coherent-sounding answer. The document’s structure , part IV, chapter 9, article 43 , was never used. It was destroyed at the chunking step, months before she typed the question.</p><blockquote><em>That’s not a hallucination problem. That’s a retrieval problem wearing a hallucination’s clothes.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cbARnQptcA6C-1mRR-HpXg.png" /><figcaption>Traditional retrieval systems navigate your knowledge base blindfolded. STAIR reads the map before it takes a single step</figcaption></figure><h3>The Chunk Problem Nobody Talks About</h3><p>Retrieval Augmented Generation RAG is the architecture behind most enterprise AI assistants right now. You ask a question. The system searches a knowledge base. It pulls the most relevant chunks. It hands them to an LLM, which writes you an answer.</p><p>The part everyone obsesses over is the LLM at the end. Make it bigger. Fine-tune it. Prompt it more carefully.</p><p>But the retriever at the <em>start </em>the one who decides what the LLM sees? Most systems still use a 2004-era idea: slice the document into fixed-length segments and hope the right answer lands inside one of them.</p><p>The technical term is <strong>length-based chunking</strong>. The honest term is: <em>throwing away the map before starting the journey.</em></p><p>When you chunk a document by length, you obliterate structure. A paragraph from the introduction gets treated the same as a paragraph from the conclusion. A heading that ties 40 pages together disappears. The skeleton the author spent years building becomes noise.</p><p>And here’s where hallucinations are really born. Not in the LLM. In the retrieval step. The model gets the wrong section, answers confidently from the wrong chapter, and no amount of prompt engineering fixes a wrong source.</p><blockquote>I’ll admit: when I first read the STAIR paper, I assumed the interesting part would be a new LLM technique. It wasn’t. It was a retrieval technique. Which means the fix was sitting upstream the whole time quiet, unassuming, waiting for someone to ask the right question.</blockquote><h3>Enter STAIR-The Retriever That Reads the Map First</h3><p>IBM Research’s new paper introduces <strong>STAIR: Structure-Aware Information Retriever</strong>. The idea is elegant enough to feel obvious in hindsight, which is usually how you know it’s actually good.</p><p>Before STAIR looks for your answer, it reads the <strong>Table of Contents</strong> of the document.</p><p>That’s it. That’s the insight.</p><p>Instead of asking <em>“which 500-word chunk looks most similar to this query?”</em>, STAIR asks: <em>“given the entire map of this document, which section header is the most likely home for this answer?”</em></p><p>It generates the name of that leaf section, the most specific heading in the ToC that matches , and retrieves only that section’s content for the LLM.</p><p>Think of the consultant at 2am. Traditional RAG hands her LLM a shuffled pile of pages. STAIR hands it chapter 9, article 43 intact, in context, where the author intended it to be read.</p><h3>What Actually Happens When You Ask STAIR a Question</h3><p>Let’s walk through what actually happens when you ask STAIR a question.</p><h4>It reads the whole map</h4><p>STAIR is fine-tuned on Mistral Instruct v0.2. Every training example includes the query <em>and</em> the document’s complete Table of Contents. Not as background. As a first-class input. The model learns the shape of knowledge inside a document.</p><h4>It points instead of searching</h4><p>Classic dense retrievers score every chunk against your query a ranking contest. STAIR instead <em>generates</em> a section header. It’s been taught to read the ToC the way a skilled researcher does: scan the hierarchy, locate the most specific relevant node, go there.</p><h4>It retrieves the right room</h4><p>Once STAIR names the correct leaf node, the system fetches that section’s full, intact content. The LLM gets one precise room not a blended slurry of fragments from twelve.</p><pre>Query: &quot;What are the penalty clauses for breach of contract?&quot;<br><br>Traditional RAG:<br>  └─ Chunk 4  (500 words, definitions chapter)<br>  └─ Chunk 19 (500 words, vaguely related risk section)<br>  └─ Chunk 41 (500 words, correct chapter — mixed with unrelated text)<br>  → LLM generates a confident, partially wrong answer<br><br>STAIR:<br>  └─ Reads full ToC<br>  └─ Generates: &quot;Part IV → Enforcement → Penalty Clauses&quot;<br>  └─ Retrieves that exact section, intact<br>  → LLM generates an accurate, grounded answer</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cplGZXMoS8A8nX6ijoknOA.png" /><figcaption>Traditional RAG shreds the map. STAIR reads it. The difference shows up in your answers</figcaption></figure><h3>The Numbers That Matter, And the One That Matters Most</h3><p>IBM Research tested STAIR against the best retrieval systems available today. The test was simple: ask a question, see if the system finds the right section on the first try. Here’s what happened.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W2YPYvDpj6VVpGkPavibfg.png" /><figcaption>Every grey bar represents years of research. STAIR’s blue bar represents what happens when you give an AI the map before asking it to navigate.</figcaption></figure><p>STAIR gets it right <strong>4 out of every 5 times, </strong>compared to roughly 6 out of 10 for the best existing tools. That gap sounds small until you think about what’s at stake: a doctor checking a drug interaction, a lawyer reading a penalty clause, an engineer following a safety protocol. In those moments, <em>“probably right”</em> isn’t good enough.</p><p>But the number I’d actually put on a poster isn’t the accuracy score. It’s this:</p><blockquote><strong>STAIR makes things up less than 0.05% of the time.</strong> Not 5%. Not 0.5%. Zero point zero five percent.</blockquote><p>To put that in plain terms: if STAIR answers 2,000 questions, it invents a wrong answer roughly <em>once</em>. That’s the number that moves a prototype off a researcher’s laptop and into a real hospital, law firm, or financial institution. That’s the number that gets past the people whose job it is to say no.</p><h3>The Quiet Finding That Actually Changes Everything</h3><p>Most retrieval systems need thousands of training examples to perform well. STAIR can work with very few, because it doesn’t learn the document’s structure from scratch. The structure is already there, encoded in the Table of Contents. STAIR just learns to <em>read</em> it.</p><p>Think about what this means for your actual knowledge base. Not the clean, labelled, benchmark-ready version, the real one. The 900-page technical manual with no Q&amp;A pairs. The clinical guidelines your organisation has been maintaining for fifteen years but has never annotated. The legal handbook that three partners know inside-out but nobody has ever turned into training data.</p><p>STAIR is built for those documents. Not as an eventual roadmap item. As the present design target.</p><h3>What This Means for the RAG Pipeline You’re Running Right Now</h3><p>Here’s the honest question STAIR forces you to ask about your current setup</p><blockquote>Do your documents have structure, headings, chapters, a navigational hierarchy — that your chunking step is currently destroying?</blockquote><p>If yes, you’re not dealing with a model problem. You’re dealing with an information problem you’re hiding from the model. And the fix is upstream, not downstream.</p><p>Feed the structure in. Let the model use the map that already exists. When you do, three things shift:</p><ul><li><strong>Hallucination drops, </strong>the LLM gets the right source material from the start, not a blended estimate of it.</li><li><strong>Low-data settings become viable, </strong>fine-tuning needs fewer examples when structure does the heavy lifting.</li><li><strong>Retrieval becomes auditable, </strong>“We retrieved section 6.3.2” is a defensible answer. “We retrieved the chunk with 0.74 cosine similarity” is not.</li></ul><h3>The Library Was Never Broken</h3><p>The books were always organised. The chapters always had names. The table of contents was always there, a hand-drawn map to every idea in the corpus, placed at the front by the author, ready to be used.</p><p>RAG systems just never looked at it.</p><p>STAIR looked. And the hallucination rate dropped to 0.05%, recall climbed to 82.6%, and a system that works with very few training examples became something you could hand to a domain expert in week one, not month six.</p><p>The librarian was never the problem.</p><p>She was blindfolded.</p><p>STAIR removed the blindfold.</p><p><em>IBM Research STAIR paper: </em><a href="https://arxiv.org/html/2609.03874v1"><em>arxiv.org/html/2609.03874v1</em></a></p><blockquote><strong>If you’re building a RAG pipeline on structured documents — legal, medical, technical, financial — I’d genuinely like to know: </strong>are you already using document structure as an input, or is your chunker still destroying the map? Share what you’re doing in the comments. I have a feeling the gap between what’s possible here and what’s actually deployed is larger than anyone’s admitting.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab69f1ff5ca1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>