Skip to content
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

prompt parameters cannot be used? #123

Open
Huangouzm opened this issue Jul 24, 2024 · 1 comment
Open

prompt parameters cannot be used? #123

Huangouzm opened this issue Jul 24, 2024 · 1 comment

Comments

@Huangouzm
Copy link

On website: https://www.sbert.net/docs/sentence_transformer/pretrained_models.html, we can see the function "model.encode" use parameter "prompt". However, I didn't see that "prompt" parameter were mentioned in model card ("https://huggingface.co/hkunlp/instructor-large"). And I asked ChatGPT to describe the code for me, it said that the SentenceTransformer's function "encode" doesn't accept "prompt" parameter. Therefore, I wonder whether the website do update or not. Or models do not accept the "prompt" parameter any more. Thanks.

@BBC-Esq
Copy link
Contributor

BBC-Esq commented Aug 12, 2024

It might be "prompts" (i.e. with an 's') instead of "prompt". See here:

https://www.sbert.net/docs/package_reference/sentence_transformer/SentenceTransformer.html

Moreover, be aware that the owners of this repository don't keep it up to date very well. You can check out my repository here if you want. I've included other parameters like "local_files_only" and others as well:

https://github.com/BBC-Esq/instructor-embedding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants