Interface that extends EmbeddingsParams and defines additional parameters specific to the BedrockEmbeddings class.

Hierarchy

Implemented by

Properties

client?: BedrockRuntimeClient

A client provided by the user that allows them to customze any SDK configuration options.

credentials?: CredentialType
maxConcurrency?: number

The maximum number of concurrent calls that can be made. Defaults to Infinity, which means no limit.

maxRetries?: number

The maximum number of retries that can be made for a single call, with an exponential backoff between each attempt. Defaults to 6.

model?: string

Model Name to use. Defaults to amazon.titan-embed-text-v1 if not provided

onFailedAttempt?: FailedAttemptHandler

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.

region?: string

Generated using TypeDoc