Support embedding with "instructions" Again
Feature request
Hello,
First of all, thank you for developing infinity, an excellent package dedicated to inference for embedding models.
I am opening this issue to request support once again for the instructions feature discussed in issue #34.
From my understanding, to utilize the method added in UKPLab/sentence-transformers#2439 within infinity, it seems necessary to pass either prompt or prompt_name at this point.
Considering that the recently updated MMTEB has introduced an Instruction Retrieval evaluation category and that many models are being researched and developed as instruction-based embedding models, I believe integrating this feature into infinity would attract more users to the package.
Feel free to correct me if I’m mistaken.
Motivation
https://github.com/michaelfeil/infinity/issues/34
Your contribution
If you can provide a rough concept of how this feature should be integrated into infinity, I think I could submit a PR myself.
+1
+1 but I think we can just concat prompt, sentence_to_embed and use that as instruction + sentence
Hi,
is there a good example model which makes use of instructions?
+1
+1