Skip to content

Commit

Permalink
fix: Update FlagEmbedding dependency>=1.3.3. (#53)
Browse files Browse the repository at this point in the history
Signed-off-by: wxywb <[email protected]>
  • Loading branch information
wxywb authored Dec 6, 2024
1 parent 840a2cd commit 2e93f00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion milvus_model/hybrid/bge_m3.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def dim(self) -> Dict:
}

def _encode(self, texts: List[str]) -> Dict:
output = self.model.encode(queries=texts, **self._encode_config)
output = self.model.encode(sentences=texts, **self._encode_config)
results = {}
if self._encode_config["return_dense"] is True:
results["dense"] = list(output["dense_vecs"])
Expand Down
2 changes: 1 addition & 1 deletion milvus_model/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def import_sentence_transformers():

def import_FlagEmbedding():
_check_library("peft", package="peft")
_check_library("FlagEmbedding", package="FlagEmbedding")
_check_library("FlagEmbedding", package="FlagEmbedding>=1.3.3")

def import_nltk():
_check_library("nltk", package="nltk>=3.9.1")
Expand Down

0 comments on commit 2e93f00

Please sign in to comment.