Uses of Class
com.microsoft.semantickernel.data.vectorstorage.definition.DistanceFunction
-
-
Uses of DistanceFunction in com.microsoft.semantickernel.data.vectorsearch
Methods in com.microsoft.semantickernel.data.vectorsearch with parameters of type DistanceFunction Modifier and Type Method Description static <Record> List<VectorSearchResult<Record>>VectorOperations. exactSimilaritySearch(List<Record> records, List<Float> vector, VectorStoreRecordVectorField vectorField, DistanceFunction distanceFunction, VectorSearchOptions options)Performs an exact similarity search on a list of records using a vector field. -
Uses of DistanceFunction in com.microsoft.semantickernel.data.vectorstorage.annotations
Methods in com.microsoft.semantickernel.data.vectorstorage.annotations that return DistanceFunction Modifier and Type Method Description DistanceFunctiondistanceFunction()Distance function to be used for to compute the distance between vectors. -
Uses of DistanceFunction in com.microsoft.semantickernel.data.vectorstorage.definition
Methods in com.microsoft.semantickernel.data.vectorstorage.definition that return DistanceFunction Modifier and Type Method Description DistanceFunctionVectorStoreRecordVectorField. getDistanceFunction()Gets the distance function.static DistanceFunctionDistanceFunction. valueOf(String name)Returns the enum constant of this type with the specified name.static DistanceFunction[]DistanceFunction. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.microsoft.semantickernel.data.vectorstorage.definition with parameters of type DistanceFunction Modifier and Type Method Description VectorStoreRecordVectorField.BuilderVectorStoreRecordVectorField.Builder. withDistanceFunction(DistanceFunction distanceFunction)Sets the distance function.Constructors in com.microsoft.semantickernel.data.vectorstorage.definition with parameters of type DistanceFunction Constructor Description VectorStoreRecordVectorField(String name, String storageName, Class<?> fieldType, int dimensions, IndexKind indexKind, DistanceFunction distanceFunction)Creates a new instance of the VectorStoreRecordVectorField class.
-