<?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: Liam Steiner</title>
    <description>The latest articles on DEV Community by Liam Steiner (@sliamh11).</description>
    <link>https://dev.to/sliamh11</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3869443%2F6c3565e3-0bdb-451b-9e52-a4daae110aae.png</url>
      <title>DEV Community: Liam Steiner</title>
      <link>https://dev.to/sliamh11</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sliamh11"/>
    <language>en</language>
    <item>
      <title>My AI study sessions kept starting from zero — so I built persistent memory into the assistant</title>
      <dc:creator>Liam Steiner</dc:creator>
      <pubDate>Thu, 09 Apr 2026 10:42:41 +0000</pubDate>
      <link>https://dev.to/sliamh11/my-ai-study-sessions-kept-starting-from-zero-so-i-built-persistent-memory-into-the-assistant-dlk</link>
      <guid>https://dev.to/sliamh11/my-ai-study-sessions-kept-starting-from-zero-so-i-built-persistent-memory-into-the-assistant-dlk</guid>
      <description>&lt;p&gt;I study physics in whatever gaps exist in my day. Twenty minutes before work, an hour on a good evening. Sessions are short and scattered.&lt;/p&gt;

&lt;p&gt;The problem wasn't the AI — it was the re-onboarding. Every session I'd spend the first ten minutes re-explaining where I was: what topic, what notation&lt;br&gt;
  we'd agreed on, what I was stuck on last time. Half the session gone before asking anything useful.&lt;/p&gt;

&lt;p&gt;So I built a memory layer. Every conversation gets indexed into a local sqlite-vec database with Gemini embeddings. When a new session starts, it queries semantically for relevant past context:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;q_vec&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;embed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;
      SELECT e.path, e.date, e.tldr, e.topics, v.distance
      FROM embeddings v
      JOIN entries e ON e.id = v.rowid
      WHERE v.embedding MATCH ? AND k = ?
      ORDER BY v.distance
      &lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;serialize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;q_vec&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;top&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;fetchall&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The difference in practice: I ask about the Euler-Lagrange equation and it already knows we spent three sessions on constrained systems last week, that I&lt;br&gt;
  keep mixing up generalized coordinates, and that we're using Goldstein as the reference. I don't say any of that — it just knows.&lt;/p&gt;

&lt;p&gt;But it's not limited to study sessions. &lt;br&gt;
Last week I asked it what movie my roommate and I could watch together. It knew both our tastes from past conversations and gave a recommendation that actually made sense. &lt;br&gt;
That's when it clicked for me — it doesn't just remember topics, it remembers you.&lt;/p&gt;

&lt;p&gt;Everything runs locally — no cloud memory store, no third-party seeing your conversations. &lt;br&gt;
Open source if you want to dig in: github.com/sliamh11/Deus&lt;/p&gt;

</description>
      <category>ai</category>
      <category>learning</category>
      <category>selfhosted</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
