Interface that extends EmbeddingsParams and defines additional parameters specific to the BedrockEmbeddings class.
interface BedrockEmbeddingsParamsA client provided by the user that allows them to customze any SDK configuration options.
Overrideable configuration options for the BedrockRuntimeClient. Allows customization of client configuration such as requestHandler, etc. Will be ignored if 'client' is provided.
The number of dimensions for the output embeddings. Only supported by certain models (e.g., Amazon Titan Embed Text v2, Cohere Embed). If not specified, uses the model's default.
The maximum number of concurrent calls that can be made.
Defaults to Infinity, which means no limit.
The maximum number of retries that can be made for a single call, with an exponential backoff between each attempt. Defaults to 6.
Model Name to use. Defaults to amazon.titan-embed-text-v1 if not provided
Additional parameters to pass to the model as part of the InvokeModel request body.
These are merged into the request payload, allowing model-specific options
like normalize, embeddingTypes, etc.
If dimensions is also provided as a top-level parameter, it will take
precedence over a dimensions key set in modelParameters.
Custom handler to handle failed attempts. Takes the originally thrown error object as input, and should itself throw an error if the input error is not retryable.