-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot specify model version for SentenceTransformer
embedding retriever
#7810
Milestone
Comments
I am happy to open an MR for this |
@masci - could we release this change in a fix (v1.26.3)? |
@laffeychris the release candidate is out if you want to give it a spin https://pypi.org/project/farm-haystack/1.26.3rc1/ - I'm planning to release the final artifact tomorrow after some testing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Sentence transformer models do not allow version to be specified.
Error message
When passing a
model_version
argument tonodes.EmbeddingRetriever
, it ignores this and only downloads the latest version of thesentence-transformer
model from huggingface (or from cache).Expected behavior
Download the specified version.
Additional context
This is due to not propagating the
revision
argument toSentenceTransformer()
, via_SentenceTransformersEmbeddingEncoder
Here, we should have passed the version:
To Reproduce
Check cache to see what models were downloaded:
FAQ Check
System:
EmbeddingRetriever
The text was updated successfully, but these errors were encountered: