mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-04 20:28:10 +00:00
parent
9b78bb7393
commit
fc1d48814c
@ -32,8 +32,8 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"memory = ConversationSummaryBufferMemory(llm=llm, max_token_limit=10)\n",
|
"memory = ConversationSummaryBufferMemory(llm=llm, max_token_limit=10)\n",
|
||||||
"memory.save_context({\"input\": \"hi\"}, {\"ouput\": \"whats up\"})\n",
|
"memory.save_context({\"input\": \"hi\"}, {\"output\": \"whats up\"})\n",
|
||||||
"memory.save_context({\"input\": \"not much you\"}, {\"ouput\": \"not much\"})"
|
"memory.save_context({\"input\": \"not much you\"}, {\"output\": \"not much\"})"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -73,8 +73,8 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"memory = ConversationSummaryBufferMemory(llm=llm, max_token_limit=10, return_messages=True)\n",
|
"memory = ConversationSummaryBufferMemory(llm=llm, max_token_limit=10, return_messages=True)\n",
|
||||||
"memory.save_context({\"input\": \"hi\"}, {\"ouput\": \"whats up\"})\n",
|
"memory.save_context({\"input\": \"hi\"}, {\"output\": \"whats up\"})\n",
|
||||||
"memory.save_context({\"input\": \"not much you\"}, {\"ouput\": \"not much\"})"
|
"memory.save_context({\"input\": \"not much you\"}, {\"output\": \"not much\"})"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user