from langchain_community.embeddings import VertexAIEmbeddings is depricated and therefore I am replacing this with from langchain_google_vertexai import VertexAIEmbeddings which is the new suggested import from langchain.
Replaces the deprecated VertexAIEmbeddings module from langchain_community.embeddings with the new recommended module VertexAIEmbeddings from langchain_google_vertexai .
The change is only a change in the library and the rest of the code remains the same.
from langchain_community.embeddings import VertexAIEmbeddings is depricated and therefore I am replacing this with from langchain_google_vertexai import VertexAIEmbeddings which is the new suggested import from langchain.
This solves https://github.com/crewAIInc/crewAI/issues/1213 from CrewAI
Description
Replaces the deprecated VertexAIEmbeddings module from langchain_community.embeddings with the new recommended module VertexAIEmbeddings from langchain_google_vertexai .
The change is only a change in the library and the rest of the code remains the same.
The old import creates this issue on CrewAI https://github.com/crewAIInc/crewAI/issues/1213 from CrewAI
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Run CrewAI with the new import fixes the issue I was getting
Please delete options that are not relevant.
Checklist:
Maintainer Checklist