To Data & Beyond

To Data & Beyond

Share this post

To Data & Beyond
To Data & Beyond
Hands-On LangChain for LLMs App: ChatBots Memory

Hands-On LangChain for LLMs App: ChatBots Memory

Youssef Hosni's avatar
Youssef Hosni
Feb 17, 2024
∙ Paid
2

Share this post

To Data & Beyond
To Data & Beyond
Hands-On LangChain for LLMs App: ChatBots Memory
1
Share

When interacting with language models, such as Chatbots, the absence of memory poses a significant hurdle in creating natural and seamless conversations. Users expect continuity and context retention, which traditional models lack. This limitation becomes particularly evident in applications where ongoing dialogue is crucial for user engagement and satisfaction.

LangChain offers robust solutions to address this challenge. Memory, in this context, refers to the ability of the language model to remember previous parts of a conversation and use that information to inform subsequent interactions. By incorporating memory into the model’s architecture, LangChain enables Chatbots and similar applications to maintain a conversational flow that mimics human-like dialogue.

LangChain’s memory capabilities extend beyond mere recall of past interactions. It encompasses sophisticated mechanisms for storing, organizing, and retrieving relevant information, ensuring that the Chatbot can respond appropriately based on the context of the conversation. This not only enhances the user experience but also enables the Chatbot to provide more accurate and relevant responses over time.

Table of Contents:

  1. Setting Up Working Environment & Getting Starting 

  2. Conversation Buffer Memory

  3. Conversation Buffer Window Memory

  4. Conversation Token Buffer Memory

  5. Conversation Summary Memory


My E-book: Data Science Portfolio for Success Is Out!

Youssef Hosni
·
September 15, 2023
My E-book: Data Science Portfolio for Success Is Out!

I recently published my first e-book Data Science Portfolio for Success which is a practical guide on how to build your data science portfolio. The book covers the following topics: The Importance of Having a Portfolio as a Data Scientist How to Build a Data Science Portfolio That Will Land You a Job?

Read full story

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 Youssef Hosni
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share