docs.langflux.space
  • Welcome to LangFlux
  • Using LangFlux
    • API
    • Streaming
    • Embed
    • Variables
  • Configuration
    • Auth
      • Chatflow Level
    • Rate Limit
  • Integrations
    • Cache
      • InMemory Cache
    • Chains
      • Conversational Retrieval QA Chain
      • Vectara QA Chain
    • Document Loaders
      • S3 File Loader
      • PDF Files
    • Chat Models
      • Azure ChatOpenAI
      • ChatLocalAI
      • Google VertexAI
    • Embeddings
      • Azure OpenAI Embeddings
      • LocalAI Embeddings
    • Memory
      • Short Term Memory
      • Long Term Memory
        • Zep Memory
      • Threads
    • Text Splitters
      • Character Text Splitter
    • Tools
      • Custom Tool
    • Vector Stores
      • Chroma
      • Pinecone
      • Elastic
      • Qdrant
      • SingleStore
      • Supabase
      • Vectara
    • Utilities
      • Set/Get Variable
      • If Else
    • External Integrations
      • Zapier Zaps
  • Use Cases
    • Web Scrape QnA
    • Webhook Tool
Powered by GitBook
On this page
  • Prerequisites
  • Setup
  • Enable vertex AI API
  • Create credential file (Optional)
  • No. 1 : Use GCP CLI
  • No. 2 : Use GCP console
  • LangFlux
  • Without credential file
  • With credential file
  • Resources

Was this helpful?

  1. Integrations
  2. Chat Models

Google VertexAI

PreviousChatLocalAINextEmbeddings

Last updated 1 year ago

Was this helpful?

Prerequisites

  1. Install the

Setup

Enable vertex AI API

  1. Go to Vertex AI on GCP and click "ENABLE ALL RECOMMENDED API"

Create credential file (Optional)

There are 2 ways to create credential file

No. 1 : Use GCP CLI

  1. Open terminal and run the following command

gcloud auth application-default login
  1. Login to your GCP account

  2. Check your credential file. You can find your credential file in ~/.config/gcloud/application_default_credentials.json

No. 2 : Use GCP console

  1. Go to GCP console and click "CREATE CREDENTIALS"

  1. Create service account

  1. Fill in the form of Service account details and click "CREATE AND CONTINUE"

  2. Select proper role (for example Vertex AI User) and click "DONE"

  1. Click service account that you created and click "ADD KEY" -> "Create new key"

  1. Select JSON and click "CREATE" then you can download your credential file

LangFlux

Without credential file

If you are using a GCP service like Cloud Run, or if you have installed default credentials on your local machine, you do not need to set this credential.

With credential file

  1. Go to Credential page on LangFlux and click "Add credential"

  2. Click Google Vertex Auth

  1. Register your credential file. There are 2 ways to register your credential file.

  • Option 1 : Enter path of your credential file

    • If you have credential file on your machine, you can enter the path of your credential file into Google Application Credential File Path

  • Option 2 : Paste text of your credential file

    • Or you can copy all text in the credential file and paste it into Google Credential JSON Object

  1. Finally, click "Add" button.

  2. 🎉You can now use ChatGoogleVertexAI with the credential in LangFlux now!

Resources

LangChain JS GoogleVertexAI
Google Service accounts overview
Try Google Vertex AI Palm 2 with Flowise: Without Coding to Leverage Intuition
Start your GCP
Google Cloud CLI