LangChain Tutorial (Python) #7: Long Term Chat Memory with Upstash Redis

preview_player
Показать описание
#openai #langchain

The Memory modules in Langchain make it simple to permanently store conversations in a database, so that we can recall and continue those conversations in the future - just like the conversations in ChatGPT.

📑 Useful Links:

☕ Buy me a coffee:

💬 Chat with Like-Minded Individuals on Discord:

🧠 I can build your chatbots for you!

🕒 TIMESTAMPS:
00:00 - Introduction to Chat Memory
00:28 - Project setup
02:00 - Benefit of Memory over manual history
03:19 - Adding ConversationBufferMemory
04:59 - LLMChain Class
07:30 - Upstash Redis Chat Memory
10:56 - Attach Redis History to Memory
12:18 - Adding Memory to Agents
Рекомендации по теме
Комментарии
Автор

best LangChain series i’ve seen on youtube! would be awesome if you make a series about LangGraph

MatheusTassoo
Автор

This is the best LangChain playlist on youtube!
Thank you a lot for doing it!

karimshakirov
Автор

Leon this content is amazing, you definitely have a skill to teach!

tony
Автор

Perfect lesson, thank you so much. I will be on heaven when langgraph series come

jo_ji
Автор

Wow! Subscribed. Keep Going.
Love from 🇮🇳

akshitha
Автор

Thanks Leon. Great teaching style. I just subscribed

udaynj
Автор

For such nice tutorial, It's worth sharing the code as well :D

mlTS
Автор

Hey, thank you so much for making these content so digestible.
Could you please also make tutorials on LangServe.

inaminute
Автор

Hi, I am learning this topic. I was wondering if i were to input custom data with this method how do i go about this?

leeam
Автор

Thank you for the great work on these series. Q: We do not need to add the Embeddings functionality when using Memory?

nadershalabi
Автор

How to have it not always put the entire Chat history into the answer? Please help me with this.
And another question. Will the chatbot be able to retrieve memory from even the oldest messages stored in the database and if so does this clutter up the token usage?

Oliver-zysq
Автор

really thanks for the video
buti have a question is it possible to add upstash redis into agents memory ?

chakerayachi
Автор

Amazing tut. Thank you so much!
In your implementation, what if the chat memory have millions of history messages? Can we still use this technique or
Should we vectorized and embedded the chat history into vector database?

quangtho
Автор

LLMChain is deprecated. Says to use runnable sequence... in my noobness i guess it is what we're use to ? What's the fix? That doesn't have a way to insert memory in the there correct?

btc_noob
Автор

Hello ! This video was just crystal clear, thank you for that !
I Am currently looking for a way to implement upstash redis with LCEL chains (RunnableWithMemory class), there are examples in the LangChain documentation but they use a file as database for simplicity

Could you make a video about that ?

alaminegueye
Автор

Seems would be cheaper in production to just use sqlite or postgres etc...by the time you add up all the 3rd party components, you are adding enormous cyber security risk + costs for each of these components, although they make delivery so much easier. What is your opinion?

udaynj