Class RedisEmbeddingStore.Builder
java.lang.Object
dev.langchain4j.store.embedding.redis.RedisEmbeddingStore.Builder
- Enclosing class:
RedisEmbeddingStore
-
Constructor Summary
Constructors -
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
-
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