Use this file to discover all available pages before exploring further.
Memory components store and retrieve chat messages.They are distinct from vector store components because they are built specifically for storing and retrieving chat messages from external databases.Memory components provide access to their respective external databases as memory. This allows Large Language Models (LLMs) or agents to access external memory for persistence and context retention.
This example flow stores and retrieves chat history from an LLMC Vector DB Chat Memory component with Store Message and Message history components.The Store Message helper component stores chat memories as Data objects, and the Message History helper component retrieves chat messages as Data objects or strings.
This component creates an AstraDBChatMessageHistory instance, which stores and retrieves chat messages using Astra DB, a cloud-native database service.
Parameters
Inputs
Name
Type
Description
collection_name
String
The name of the Astra DB collection for storing messages. Required.
token
SecretString
The authentication token for Astra DB access. Required.
api_endpoint
SecretString
The API endpoint URL for the Astra DB service. Required.
namespace
String
The optional namespace within Astra DB for the collection.
session_id
MessageText
The unique identifier for the chat session. Uses the current session ID if not provided.
Outputs
Name
Type
Description
message_history
BaseChatMessageHistory
An instance of AstraDBChatMessageHistory for the session.
This component creates a CassandraChatMessageHistory instance, enabling storage and retrieval of chat messages using Apache Cassandra or DataStax Astra DB.
Parameters
Inputs
Name
Type
Description
database_ref
MessageText
The contact points for the Cassandra database or Astra DB database ID. Required.
username
MessageText
The username for Cassandra. Leave empty for Astra DB.
token
SecretString
The password for Cassandra or the token for Astra DB. Required.
keyspace
MessageText
The keyspace in Cassandra or namespace in Astra DB. Required.
table_name
MessageText
The name of the table or collection for storing messages. Required.
session_id
MessageText
The unique identifier for the chat session. Optional.
cluster_kwargs
Dictionary
Additional keyword arguments for the Cassandra cluster configuration. Optional.
Outputs
Name
Type
Description
message_history
BaseChatMessageHistory
An instance of CassandraChatMessageHistory for the session.