Package org.redisson.api.search.index
Class SVSVamanaVectorIndexParams
java.lang.Object
org.redisson.api.search.index.SVSVamanaVectorIndexParams
- All Implemented Interfaces:
FieldIndex,SVSVamanaVectorIndex,SVSVamanaVectorOptionalArgs,VectorDimParam<SVSVamanaVectorOptionalArgs>,VectorDistParam<SVSVamanaVectorOptionalArgs>,VectorTypeParam<SVSVamanaVectorOptionalArgs>
public class SVSVamanaVectorIndexParams
extends Object
implements SVSVamanaVectorIndex, VectorDimParam<SVSVamanaVectorOptionalArgs>, VectorDistParam<SVSVamanaVectorOptionalArgs>, SVSVamanaVectorOptionalArgs
- Author:
- seakider
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.redisson.api.search.index.SVSVamanaVectorOptionalArgs
SVSVamanaVectorOptionalArgs.CompressionAlgorithmNested classes/interfaces inherited from interface org.redisson.api.search.index.VectorDistParam
VectorDistParam.DistanceMetricNested classes/interfaces inherited from interface org.redisson.api.search.index.VectorTypeParam
VectorTypeParam.Type -
Method Summary
Modifier and TypeMethodDescriptionDefines the attribute associated to the field nameDefines compression algorithmconstructionWindowSize(int value) Defines number of the search window size to during graph constructiondim(int value) Defines vector dimension parameterDefines distance metric parameterepsilon(double value) Defines relative factor that sets the boundaries in which a range query may search for candidatesgetAs()intgetCount()intgetDim()getType()graphMaxDegree(int value) Defines the maximum number of edges per nodeleanVecDim(int value) Defines the dimension used when using LeanVec4x8 or LeanVec8x8searchWindowSize(int value) Defines the size of the search windowtrainingThreshold(int value) Defines number of vectors needed to learn compression parameters.type(VectorTypeParam.Type type) Defines vector type parameter
-
Method Details
-
as
Description copied from interface:SVSVamanaVectorIndexDefines the attribute associated to the field name- Specified by:
asin interfaceSVSVamanaVectorIndex- Parameters:
as- the associated attribute- Returns:
- options object
-
dim
Description copied from interface:VectorDimParamDefines vector dimension parameter- Specified by:
dimin interfaceVectorDimParam<SVSVamanaVectorOptionalArgs>- Parameters:
value- vector dimension- Returns:
- vector options
-
distance
Description copied from interface:VectorDistParamDefines distance metric parameter- Specified by:
distancein interfaceVectorDistParam<SVSVamanaVectorOptionalArgs>- Parameters:
metric- distance metric- Returns:
- vector options
-
type
Description copied from interface:VectorTypeParamDefines vector type parameter- Specified by:
typein interfaceVectorTypeParam<SVSVamanaVectorOptionalArgs>- Parameters:
type- vector type parameter- Returns:
- vector options
-
compression
public SVSVamanaVectorOptionalArgs compression(SVSVamanaVectorOptionalArgs.CompressionAlgorithm algorithm) Description copied from interface:SVSVamanaVectorOptionalArgsDefines compression algorithm- Specified by:
compressionin interfaceSVSVamanaVectorOptionalArgs- Parameters:
algorithm- compression algorithm- Returns:
- vector options
-
constructionWindowSize
Description copied from interface:SVSVamanaVectorOptionalArgsDefines number of the search window size to during graph construction- Specified by:
constructionWindowSizein interfaceSVSVamanaVectorOptionalArgs- Parameters:
value- number of search window size- Returns:
- vector options
-
graphMaxDegree
Description copied from interface:SVSVamanaVectorOptionalArgsDefines the maximum number of edges per node- Specified by:
graphMaxDegreein interfaceSVSVamanaVectorOptionalArgs- Parameters:
value- the maximum number of edges- Returns:
- vector options
-
searchWindowSize
Description copied from interface:SVSVamanaVectorOptionalArgsDefines the size of the search window- Specified by:
searchWindowSizein interfaceSVSVamanaVectorOptionalArgs- Parameters:
value- size of the search window- Returns:
- vector options
-
epsilon
Description copied from interface:SVSVamanaVectorOptionalArgsDefines relative factor that sets the boundaries in which a range query may search for candidates- Specified by:
epsilonin interfaceSVSVamanaVectorOptionalArgs- Parameters:
value- relative factor- Returns:
- vector options
-
trainingThreshold
Description copied from interface:SVSVamanaVectorOptionalArgsDefines number of vectors needed to learn compression parameters.- Specified by:
trainingThresholdin interfaceSVSVamanaVectorOptionalArgs- Parameters:
value- number of vectors- Returns:
-
leanVecDim
Description copied from interface:SVSVamanaVectorOptionalArgsDefines the dimension used when using LeanVec4x8 or LeanVec8x8- Specified by:
leanVecDimin interfaceSVSVamanaVectorOptionalArgs- Parameters:
value- the dimension- Returns:
-
getFieldName
-
getType
-
getDim
public int getDim() -
getDistanceMetric
-
getCount
public int getCount() -
getAs
-
getCompressionAlgorithm
-
getConstructionWindowSize
-
getGraphMaxDegree
-
getSearchWindowSize
-
getEpsilon
-
getTrainingThreshold
-
getLeanVecDim
-