Class EmbeddingsModelParams
java.lang.Object
com.sap.ai.sdk.orchestration.model.EmbeddingsModelParams
Additional parameters for generating input's embeddings. Default values are used for
mandatory parameters.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for EmbeddingsModelParams. -
Method Summary
Modifier and TypeMethodDescriptionstatic EmbeddingsModelParamscreate()Create a newEmbeddingsModelParamsinstance.dimensions(Integer dimensions) Set the dimensions of thisEmbeddingsModelParamsinstance and return the same instance.encodingFormat(EmbeddingsModelParamsEncodingFormat encodingFormat) Set the encodingFormat of thisEmbeddingsModelParamsinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theEmbeddingsModelParams.The number of dimensions the resulting output embeddings should have.Get encodingFormatinthashCode()Get normalizeSet the normalize of thisEmbeddingsModelParamsinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisEmbeddingsModelParamsinstance.voidsetDimensions(Integer dimensions) Set the dimensions of thisEmbeddingsModelParamsinstance.voidsetEncodingFormat(EmbeddingsModelParamsEncodingFormat encodingFormat) Set the encodingFormat of thisEmbeddingsModelParamsinstance.voidsetNormalize(Boolean normalize) Set the normalize of thisEmbeddingsModelParamsinstance.toMap()Get the value of all properties of thisEmbeddingsModelParamsinstance including unrecognized properties.toString()
-
Constructor Details
-
EmbeddingsModelParams
protected EmbeddingsModelParams()Default constructor for EmbeddingsModelParams.
-
-
Method Details
-
dimensions
Set the dimensions of thisEmbeddingsModelParamsinstance and return the same instance.- Parameters:
dimensions- The number of dimensions the resulting output embeddings should have.- Returns:
- The same instance of this
EmbeddingsModelParamsclass
-
getDimensions
The number of dimensions the resulting output embeddings should have.- Returns:
- dimensions The dimensions of this
EmbeddingsModelParamsinstance.
-
setDimensions
Set the dimensions of thisEmbeddingsModelParamsinstance.- Parameters:
dimensions- The number of dimensions the resulting output embeddings should have.
-
encodingFormat
@Nonnull public EmbeddingsModelParams encodingFormat(@Nullable EmbeddingsModelParamsEncodingFormat encodingFormat) Set the encodingFormat of thisEmbeddingsModelParamsinstance and return the same instance.- Parameters:
encodingFormat- The encodingFormat of thisEmbeddingsModelParams- Returns:
- The same instance of this
EmbeddingsModelParamsclass
-
getEncodingFormat
Get encodingFormat- Returns:
- encodingFormat The encodingFormat of this
EmbeddingsModelParamsinstance.
-
setEncodingFormat
Set the encodingFormat of thisEmbeddingsModelParamsinstance.- Parameters:
encodingFormat- The encodingFormat of thisEmbeddingsModelParams
-
normalize
Set the normalize of thisEmbeddingsModelParamsinstance and return the same instance.- Parameters:
normalize- The normalize of thisEmbeddingsModelParams- Returns:
- The same instance of this
EmbeddingsModelParamsclass
-
isNormalize
Get normalize- Returns:
- normalize The normalize of this
EmbeddingsModelParamsinstance.
-
setNormalize
Set the normalize of thisEmbeddingsModelParamsinstance.- Parameters:
normalize- The normalize of thisEmbeddingsModelParams
-
getCustomFieldNames
Get the names of the unrecognizable properties of theEmbeddingsModelParams.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisEmbeddingsModelParamsinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisEmbeddingsModelParamsinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisEmbeddingsModelParamsinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a newEmbeddingsModelParamsinstance. No arguments are required.
-
toMap()instead.