Class IVFIndex
java.lang.Object
dev.langchain4j.community.store.embedding.alloydb.index.IVFIndex
- All Implemented Interfaces:
BaseIndex
IVF index
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassBuilder which configures and creates instances ofIVFIndex. -
Field Summary
Fields inherited from interface dev.langchain4j.community.store.embedding.alloydb.index.BaseIndex
DEFAULT_INDEX_NAME_SUFFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionthe distance strategy for the indexget index query optionsretrieve index typegetName()retrieve nameretrieve partial indexes
-
Constructor Details
-
IVFIndex
Constructor for IVFIndex- Parameters:
builder- builder
-
-
Method Details
-
getIndexOptions
get index query options- Specified by:
getIndexOptionsin interfaceBaseIndex- Returns:
- index query options string
-
getDistanceStrategy
the distance strategy for the index- Specified by:
getDistanceStrategyin interfaceBaseIndex- Returns:
- DistanceStrategy
-
getPartialIndexes
retrieve partial indexes- Specified by:
getPartialIndexesin interfaceBaseIndex- Returns:
- list of partial indexes
-
getIndexType
retrieve index type- Specified by:
getIndexTypein interfaceBaseIndex- Returns:
- index type String
-
getName
retrieve name
-