mem0ai / mem0

The Memory layer for your AI apps
https://mem0.ai
Apache License 2.0
21.6k stars 1.97k forks source link

langchain_community.embeddings is depricated and replacing with langc… #1717

Closed anifort closed 3 weeks ago

anifort commented 3 weeks ago

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

CLAassistant commented 3 weeks ago

CLA assistant check
All committers have signed the CLA.

Dev-Khant commented 3 weeks ago

@anifort Thanks for making this contribution.