Prediction model parameters for Text Embedding.
autoTruncate
boolean
Whether to silently truncate inputs longer than the max sequence length. This behavior is enabled by default. If this option is set to false, oversized inputs will lead to an INVALID_ARGUMENT error, similar to other text APIs.
outputDimensionality
integer
An optional argument for the output embedding's dimensionality. This parameter is only supported by some models, and the supported value range is specific to the requested model. If this parameter is specified for a model that does not support it, or if the specified value is not supported by the model, the request will fail with an INVALID_ARGUMENT error.
JSON representation |
---|
{ "autoTruncate": boolean, "outputDimensionality": integer } |