CosmosVectorEmbedding Class
- java.
lang. Object - com.
azure. cosmos. models. CosmosVectorEmbedding
- com.
public final class CosmosVectorEmbedding
Embedding settings within CosmosVectorEmbeddingPolicy
Constructor Summary
Constructor | Description |
---|---|
CosmosVectorEmbedding() |
Constructor |
Method Summary
Modifier and Type | Method and Description |
---|---|
Cosmos |
getDataType()
Gets the data type for the cosmos |
Long |
getDimensions()
Gets the dimensions for the cosmos |
Cosmos |
getDistanceFunction()
Gets the distance |
String |
getPath()
Gets the path for the cosmos |
Cosmos |
setDataType(CosmosVectorDataType dataType)
Sets the data type for the cosmos |
Cosmos |
setDimensions(Long dimensions)
Sets the dimensions for the cosmos |
Cosmos |
setDistanceFunction(CosmosVectorDistanceFunction distanceFunction)
Sets the distance |
Cosmos |
setPath(String path)
Sets the path for the cosmos |
Methods inherited from java.lang.Object
Constructor Details
CosmosVectorEmbedding
public CosmosVectorEmbedding()
Constructor
Method Details
getDataType
public CosmosVectorDataType getDataType()
Gets the data type for the cosmosVectorEmbedding.
Returns:
getDimensions
public Long getDimensions()
Gets the dimensions for the cosmosVectorEmbedding.
Returns:
getDistanceFunction
public CosmosVectorDistanceFunction getDistanceFunction()
Gets the distanceFunction for the cosmosVectorEmbedding.
Returns:
getPath
public String getPath()
Gets the path for the cosmosVectorEmbedding.
Returns:
setDataType
public CosmosVectorEmbedding setDataType(CosmosVectorDataType dataType)
Sets the data type for the cosmosVectorEmbedding.
Parameters:
Returns:
setDimensions
public CosmosVectorEmbedding setDimensions(Long dimensions)
Sets the dimensions for the cosmosVectorEmbedding.
Parameters:
Returns:
setDistanceFunction
public CosmosVectorEmbedding setDistanceFunction(CosmosVectorDistanceFunction distanceFunction)
Sets the distanceFunction for the cosmosVectorEmbedding.
Parameters:
Returns:
setPath
public CosmosVectorEmbedding setPath(String path)
Sets the path for the cosmosVectorEmbedding.
Parameters:
Returns:
Applies to
Azure SDK for Java