Skip to main content

Get Text Embeddings

Generates embeddings for text using Google Vertex AI's text embedding models.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Connection Id - The unique identifier of the connection to Vertex AI, typically obtained from the Connect node.
  • Text - The text for which to generate embeddings.

Options

  • Model - The embedding model to use. Options include:
    • Custom Model
    • Text Embedding Gecko@001
    • Text Embedding Gecko
    • Text Embedding Gecko Multilingual
    • Default is Text Embedding Gecko@001.
  • Custom Model - Custom model name if "Custom Model" is selected.
  • Locations - Google Cloud region for the service. Default is "us-central1".
  • Publishers - Publisher of the model. Default is "google".

Output

  • Response - The generated text embeddings from the Vertex AI model as an object.

How It Works

The Get Text Embeddings node generates embeddings for text using Vertex AI's text embedding models. When executed, the node:

  1. Validates the connection ID and retrieves the authentication token
  2. Validates the required text input
  3. Collects all optional parameters and configurations
  4. Constructs a request with the text and parameters
  5. Sends the request to the Vertex AI text embedding model endpoint
  6. Processes the response and returns it

Requirements

  • A valid connection to Vertex AI established with the Connect node
  • Valid Google Cloud credentials with appropriate permissions
  • A properly configured Vertex AI text embedding model
  • Text input for which to generate embeddings

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid Connection ID
  • Empty text input
  • Invalid parameter values
  • Missing required parameters
  • Invalid model selection
  • Network connectivity issues
  • Vertex AI service errors
  • Authentication failures

Usage Notes

  • The Connection ID must be obtained from a successful Connect node execution
  • The text input should be meaningful content for which you want embeddings
  • Different models offer different capabilities:
    • Text Embedding Gecko@001 - Standard English model
    • Text Embedding Gecko - Latest English model
    • Text Embedding Gecko Multilingual - Supports multiple languages
  • The Locations parameter should match where your Vertex AI resources are deployed
  • Embeddings are numerical representations useful for machine learning tasks
  • The response contains embedding vectors that can be used for semantic search, clustering, or classification
  • For text and image embeddings together, use the Get Multimodal Embeddings node