Class AWSEmbeddingHeadersProvider

An embedding headers provider which translates AWS access keys into the appropriate authentication headers for AWS-based embedding providers (bedrock).

Sets the headers x-embedding-access-id and x-embedding-secret-id.

Example

const provider = new AWSEmbeddingHeadersProvider('access-key-id', 'secret-access-key');
const collections = await db.collections('my_coll', { embeddingApiKey: provider });

See

EmbeddingHeadersProvider

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

#headers: Record<string, string>

Methods