-
Notifications
You must be signed in to change notification settings - Fork 313
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
Added prompting along with e5 instruct #888
Conversation
All encode calls now include a prompt_name (following the variable name in sentence transformer's encode), which provided the task name. The model can then use a custom prompt pr. task if they wish (or encode based on e.g. task type). Additionally to test it out I have also added the two e5 instruct models.
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.
Looks great! Left some comments 🙂
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.
Amazing 🙌
Co-authored-by: Niklas Muennighoff <n.muennighoff@gmail.com>
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.
Sorry for the delay! It looks great tho would love if @orionw could have a quick look whether or not this aligns with Retrieval w/ Instructions 🙌
Looks great @KennethEnevoldsen! Using the same as Retrieval for InstructionRetrieval is great and it will be nice for all the many models using it these days. For many tasks in InstructionRetrieval the models did better with the prefix and the instruction so I added them both manually, glad to have it be part of this. Thanks for the ping @Muennighoff |
Co-authored-by: Niklas Muennighoff <n.muennighoff@gmail.com>
All encode calls now include a prompt_name (following the variable name in sentence transformer's encode), which provided the task name. The model can then use a custom prompt pr. task if they wish (or encode based on e.g. task type).
Additionally to test it out I have also added the two e5 instruct models.
Checklist
make test
.make lint
.Adding a model checklist
mteb.get_model(model_name, revision_id)
andmteb.get_model_meta(model_name, revision_id)