forked from Archives/langchain
7bec461782
moves memory to own module, factors out common stuff
33 lines
1.3 KiB
ReStructuredText
33 lines
1.3 KiB
ReStructuredText
Memory
|
|
==========================
|
|
|
|
By default, Chains and Agents are stateless,
|
|
meaning that they treat each incoming query independently (as are the underlying LLMs and chat models).
|
|
In some applications (chatbots being a GREAT example) it is highly important
|
|
to remember previous interactions, both at a short term but also at a long term level.
|
|
The concept of “Memory” exists to do exactly that.
|
|
|
|
LangChain provides memory components in two forms.
|
|
First, LangChain provides helper utilities for managing and manipulating previous chat messages.
|
|
These are designed to be modular and useful regardless of how they are used.
|
|
Secondly, LangChain provides easy ways to incorporate these utilities into chains.
|
|
|
|
The following sections of documentation are provided:
|
|
|
|
- `Getting Started <./memory/getting_started.html>`_: An overview of how to get started with different types of memory.
|
|
|
|
- `Key Concepts <./memory/key_concepts.html>`_: A conceptual guide going over the various concepts related to memory.
|
|
|
|
- `How-To Guides <./memory/how_to_guides.html>`_: A collection of how-to guides. These highlight different types of memory, as well as how to use memory in chains.
|
|
|
|
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
:caption: Memory
|
|
:name: Memory
|
|
|
|
./memory/getting_started.ipynb
|
|
./memory/key_concepts.rst
|
|
./memory/how_to_guides.rst
|