<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Memory on Pythonflow</title>
		<link>https://pythonflow.com/tags/memory/</link>
		<description>Recent content in Memory on Pythonflow</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
			<managingEditor>alicandonmez90@gmail.com (flowfelis)</managingEditor>
		
		
			<webMaster>alicandonmez90@gmail.com (flowfelis)</webMaster>
		
		
		
			<lastBuildDate>Thu, 18 Jun 2026 07:00:00 +0100</lastBuildDate>
		
			<atom:link href="https://pythonflow.com/tags/memory/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>LangBot Day 2: Giving Your Chatbot a Memory with Conversation History</title>
				<link>https://pythonflow.com/posts/langbot-day-2-conversation-memory/</link>
				<pubDate>Thu, 18 Jun 2026 07:00:00 +0100</pubDate><author>alicandonmez90@gmail.com (flowfelis)</author>
				<guid>https://pythonflow.com/posts/langbot-day-2-conversation-memory/</guid>
				<description>&lt;p&gt;&lt;strong&gt;Recap:&lt;/strong&gt; Yesterday we built LangBot — a 27-line CLI chatbot powered by &lt;code&gt;ChatOpenAI&lt;/code&gt;. It works, but every message starts from scratch. Ask &amp;ldquo;What&amp;rsquo;s my name?&amp;rdquo; and it invents one. Remind it &amp;ldquo;My name is Alex&amp;rdquo; and ask again — it still guesses. Today we fix that.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;the-problem-amnesia-mode&#34;&gt;The problem: amnesia mode&lt;/h2&gt;&#xA;&lt;p&gt;Try this in Day 1&amp;rsquo;s LangBot:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;You: My favorite color is blue.&#xA;&#xA;LangBot: That&amp;#39;s a great choice! Blue is calming and versatile.&#xA;&#xA;You: What did I just say my favorite color was?&#xA;&#xA;LangBot: I&amp;#39;m not sure — you haven&amp;#39;t mentioned a favorite color in this conversation.&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Every call to &lt;code&gt;llm.invoke()&lt;/code&gt; sends a single &lt;code&gt;HumanMessage&lt;/code&gt;. The model has zero context from previous turns. For a real chatbot, this is a dealbreaker.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
