Dhruv Kumar Jha
Dhruv Kumar Jha10mo ago

Using Google Vertex AI in Actions

NOTE: I haven't tested anything yet but seems like this is not possible. I want to use Google Vertex AI embeddings model with langchain https://js.langchain.com/docs/integrations/text_embedding/google_vertex_ai But the documentation says
You are logged into an account (using gcloud auth application-default login) permitted to that project.
You are logged into an account (using gcloud auth application-default login) permitted to that project.
I don't know how this will work with the Serverless architecture Convex provides. While current scenario is only for Google, other APIs/SDKs might have similar dependencies, Any tips on this?
Google Vertex AI | 🦜️🔗 Langchain
The GoogleVertexAIEmbeddings class uses Google's Vertex AI PaLM models
1 Reply
ian
ian10mo ago
I would give it a shot, using the third option there: setting GOOGLE_APPLICATION_CREDENTIALS as an environment variable in your backend
You have downloaded the credentials for a service account that is permitted to the project and set the GOOGLE_APPLICATION_CREDENTIALS environment variable to the path of this file.
Let us know if anything doesn't work @Dhruv Kumar Jha
Environment Variables | Convex Developer Hub
Store and access environment variables in Convex

Did you find this page helpful?