LangChain Tutorial (Python) #7: Long Term Chat Memory with Upstash Redis
Автор: Leon van Zyl
Загружено: 2024-02-12
Просмотров: 9485
#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:
Langchain Python docs: https://python.langchain.com/docs/get...
Source Code: https://github.com/leonvanzyl/langcha...
Upstash: https://upstash.com/?utm_source=Leon_...
☕ Buy me a coffee:
https://www.buymeacoffee.com/leonvanzyl
💬 Chat with Like-Minded Individuals on Discord:
/ discord
🕒 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
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: