<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>RAG on Andrew Hunter — Systems Architect &amp; Builder</title>
    <link>https://andrewphunter.com/tags/rag/</link>
    <description>Recent content in RAG on Andrew Hunter — Systems Architect &amp; Builder</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 01 Dec 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://andrewphunter.com/tags/rag/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Agents in Production — Part IV: Before the Model Can Answer</title>
      <link>https://andrewphunter.com/writing/before-the-model-can-answer/</link>
      <pubDate>Tue, 01 Dec 2026 00:00:00 +0000</pubDate>
      <guid>https://andrewphunter.com/writing/before-the-model-can-answer/</guid>
      <description>&lt;p&gt;In the previous essays, we gave the &lt;a href=&#34;https://andrewphunter.com/writing/the-agent-is-still-an-actor/&#34;&gt;actor an inference loop&lt;/a&gt; and followed its &lt;a href=&#34;https://andrewphunter.com/writing/the-tool-call-is-a-distributed-transaction/&#34;&gt;tool calls into the distributed system&lt;/a&gt;. That actor can interpret a request and ask other services to do work, but answering a question about the business also requires information those decisions can depend on. Someone asking whether a hotel booking needs approval expects an answer based on the company&amp;rsquo;s policy. A retrieval tool can supply the relevant material for inference, provided we have prepared the policy so that what comes back still means what the business wrote.&lt;/p&gt;&#xA;&lt;p&gt;Preparing that information is ETL: extracting it from its sources, transforming it for the consumer, and loading it into a system that can serve it. Retrieval-augmented generation, or RAG, then selects material for a question and includes it in the model&amp;rsquo;s context to help produce an answer. The preparation has much in common with the pipelines we build for reporting and analytics, where the downstream use determines the representation we need. Here, the consumer is inference, often working from selected passages rather than a complete document. Following that change through ETL explains the work behind a retrieval tool before we choose a chunk size or a vector store.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Agents in Production — Part V: From a Question to Useful Evidence</title>
      <link>https://andrewphunter.com/writing/from-a-question-to-useful-evidence/</link>
      <pubDate>Tue, 01 Dec 2026 00:00:00 +0000</pubDate>
      <guid>https://andrewphunter.com/writing/from-a-question-to-useful-evidence/</guid>
      <description>&lt;p&gt;Most of us have spent years asking a search engine to find something without having to think much about how it does that. We type a question, inspect the results, and change the wording if they are unhelpful. Behind that search box are decisions about how to index information, interpret the question, find candidates, and decide which deserve our attention. Google makes those decisions for its service. When we add retrieval to an application, many of those decisions become ours.&lt;/p&gt;&#xA;&lt;p&gt;RAG brings the machinery of a search engine into the application. What feels new to many teams is the responsibility for building and operating search, a discipline they previously consumed through a search box. Enterprise document systems have been doing this work for years, and the underlying techniques are available in libraries and managed services. We can now assemble them around a collection of policies or product documentation without operating a web-scale search company. The smaller collection reduces the scale of the work, but it still contains competing matches, inconsistent vocabulary, and questions whose useful answers are spread across several places.&lt;/p&gt;&#xA;&lt;p&gt;In &lt;a href=&#34;https://andrewphunter.com/writing/before-the-model-can-answer/&#34;&gt;Before the Model Can Answer&lt;/a&gt;, we prepared an invented travel policy through ETL, preserving the hotel limits together with their units and approval conditions. Now someone asks, “Do I need permission to book a London hotel above the nightly limit?” We have the material that answers that question. Following how we find it gives us a way to understand the search infrastructure we are putting inside the application, and where inference participates in it.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
