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
|
isaac-chung
left a comment
There was a problem hiding this comment.
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 <chungisaac1217@gmail.com>
|
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 |
isaac-chung
left a comment
There was a problem hiding this comment.
Makes sense. 2 small suggestions and I think we're set here. Thanks again!
Co-authored-by: Isaac Chung <chungisaac1217@gmail.com>
|
Good to merge 🙌 |
Checklist
make test.make lint.Add
InstructWrapperthat usesSentenceTransformermodels