Class RedisEmbeddingStore.Builder
java.lang.Object
dev.langchain4j.store.embedding.redis.RedisEmbeddingStore.Builder
- Enclosing class:
RedisEmbeddingStore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
metadataFieldsName
(Collection<String> metadataFieldsName) Deprecated.metadataKeys
(Collection<String> metadataKeys)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
host
- Parameters:
host
- Redis Stack host
-
port
- Parameters:
port
- Redis Stack port
-
user
- Parameters:
user
- Redis Stack username (optional)
-
password
- Parameters:
password
- Redis Stack password (optional)
-
indexName
- Parameters:
indexName
- The name of the index (optional). Default value: "embedding-index".- Returns:
- builder
-
prefix
- Parameters:
prefix
- The prefix of the key, should end with a colon (e.g., "embedding:") (optional). Default value: "embedding:".- Returns:
- builder
-
dimension
- Parameters:
dimension
- embedding vector dimension- Returns:
- builder
-
metadataFieldsName
@Deprecated public RedisEmbeddingStore.Builder metadataFieldsName(Collection<String> metadataFieldsName) Deprecated.usemetadataKeys(Collection)
instead- Parameters:
metadataFieldsName
- metadata fields names (optional)
-
metadataKeys
- Parameters:
metadataKeys
- Metadata keys that should be persisted (optional)
-
build
-
metadataKeys(Collection)
instead