Add query prompt to Sentence Transformers Config?
#18
by
jdwh08s
- opened
Hello mixedbread team, thanks for providing this embedding model.
I noticed that for retrieval tasks, it is suggested we use the prompt
query = "Represent this sentence for searching relevant passages: "
however, this prompt isn't included in the Sentence-Transformers prompt dictionary (config_sentence_transformers.json), and instead must be added manually by the user. This is something that is a bit easy to miss!
Is there a reason why the query prompt isn't provided in the sentence transformers config by default?
e.g. set "prompts": {"query": "Represent this sentence for searching relevant passages: ", "text": ""}.
Thanks!
Hey Jonathan,
iirc, when we published the model, there was not such option. Happy accept a PR for this! :)
jdwh08s
changed discussion status to
closed