Skip to content

@chinmaymk/aikit v0.0.40


@chinmaymk/aikit / createGoogleEmbeddings

Function: createGoogleEmbeddings()

createGoogleEmbeddings(options): GoogleEmbeddingProvider

Defined in: factory.ts:159

Creates a Google embedding provider.

Parameters

options

WithApiKey<GoogleEmbeddingOptions>

Configuration options with required API key

Returns

GoogleEmbeddingProvider

Google embedding provider function

Example

typescript
const embeddings = createGoogleEmbeddings({
  apiKey: 'AIza...',
  model: 'text-embedding-004',
  taskType: 'SEMANTIC_SIMILARITY'
});

Released under the MIT License.