redis
__all__ = ['RedisConversationMemoryDriver']
module-attribute
RedisConversationMemoryDriver
Bases: BaseConversationMemoryDriver
A Conversation Memory Driver for Redis.
This driver interfaces with a Redis instance and utilizes the Redis hashes and RediSearch module to store, retrieve, and query conversations in a structured manner. Proper setup of the Redis instance and RediSearch is necessary for the driver to function correctly.
Attributes:
Name | Type | Description |
---|---|---|
host |
str
|
The host of the Redis instance. |
port |
int
|
The port of the Redis instance. |
db |
int
|
The database of the Redis instance. |
username |
str
|
The username of the Redis instance. |
password |
Optional[str]
|
The password of the Redis instance. |
index |
str
|
The name of the index to use. |
conversation_id |
str
|
The id of the conversation. |