chatHistory
that backs chat memory classes like BufferMemory
for Astra DB.
Setup
You need to install the Astra DB TS client:npm
npm
Configuration and Initalization
There are two ways to inialize yourAstraDBChatMessageHistory
If you already have an instance of the AstraDB
client defined you can connect to your collection and initialize an instance of the ChatMessageHistory
using the constuctor.
AstraDB
client you can use the initialize
method.
Usage
TipYour collection must already exist