@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
Google embedding provider function
Example
typescript
const embeddings = createGoogleEmbeddings({
apiKey: 'AIza...',
model: 'text-embedding-004',
taskType: 'SEMANTIC_SIMILARITY'
});