public class VectorFieldArgs extends FieldArgs
Vector fields are floating-point vectors that are typically generated by external machine learning models. These vectors represent unstructured data such as text, images, or other complex features. Redis allows you to search for similar vectors using vector search algorithms like cosine similarity, Euclidean distance, and inner product.
| Modifier and Type | Class and Description |
|---|---|
static class |
VectorFieldArgs.Algorithm
Vector similarity index algorithms.
|
static class |
VectorFieldArgs.Builder
Builder for
VectorFieldArgs. |
static class |
VectorFieldArgs.DistanceMetric
Distance metrics for vector similarity.
|
static class |
VectorFieldArgs.VectorType
Vector data types.
|
as, indexEmpty, indexMissing, name, noIndex, sortable, unNormalizedForm| Constructor and Description |
|---|
VectorFieldArgs() |
| Modifier and Type | Method and Description |
|---|---|
static VectorFieldArgs.Builder |
builder()
Create a new
VectorFieldArgs using the builder pattern. |
protected void |
buildTypeSpecificArgs(CommandArgs<?,?> args)
Add type-specific arguments to the command.
|
Optional<VectorFieldArgs.Algorithm> |
getAlgorithm()
Get the vector algorithm.
|
Map<String,Object> |
getAttributes()
Get the vector attributes.
|
String |
getFieldType()
Returns the field type.
|
build, getAs, getName, isIndexEmpty, isIndexMissing, isNoIndex, isSortable, isUnNormalizedFormpublic static VectorFieldArgs.Builder builder()
VectorFieldArgs using the builder pattern.VectorFieldArgs.Builderpublic String getFieldType()
FieldArgsgetFieldType in class FieldArgspublic Optional<VectorFieldArgs.Algorithm> getAlgorithm()
public Map<String,Object> getAttributes()
protected void buildTypeSpecificArgs(CommandArgs<?,?> args)
FieldArgsbuildTypeSpecificArgs in class FieldArgsargs - the command arguments to modifyCopyright © 2026 lettuce.io. All rights reserved.