Skip to content

Commit

Permalink
chore: updated embeddings value xenova/multilingual-e5-large
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 committed Jan 30, 2024
1 parent 3daf85a commit 4a1beb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastembed/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def __init__(

# Hacky support for multilingual model
self.exclude_token_type_ids = False
if model_name in ["intfloat/multilingual-e5-large", "xenova/multilingual-e5-large"]:
if model_name in ["intfloat/multilingual-e5-large", "xenova/multilingual-e5-large", "xenova/paraphrase-multilingual-mpnet-base-v2"]:
self.exclude_token_type_ids = True

so = ort.SessionOptions()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_onnx_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"BAAI/bge-large-en-v1.5": np.array([0.03434538, 0.03316108, 0.02191251, -0.03713358, -0.01577825]),
"sentence-transformers/all-MiniLM-L6-v2": np.array([0.0259, 0.0058, 0.0114, 0.0380, -0.0233]),
"intfloat/multilingual-e5-large": np.array([0.0098, 0.0045, 0.0066, -0.0354, 0.0070]),
"xenova/multilingual-e5-large": np.array([0.00, 0.00, 0.00, 0.00, 0.00]),
"xenova/multilingual-e5-large": np.array([0.00975464, 0.00446568, 0.00655449, -0.0354155, 0.00702112]),
"xenova/paraphrase-multilingual-mpnet-base-v2": np.array([0.00, 0.00, 0.00, 0.00, 0.00]),
"jinaai/jina-embeddings-v2-small-en": np.array([-0.0455, -0.0428, -0.0122, 0.0613, 0.0015]),
"jinaai/jina-embeddings-v2-base-en": np.array([-0.0332, -0.0509, 0.0287, -0.0043, -0.0077]),
Expand Down

0 comments on commit 4a1beb6

Please sign in to comment.