Managing Conversation History Without Blowing Your Token Budget

Posted on Wed 19 August 2026 in GenAI • Tagged with GenAI, LLM, LangChain, Python, Memory, Token Management, Chatbot

LLMs have no memory between calls. Every time you hit the API, the model starts fresh. To build a chatbot that remembers what was said three messages ago, you have to manually pass that history back in on every request. The problem: each message adds tokens, and token budgets are …


Continue reading

Giving Your Chatbot Memory: ConversationBufferMemory vs. Other Memory Types

Posted on Thu 30 July 2026 in GenAI • Tagged with GenAI, LLM, LangChain, Memory, Chatbot, Python, AI Engineering

By default, an LLM has no idea what you said two messages ago. Every call is stateless — the model processes whatever is in the current prompt and nothing else. If you want a chatbot that remembers the conversation, you have to build that yourself. LangChain's memory modules are how you …


Continue reading