-
Notifications
You must be signed in to change notification settings - Fork 579
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
Add embedding instruction prompt support for to hf-embedder #30967
Comments
Alternatives Alternative 1<instruction-prompts>
<query>Represent this sentence for searching relevant passages:</query>
<document>passage:</document>
</instruction-prompt> Alternative 2<prefixes>
<query>Represent this sentence for searching relevant passages:</query>
<document>passage:</document>
</prefixes> Alternative 3<prepend query="Represent this sentence for searching relevant passages:" document="passage:"/> Alternative 4<prepend>
<query>Represent this sentence for searching relevant passages:</query>
<document>passage:</document>
</prepend> Since |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's becoming the norm to have prompt prefixes for text embedding models. I think we should add this to the hf-embedder.
The embedder would then prepend the input with these instructions depending on the context (query or indexing)
The text was updated successfully, but these errors were encountered: