You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning:
LangChainDeprecationWarning: The class HuggingFaceBgeEmbeddings was deprecated in LangChain 0.2.2 and will be removed in 1.0. An updated version of the class exists in the :class:~langchain-huggingface package and should be used instead. To use it run pip install -U :class:~langchain-huggingface and import as from :class:~langchain_huggingface import HuggingFaceEmbeddings
The warning suggest to switch to use HuggingFaceEmbeddings, but it does not have support for the query_instruction parameter.
How can I pass the query_instruction and/or embed_instruction using HuggingFaceEmbeddings ?
Error Message and Stack Trace (if applicable)
Warning:
LangChainDeprecationWarning: The class HuggingFaceBgeEmbeddings was deprecated in LangChain 0.2.2 and will be removed in 1.0. An updated version of the class exists in the :class:~langchain-huggingface package and should be used instead. To use it run pip install -U :class:~langchain-huggingface and import as from :class:~langchain_huggingface import HuggingFaceEmbeddings
Description
using the "BAAI/bge-m3" and getting a warning.
System Info
python -m langchain_core.sys_info
System Information
OS: Linux
OS Version: #1 SMP Tue Nov 5 00:21:55 UTC 2024
Python Version: 3.12.8 | packaged by conda-forge | (main, Dec 5 2024, 14:24:40) [GCC 13.3.0]
Checked other resources
Example Code
The following code will generate the warning bellow:
Warning:
LangChainDeprecationWarning: The class
HuggingFaceBgeEmbeddings
was deprecated in LangChain 0.2.2 and will be removed in 1.0. An updated version of the class exists in the :class:~langchain-huggingface package and should be used instead. To use it run
pip install -U :class:~langchain-huggingface
and import asfrom :class:
~langchain_huggingface import HuggingFaceEmbeddingsThe warning suggest to switch to use HuggingFaceEmbeddings, but it does not have support for the query_instruction parameter.
How can I pass the query_instruction and/or embed_instruction using HuggingFaceEmbeddings ?
Error Message and Stack Trace (if applicable)
Warning:
LangChainDeprecationWarning: The class
HuggingFaceBgeEmbeddings
was deprecated in LangChain 0.2.2 and will be removed in 1.0. An updated version of the class exists in the :class:~langchain-huggingface package and should be used instead. To use it run
pip install -U :class:~langchain-huggingface
and import asfrom :class:
~langchain_huggingface import HuggingFaceEmbeddingsDescription
System Info
python -m langchain_core.sys_info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: