<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>RLM on Programmer.ie</title>
    <link>http://programmer.ie/tags/rlm/</link>
    <description>Recent content in RLM on Programmer.ie</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 28 Aug 2026 11:10:00 +0100</lastBuildDate>
    <atom:link href="http://programmer.ie/tags/rlm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>DSPy From First Principles 15: Search, Memory and Long Context</title>
      <link>http://programmer.ie/books/dspy-from-first-principles/15-chapter/</link>
      <pubDate>Fri, 28 Aug 2026 11:10:00 +0100</pubDate>
      <guid>http://programmer.ie/books/dspy-from-first-principles/15-chapter/</guid>
      <description>&lt;h1 id=&#34;search-memory-and-long-context&#34;&gt;Search, Memory and Long Context&lt;/h1&gt;&#xA;&lt;p&gt;Chapter 14 gave the program tools. It can inspect an environment instead of receiving all evidence up front.&lt;/p&gt;&#xA;&lt;p&gt;Now we face the selection problem:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;When the necessary evidence is too large to place directly in the prompt, how should the program decide what to inspect?&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;Several mechanisms are often collapsed into one word: context. They are different.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;1. Put context directly in the prompt&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;2. Retrieve context before the LM call&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;3. Let an agent choose retrieval tools&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;4. Retrieve previous cases / memory&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;5. Let a model programmatically explore a large context&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Each creates a different evidence-selection boundary, with different costs, failure modes, and leakage risks.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
