Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LangChainDeprecationWarning: The class HuggingFaceEmbeddings was deprecated in LangChain 0.2.2 #173

Open
XuhaoZhao opened this issue Jul 27, 2024 · 1 comment

Comments

@XuhaoZhao
Copy link

api-1 | /usr/local/lib/python3.11/site-packages/langchain_core/_api/deprecation.py:139: LangChainDeprecationWarning: The class HuggingFaceEmbeddingswas deprecated in LangChain 0.2.2 and will be removed in 0.3.0. An updated version of the class exists in the langchain-huggingface package and should be used instead. To use it runpip install -U langchain-huggingfaceand import asfrom langchain_huggingface import HuggingFaceEmbeddings. api-1 | warn_deprecated( Gracefully stopping... (press Ctrl+C again to force) dependency failed to start: container genai-stack-api-1 is unhealthy

I found that this class is not imported in code, so I don't know how to solve this issue.

@tomasonjo
Copy link
Collaborator

Should be fixed here: #184

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants