Class CosmosVectorEmbedding

java.lang.Object
com.azure.cosmos.models.CosmosVectorEmbedding

public final class CosmosVectorEmbedding extends Object
Embedding settings within CosmosVectorEmbeddingPolicy
  • Constructor Details

    • CosmosVectorEmbedding

      public CosmosVectorEmbedding()
      Constructor
  • Method Details

    • getPath

      public String getPath()
      Gets the path for the cosmosVectorEmbedding.
      Returns:
      path
    • setPath

      public CosmosVectorEmbedding setPath(String path)
      Sets the path for the cosmosVectorEmbedding.
      Parameters:
      path - the path for the cosmosVectorEmbedding
      Returns:
      CosmosVectorEmbedding
    • getDataType

      public CosmosVectorDataType getDataType()
      Gets the data type for the cosmosVectorEmbedding.
      Returns:
      dataType
    • setDataType

      public CosmosVectorEmbedding setDataType(CosmosVectorDataType dataType)
      Sets the data type for the cosmosVectorEmbedding.
      Parameters:
      dataType - the data type for the cosmosVectorEmbedding
      Returns:
      CosmosVectorEmbedding
    • getEmbeddingDimensions

      public Integer getEmbeddingDimensions()
      Gets the dimensions for the cosmosVectorEmbedding.
      Returns:
      dimensions
    • setEmbeddingDimensions

      public CosmosVectorEmbedding setEmbeddingDimensions(Integer dimensions)
      Sets the dimensions for the cosmosVectorEmbedding.
      Parameters:
      dimensions - the dimensions for the cosmosVectorEmbedding
      Returns:
      CosmosVectorEmbedding
    • getDimensions

      @Deprecated public Long getDimensions()
      Deprecated.
      Gets the dimensions for the cosmosVectorEmbedding.
      Returns:
      dimensions
    • setDimensions

      @Deprecated public CosmosVectorEmbedding setDimensions(Long dimensions)
      Sets the dimensions for the cosmosVectorEmbedding.
      Parameters:
      dimensions - the dimensions for the cosmosVectorEmbedding
      Returns:
      CosmosVectorEmbedding
    • getDistanceFunction

      public CosmosVectorDistanceFunction getDistanceFunction()
      Gets the distanceFunction for the cosmosVectorEmbedding.
      Returns:
      distanceFunction
    • setDistanceFunction

      public CosmosVectorEmbedding setDistanceFunction(CosmosVectorDistanceFunction distanceFunction)
      Sets the distanceFunction for the cosmosVectorEmbedding.
      Parameters:
      distanceFunction - the distanceFunction for the cosmosVectorEmbedding
      Returns:
      CosmosVectorEmbedding