Skip to main content
Version: Latest (v2.3)

Google Vertex AI Embedding Models

from: google:<model-id> selects a Vertex AI embedding model. A model ID, GCP project, location, and Google Cloud credentials are required. Google AI Studio API keys are not supported.

ParameterDescriptionDefault
google_projectRequired. GCP project ID containing lowercase letters, digits, and hyphens.-
google_locationRequired. GCP region (for example us-central1) or global.-
google_service_account_pathPath to a GCP service account JSON key file.-
google_service_account_keyService account JSON. Supports secret replacement.-
google_application_default_credentialsApplication Default Credentials from the file specified by GOOGLE_APPLICATION_CREDENTIALS.false
dimensionsThe output dimensionality of the embeddings. Some embedding models support dynamic output sizes.-

Authentication requires exactly one of google_service_account_path, google_service_account_key, or google_application_default_credentials: true.

Below is an example configuration in spicepod.yaml:

embeddings:
- from: google:gemini-embedding-001
name: gemini_embeddings
params:
google_project: my-gcp-project
google_location: us-central1
google_service_account_path: /etc/spice/gcp-service-account.json
dimensions: 768 # optional parameter

Vertex AI text embeddings lists model availability by project and region.

For detailed instructions and examples on running vector searches, refer to the Vector-Based Search documentation.