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()
Deprecated
use getEmbeddingDimensions() instead
Gets the dimensions for the cosmos |
|
Cosmos |
getDistanceFunction()
Gets the distance |
| Integer |
getEmbeddingDimensions()
Gets the dimensions for the cosmos |
| String |
getPath()
Gets the path for the cosmos |
|
Cosmos |
setDataType(CosmosVectorDataType dataType)
Sets the data type for the cosmos |
|
Cosmos |
setDimensions(Long dimensions)
Deprecated
use setEmbeddingDimensions(Integer dimensions) instead
Sets the dimensions for the cosmos |
|
Cosmos |
setDistanceFunction(CosmosVectorDistanceFunction distanceFunction)
Sets the distance |
|
Cosmos |
setEmbeddingDimensions(Integer dimensions)
Sets the dimensions for the cosmos |
|
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
@Deprecated
public Long getDimensions()
Deprecated
Gets the dimensions for the cosmosVectorEmbedding.
Returns:
getDistanceFunction
public CosmosVectorDistanceFunction getDistanceFunction()
Gets the distanceFunction for the cosmosVectorEmbedding.
Returns:
getEmbeddingDimensions
public Integer getEmbeddingDimensions()
Gets the dimensions 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
@Deprecated
public CosmosVectorEmbedding setDimensions(Long dimensions)
Deprecated
Sets the dimensions for the cosmosVectorEmbedding.
Parameters:
Returns:
setDistanceFunction
public CosmosVectorEmbedding setDistanceFunction(CosmosVectorDistanceFunction distanceFunction)
Sets the distanceFunction for the cosmosVectorEmbedding.
Parameters:
Returns:
setEmbeddingDimensions
public CosmosVectorEmbedding setEmbeddingDimensions(Integer dimensions)
Sets the dimensions for the cosmosVectorEmbedding.
Parameters:
Returns:
setPath
public CosmosVectorEmbedding setPath(String path)
Sets the path for the cosmosVectorEmbedding.
Parameters:
Returns: