An embedding headers provider which translates AWS access keys into the appropriate authentication headers for AWS-based embedding providers (e.g. bedrock).
bedrock
Sets the headers x-embedding-access-id and x-embedding-secret-id.
x-embedding-access-id
x-embedding-secret-id
const provider = new AWSEmbeddingHeadersProvider( 'access-key-id', 'secret-access-key',);const collections = await db.collections('my_coll', { embeddingApiKey: provider }); Copy
const provider = new AWSEmbeddingHeadersProvider( 'access-key-id', 'secret-access-key',);const collections = await db.collections('my_coll', { embeddingApiKey: provider });
EmbeddingHeadersProvider
Constructs an instead of the AWSEmbeddingHeadersProvider.
The access key ID part of the AWS access keys
The secret access key part of the AWS access keys
Private
Readonly
Static
Internal
Overview
An embedding headers provider which translates AWS access keys into the appropriate authentication headers for AWS-based embedding providers (e.g.
bedrock
).Sets the headers
x-embedding-access-id
andx-embedding-secret-id
.Example
See
EmbeddingHeadersProvider