Skip to content

Commit 907c758

Browse files
authored
docs[patch]: add long-term memory agent tutorial (#27057)
1 parent 635c55c commit 907c758

File tree

3 files changed

+1087
-5
lines changed

3 files changed

+1087
-5
lines changed

docs/docs/versions/migrating_memory/conversation_buffer_memory.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
"Please refer to the following [migration guide](/docs/versions/migrating_chains/conversation_chain/) for more information.\n",
269269
"\n",
270270
"\n",
271-
"## Usasge with a pre-built agent\n",
271+
"## Usage with a pre-built agent\n",
272272
"\n",
273273
"This example shows usage of an Agent Executor with a pre-built agent constructed using the [create_tool_calling_agent](https://python.langchain.com/api_reference/langchain/agents/langchain.agents.tool_calling_agent.base.create_tool_calling_agent.html) function.\n",
274274
"\n",
@@ -546,7 +546,7 @@
546546
"name": "python",
547547
"nbconvert_exporter": "python",
548548
"pygments_lexer": "ipython3",
549-
"version": "3.11.4"
549+
"version": "3.12.3"
550550
}
551551
},
552552
"nbformat": 4,

docs/docs/versions/migrating_memory/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ Memory classes that fall into this category include:
8585
| `ConversationTokenBufferMemory` | [Link to Migration Guide](conversation_buffer_window_memory) | Keeps only the most recent messages in the conversation under the constraint that the total number of tokens in the conversation does not exceed a certain limit. |
8686
| `ConversationSummaryMemory` | [Link to Migration Guide](conversation_summary_memory) | Continually summarizes the conversation history. The summary is updated after each conversation turn. The abstraction returns the summary of the conversation history. |
8787
| `ConversationSummaryBufferMemory` | [Link to Migration Guide](conversation_summary_memory) | Provides a running summary of the conversation together with the most recent messages in the conversation under the constraint that the total number of tokens in the conversation does not exceed a certain limit. |
88-
| `VectorStoreRetrieverMemory` | See related [long-term memory agent tutorial](https://langchain-ai.github.io/langgraph/tutorials/memory/long_term_memory_agent/) | Stores the conversation history in a vector store and retrieves the most relevant parts of past conversation based on the input. |
88+
| `VectorStoreRetrieverMemory` | See related [long-term memory agent tutorial](long_term_memory_agent) | Stores the conversation history in a vector store and retrieves the most relevant parts of past conversation based on the input. |
8989

9090

9191
### 2. Extraction of structured information from the conversation history
9292

93-
Please see [long-term memory agent tutorial](https://langchain-ai.github.io/langgraph/tutorials/memory/long_term_memory_agent/) implements an agent that can extract structured information from the conversation history.
93+
Please see [long-term memory agent tutorial](long_term_memory_agent) implements an agent that can extract structured information from the conversation history.
9494

9595
Memory classes that fall into this category include:
9696

@@ -114,7 +114,7 @@ abstractions are not as widely used as the conversation history management abstr
114114

115115
For this reason, there are no migration guides for these abstractions. If you're struggling to migrate an application
116116
that relies on these abstractions, please:
117-
1) Please review this [Long-term memory agent tutorial](https://langchain-ai.github.io/langgraph/tutorials/memory/long_term_memory_agent/) which should provide a good starting point for how to extract structured information from the conversation history.
117+
1) Please review this [Long-term memory agent tutorial](long_term_memory_agent) which should provide a good starting point for how to extract structured information from the conversation history.
118118
2) If you're still struggling, please open an issue on the LangChain GitHub repository, explain your use case, and we'll try to provide more guidance on how to migrate these abstractions.
119119

120120
The general strategy for extracting structured information from the conversation history is to use a chat model with tool calling capabilities to extract structured information from the conversation history.

docs/docs/versions/migrating_memory/long_term_memory_agent.ipynb

Lines changed: 1082 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)