Skip to content

Support Vertex AI (service account / ADC auth) for the Google embedding provider in semantic search #38915

Backlog

Description

@gustavohorach

Is your feature request related to a problem? Please describe.

We run OpenMetadata 2.0.7 on GKE and want to enable semantic search with EMBEDDING_PROVIDER=google and gemini-embedding-001. Today the Google provider only supports the Gemini Developer API (AI Studio):

  • GoogleEmbeddingClient calls https://generativelanguage.googleapis.com/v1beta/models/<model>:embedContent
  • authentication is only a static API key sent as the key= query parameter (llmConfiguration.google.apiKey, required: "Google API key is required")
  • LLMGoogleConfig has apiKey and endpoint, with no project, location or credentials options. endpoint is also not exposed as an env var in conf/openmetadata.yaml

I checked the same files on main and found no Vertex AI support there either.

Many organizations on GCP can only use Google models through Vertex AI:

  • No long-lived secrets: on GKE the pod already has a Google identity via Workload Identity, so Application Default Credentials (ADC) would remove the API key to create, store and rotate.
  • Governance: IAM (roles/aiplatform.user), audit logs, VPC Service Controls, regional processing and enterprise data terms apply to Vertex AI. Security teams often do not approve AI Studio keys for company metadata.
  • Same model: gemini-embedding-001 is available on Vertex AI, so the vectors would be equivalent.

Describe the solution you'd like

Add a Vertex AI mode to the Google provider that authenticates with ADC, for example:

llmConfiguration:
  google:
    apiKey: ${LLM_GOOGLE_API_KEY:-""}
    useVertexAI: ${LLM_GOOGLE_USE_VERTEX_AI:-false}
    vertexProject: ${LLM_GOOGLE_VERTEX_PROJECT:-""}
    vertexLocation: ${LLM_GOOGLE_VERTEX_LOCATION:-"us-central1"}
  embeddings:
    provider: ${EMBEDDING_PROVIDER:-bedrock}
    google:
      embeddingModelId: ${GOOGLE_EMBEDDING_MODEL_ID:-"gemini-embedding-001"}
      embeddingDimension: ${GOOGLE_EMBEDDING_DIMENSION:-768}

When useVertexAI is true:

  • get credentials with GoogleCredentials.getApplicationDefault() (scope https://www.googleapis.com/auth/cloud-platform) and send Authorization: Bearer <token>, refreshing the token when it expires;
  • call https://{location}-aiplatform.googleapis.com/v1/projects/{project}/locations/{location}/publishers/google/models/{model}:predict with {"instances":[{"content":"<text>"}],"parameters":{"outputDimensionality":<dimension>}}, and read predictions[0].embeddings.values;
  • do not require apiKey.

The same ADC-based auth could later serve the google chat provider (LLM_PROVIDER=google).

Describe alternatives you've considered

  • AI Studio API key from a GCP project: works, but it keeps a static secret and stays outside the Vertex AI governance controls described above.
  • Vertex AI API key bound to a service account, plus a custom google.endpoint: it still needs a static key, the endpoint cannot be set by env var, and I could not confirm that Vertex accepts the embedContent payload the client sends.
  • OpenAI or Bedrock: these send metadata to a provider outside our cloud, which is what we want to avoid.

Additional context

  • Version: OpenMetadata 2.0.7 (server image openmetadata/server:2.0.7), Helm chart 2.0.7, GKE with Workload Identity, Elasticsearch.
  • Relevant code: openmetadata-service/.../search/vector/client/GoogleEmbeddingClient.java, openmetadata-spec/.../configuration/llmConfiguration.json (LLMGoogleConfig, LLMGoogleEmbeddingConfig).
  • I'm happy to test a build or contribute a PR if the maintainers agree with the approach.

Activity

  1. iamkiayun commented on Nov 27, 2026

    @iamkiayun
    Contributor

    I can take the embeddings part of this. I’m testing the Vertex request with Application Default Credentials and checking that the existing AI Studio API-key configuration still works. Are you already preparing a patch? If not, would you be willing to try the draft on your GKE deployment? That would let us verify Workload Identity in the environment where you need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions