Рет қаралды 3,679
#openai #langchain #langchainjs
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 JS Chat Memory Docs: js.langchain.com/docs/integra...
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 Memory
00:47 - The Problem
01:40 - Project Setup
03:30 - BufferMemory
05:33 - ConversationChain
08:43 - Long Term Memory
08:56 - Adding Upstash Redis Memory
10:50 - Create Upstash Account
12:41 - LCEL RunnableSequence Approach
17:31 - Save Context to Memory