Skip to content

using bm25 or e5_large on disconnected environments. #41190

Discussion options

You must be logged in to vote

The SentenceTransformerEmbeddingFunction calls sentence_transformers.SentenceTransformer to get the model.
This line will automatically download the model:
https://github.com/milvus-io/milvus-model/blob/2fe97ac8ba923fec5d7e3afa8b2b9e9c25ebbce0/src/pymilvus/model/dense/sentence_transformer.py#L29
It just equal to this:

from sentence_transformers import SentenceTransformer
model = SentenceTransformer("intfloat/e5-large-v2")

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@jxadro
Comment options

@yhmo
Comment options

yhmo Apr 9, 2025
Collaborator

@jxadro
Comment options

@yhmo
Comment options

yhmo Apr 9, 2025
Collaborator

Answer selected by jxadro
@jxadro
Comment options

@xiaofan-luan
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants