But you don't just have to use the predefined conversation chain! Here's how you can add memory to any LLM chain: https://
langchain.readthedocs.io/en/latest/exam
ples/memory/adding_memory.html
… And here's how you can add memory to an agent: https://
langchain.readthedocs.io/en/latest/exam
ples/memory/agent_with_memory.html
…
@langchain
-
Add Memory to Any LLM Chain and Agent
By
–
-
LangChain Chains Now Support Stateful Conversations and Memory
By
–
So far all the chains/agents in LangChain have been stateless, meaning each interaction is independent This is far from ideal for some real world settings (eg chatbots) where you want the chain/agent to remember previous conversations
-
Memory Module: Loading and Saving Data in Chains
By
–
To achieve this, we added the the concept of a memory module This module: Loads things from memory before passing user input to the chain Saves things to memory after the chain is finished
-
Types of Memory in LangChain: Short-term and Long-term
By
–
There are different types of memory, eg: Short term memory, like what the previous user input was Long term memory, like what the user previous said about a particular person or place Both of these can fit into this memory abstraction. Let's take a closer look at some
-
ConversationChain and Memory Module in LangChain
By
–
This past Friday @sjwhitmore added the very cool ConversationChain As part of doing this, she also added the concept of a Memory module. Here's what that is and why it's useful, :
-
LangChain Version 0.0.23 Release with New Features and Bug Fixes
By
–
LangChain Version 0.0.23 new contributors! Unicode fix for windows (
@mark_k
) Self-ask w/ search bug fix (h/t @Raza_Habib496 for finding it) Readme update (
@dillchen
) @huggingface Hub embedding support (
@baga_tur
) Save prompts to disk (
@AkashSamant4
) -
LangChain Open Source Demos and Projects Featured on GitHub
By
–
We’re going to assembling a list of open source demos/projects that use LangChain and feature then on our GitHub. Which ones should we include?
-
LangChain seeks permission to feature JavaFXpert demo on GitHub
By
–
@JavaFXpert is it okay if we feature this on our GitHub? Going to start collecting examples of cool demos
-
LangChain Demo Showcasing Prompt Templates LLM Chains
By
–
Very cool demo that is also a great showcase for using LangChain’s prompt templates, LLM wrapper, and chains
-
LLM Interactions Beyond Prompts: Integration with Tools and Systems
By
–
Yeah it’s really not limited to prompts talking to eachother, but rather any interactions between an LLM and other things (whether that be another prompt, or a python REPL, or anything)