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
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
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