mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
fix headers (#2039)
This commit is contained in:
parent
bc2ed93b77
commit
b26fa1935d
@ -5,7 +5,7 @@
|
|||||||
"id": "46196aa3",
|
"id": "46196aa3",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"## ConversationBufferMemory\n",
|
"# ConversationBufferMemory\n",
|
||||||
"\n",
|
"\n",
|
||||||
"This notebook shows how to use `ConversationBufferMemory`. This memory allows for storing of messages and then extracts the messages in a variable.\n",
|
"This notebook shows how to use `ConversationBufferMemory`. This memory allows for storing of messages and then extracts the messages in a variable.\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"id": "a20c4e38",
|
"id": "a20c4e38",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"## ConversationBufferWindowMemory\n",
|
"# ConversationBufferWindowMemory\n",
|
||||||
"\n",
|
"\n",
|
||||||
"`ConversationBufferWindowMemory` keeps a list of the interactions of the conversation over time. It only uses the last K interactions. This can be useful for keeping a sliding window of the most recent interactions, so the buffer does not get too large\n",
|
"`ConversationBufferWindowMemory` keeps a list of the interactions of the conversation over time. It only uses the last K interactions. This can be useful for keeping a sliding window of the most recent interactions, so the buffer does not get too large\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"id": "44c9933a",
|
"id": "44c9933a",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"## Conversation Knowledge Graph Memory\n",
|
"# Conversation Knowledge Graph Memory\n",
|
||||||
"\n",
|
"\n",
|
||||||
"This type of memory uses a knowledge graph to recreate memory.\n",
|
"This type of memory uses a knowledge graph to recreate memory.\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"id": "1674bfd6",
|
"id": "1674bfd6",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"## ConversationSummaryMemory\n",
|
"# ConversationSummaryMemory\n",
|
||||||
"Now let's take a look at using a slightly more complex type of memory - `ConversationSummaryMemory`. This type of memory creates a summary of the conversation over time. This can be useful for condensing information from the conversation over time.\n",
|
"Now let's take a look at using a slightly more complex type of memory - `ConversationSummaryMemory`. This type of memory creates a summary of the conversation over time. This can be useful for condensing information from the conversation over time.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Let's first explore the basic functionality of this type of memory."
|
"Let's first explore the basic functionality of this type of memory."
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"id": "ff4be5f3",
|
"id": "ff4be5f3",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"## ConversationSummaryBufferMemory\n",
|
"# ConversationSummaryBufferMemory\n",
|
||||||
"\n",
|
"\n",
|
||||||
"`ConversationSummaryBufferMemory` combines the last two ideas. It keeps a buffer of recent interactions in memory, but rather than just completely flushing old interactions it compiles them into a summary and uses both. Unlike the previous implementation though, it uses token length rather than number of interactions to determine when to flush interactions.\n",
|
"`ConversationSummaryBufferMemory` combines the last two ideas. It keeps a buffer of recent interactions in memory, but rather than just completely flushing old interactions it compiles them into a summary and uses both. Unlike the previous implementation though, it uses token length rather than number of interactions to determine when to flush interactions.\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"id": "ff4be5f3",
|
"id": "ff4be5f3",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"## ConversationTokenBufferMemory\n",
|
"# ConversationTokenBufferMemory\n",
|
||||||
"\n",
|
"\n",
|
||||||
"`ConversationTokenBufferMemory` keeps a buffer of recent interactions in memory, and uses token length rather than number of interactions to determine when to flush interactions.\n",
|
"`ConversationTokenBufferMemory` keeps a buffer of recent interactions in memory, and uses token length rather than number of interactions to determine when to flush interactions.\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user