Uses of Class
org.springframework.data.mongodb.core.index.VectorIndex.VectorFieldBuilder
Packages that use VectorIndex.VectorFieldBuilder
Package
Description
Support for MongoDB document indexing.
-
Uses of VectorIndex.VectorFieldBuilder in org.springframework.data.mongodb.core.index
Methods in org.springframework.data.mongodb.core.index that return VectorIndex.VectorFieldBuilderModifier and TypeMethodDescriptionVectorIndex.VectorFieldBuilder.cosine()Use similarity based on the angle between vectors.VectorIndex.VectorFieldBuilder.dimensions(int dimensions) Number of vector dimensions enforced at index- & query-time.VectorIndex.VectorFieldBuilder.dotProduct()Use similarity based on both angle and magnitude of the vectors.VectorIndex.VectorFieldBuilder.euclidean()Use similarity based the distance between vector ends.VectorIndex.VectorFieldBuilder.quantization(String quantization) Quantization used.VectorIndex.VectorFieldBuilder.quantization(VectorIndex.Quantization quantization) Quantization used.VectorIndex.VectorFieldBuilder.similarity(String similarity) Similarity function used.VectorIndex.VectorFieldBuilder.similarity(VectorIndex.SimilarityFunction similarity) Similarity function used.Method parameters in org.springframework.data.mongodb.core.index with type arguments of type VectorIndex.VectorFieldBuilderModifier and TypeMethodDescriptionVectorIndex.addVector(String path, Consumer<VectorIndex.VectorFieldBuilder> customizer) Add a vector field and accept aVectorIndex.VectorFieldBuildercustomizer.