Chat Memory
Last updated
Last updated
The Chat Memory block provides the history of inputs and outputs from chain executions as text. This serves as a mechanism for persisting memory of the conversation among executions of the chain.
After running the chain below with an input of Hello, I am Jack. What is your name?
, the chat memory block output will be as follows in the next run of the chain:
Chat Memory histories are persisted per session. When an application is run for the first time, a session is automatically created and you can view the session id in the run panel. To begin a new chat memory history, click on the refresh button next to the session id.