Skip to main content

Vertex AI Embedding

Google Cloud Vertex AI serves text embedding models. Unstract authenticates to it with a Google Cloud service account key.

Getting started with Vertex AI

  1. In your Google Cloud project, enable the Vertex AI API.
  2. Create a service account and download its JSON key. Refer to the GCloud docs on creating service account credentials.
  3. Note your project ID and the embedding model name you want to use.

Setting up the Vertex AI Embedding model in Unstract

  • Sign in to the Unstract Platform.
  • From the side navigation menu, choose Settings 🞂 Embedding.
  • Click on the New Embedding Profile button.
  • From the list of Embeddings, choose Vertex AI.
  • Name — a unique name for this adapter instance.
  • Credentials — paste the contents of your service account JSON key.
  • Project — your Google Cloud project ID.
  • Model — the Vertex AI embedding model name.
  • Location — the Google Cloud region for the endpoint (for example us-central1, global). Defaults to us-central1 if left empty.
  • Embed Mode — the embedding task type. See Vertex AI's task types documentation. Defaults to default.
  • Leave Max Retries at its default.
  • Click on Test Connection and ensure it succeeds, then click Submit.