Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Google Gemini Embeddings

ai.embeddings_gemini · version 1 · AI sub-node

Text embeddings from the Google Generative Language API.

Ports

PortKindLabelRequiredMax connections
output 0ai_embedding

Credentials

SlotAccepted kindsRequired
googlePalmApigoogle_gemini/api_keyyes

Parameters

NameTypeDefaultRequiredShown whenDescription
modelNamestring"models/gemini-embedding-001"Model. Identifier of the model to call, as listed by the provider. Values from lookup gemini.models.
optionscollection{}Optional settings.
options.dimensionsnumberShorten vectors to this many dimensions when the model supports it.
options.batchSizenumber512Batch Size. How many texts to send per request.
options.stripNewLinesbooleantrueStrip New Lines. Replace line breaks with spaces before embedding.
options.baseURLstringBase URL. Send requests to this API root instead of the provider default.
options.timeoutnumber600000Timeout (ms). Give up on a single request after this many milliseconds.
options.maxRetriesnumber2Max Retries. How many times to retry after rate limiting or a server error.

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini1unverified