-
Notifications
You must be signed in to change notification settings - Fork 304
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
feat: add instruct wrapper #1768
Conversation
…pper # Conflicts: # mteb/models/jasper_models.py
Thanks for the effort! Following up on [this comment] (#1768 (comment)) from @KennethEnevoldsen, it's not quite clear in this PR why this new wrapper is needed, and why we cannot support prompts in the existing ST wrapper. If there was an existing discussion, it would be great to link here. Could we please add an explanation clearly with code examples in the PR description (since there's no issue reference), and also a short line in the docstrings? |
@isaac-chung This wrapper is designed for models that use prompts to generate embeddings. Previously, this was handled by I didn't add this functionality to |
Thanks for the explanation and the effort you put into this! I think this is a good step forward, but I have a few follow-up questions to help clarify things further:
|
Firstly, I made a PR to add the
|
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 detailed explanation, this makes complete sense now, and I agree with your approach.
I think adding a section to the README file to document the purpose and usage of the new wrapper would be a great final step. This will help users quickly understand how and when to use it compared to other wrappers.
Great work!
Co-authored-by: Isaac Chung <[email protected]>
I think we shouldn’t add this to the README because I don’t believe wrappers should be included there. Instead, it’s better to add it to |
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.
Makes sense. 2 small suggestions and I think we're set here. Thanks again!
Co-authored-by: Isaac Chung <[email protected]>
Good to merge 🙌 |
Checklist
make test
.make lint
.Add
InstructWrapper
that usesSentenceTransformer
models