Feature Request: Add prompt templates to config_sentence_transformers.json
#1
by minhnguyent546 - opened
Hi there! Thank you for open-sourcing such a great model.
I have some questions regarding prompts configuration for sentence-transformers:
- Does this model use different prompt prefixes for queries and documents?
- I noticed that the prompts are not defined in the
config_sentence_transformers.jsonfile. Currently we need to hard-code the prompts when initializing the model. It would be nice to add these prompts toconfig_sentence_transformers.jsonfile as well as define different prompts for query and document, e.g.,Retrieval-queryandRetrieval-documentfor retrieval task (reference https://embeddings-benchmark.github.io/mteb/get_started/usage/running_the_evaluation/#running-sentencetransformer-model-with-prompts).
Hi,
- This model uses the same prompt for both query and document.
- Thanks for the suggestions. I will update it soon.
minhnguyent546 changed discussion status to closed