-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat: add revision parameter to Sentence Transformers embedder components #10003
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
Conversation
|
@swapniel99 is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
haystack/components/embedders/sentence_transformers_document_embedder.py
Outdated
Show resolved
Hide resolved
haystack/components/embedders/sentence_transformers_text_embedder.py
Outdated
Show resolved
Hide resolved
Pull Request Test Coverage Report for Build 19096477217Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
|
@swapniel99 could you also add a release note following our guidelines here and fix the failing linting errors. You can reproduce this locally by running |
Add release notes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the addition!
I checked but these lines were not edited by me. I don't understand what is supposed to be done here. |
Related Issues
None
Proposed Changes:
Added a
revisionparameter to all Sentence Transformers embedder components to allow users to specify a specific model revision/version from the Hugging Face Hub. This parameter is passed through to the underlying Sentence Transformers backend.How did you test it?
Notes for the reviewer
The
revisionparameter follows the same pattern as other optional parameters liketrust_remote_codeandlocal_files_only. It's passed directly to the Sentence Transformers model initialization, allowing users to pin to specific model versions for reproducibility.Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:and added!in case the PR includes breaking changes.