Class VectorStoreRecordVectorField


  • public class VectorStoreRecordVectorField
    extends VectorStoreRecordField
    Represents a vector field in a record.
    • Constructor Detail

      • VectorStoreRecordVectorField

        public VectorStoreRecordVectorField​(@Nonnull
                                            String name,
                                            @Nullable
                                            String storageName,
                                            @Nonnull
                                            Class<?> fieldType,
                                            int dimensions,
                                            @Nullable
                                            IndexKind indexKind,
                                            @Nullable
                                            DistanceFunction distanceFunction)
        Creates a new instance of the VectorStoreRecordVectorField class.
        Parameters:
        name - the name of the field
        storageName - the storage name of the field
        fieldType - the field type
        dimensions - the number of dimensions in the vector
        indexKind - the index kind
        distanceFunction - the distance function
    • Method Detail

      • getDimensions

        public int getDimensions()
        Gets the number of dimensions in the vector.
        Returns:
        the number of dimensions in the vector
      • getIndexKind

        public IndexKind getIndexKind()
        Gets the index kind.
        Returns:
        the index kind
      • getDistanceFunction

        public DistanceFunction getDistanceFunction()
        Gets the distance function.
        Returns:
        the distance function