Package com.redis.vl.langchain4j
Class RedisVLChatMemoryStore.Builder
java.lang.Object
com.redis.vl.langchain4j.RedisVLChatMemoryStore.Builder
- Enclosing class:
RedisVLChatMemoryStore
Builder for RedisVLChatMemoryStore.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the chat memory store.jedis(UnifiedJedis jedis) Sets the Redis client.Sets the key prefix.ttlSeconds(Integer ttlSeconds) Sets the TTL for conversation history.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jedis
Sets the Redis client.- Parameters:
jedis- The Jedis client- Returns:
- This builder
-
keyPrefix
Sets the key prefix.- Parameters:
keyPrefix- The key prefix- Returns:
- This builder
-
ttlSeconds
Sets the TTL for conversation history.- Parameters:
ttlSeconds- TTL in seconds (null for no expiration)- Returns:
- This builder
-
build
Builds the chat memory store.- Returns:
- A new RedisVLChatMemoryStore
-