#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: python.langchain.com/docs/get...
Source Code: github.com/leonvanzyl/langcha...
Upstash: upstash.com/?Leon_...
☕ Buy me a coffee:
www.buymeacoffee.com/leonvanzyl
💬 Chat with Like-Minded Individuals on Discord:
/ discord
🧠 I can build your chatbots for you!
www.cognaitiv.ai
🕒 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
7 июл 2024