multiple: update removal targets (#25361)

This commit is contained in:
ccurme
2024-08-14 09:50:39 -04:00
committed by GitHub
parent 4029f5650c
commit 27690506d0
100 changed files with 160 additions and 166 deletions

View File

@@ -21,7 +21,7 @@ DEFAULT_QUERY_BGE_INSTRUCTION_ZH = "为这个句子生成表示以用于检索
@deprecated(
since="0.2.2",
removal="0.3.0",
removal="1.0",
alternative_import="langchain_huggingface.HuggingFaceEmbeddings",
)
class HuggingFaceEmbeddings(BaseModel, Embeddings):
@@ -171,7 +171,7 @@ class HuggingFaceInstructEmbeddings(BaseModel, Embeddings):
if "show_progress_bar" in self.encode_kwargs:
warn_deprecated(
since="0.2.5",
removal="0.4.0",
removal="1.0",
name="encode_kwargs['show_progress_bar']",
alternative=f"the show_progress method on {self.__class__.__name__}",
)
@@ -298,7 +298,7 @@ class HuggingFaceBgeEmbeddings(BaseModel, Embeddings):
if "show_progress_bar" in self.encode_kwargs:
warn_deprecated(
since="0.2.5",
removal="0.4.0",
removal="1.0",
name="encode_kwargs['show_progress_bar']",
alternative=f"the show_progress method on {self.__class__.__name__}",
)