-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Embeddings with StableLM? #20
Comments
I would recommend taking a look at https://www.sbert.net/ . To my best knowledge the OpenAI models are not outstanding at all for embeddings (https://huggingface.co/spaces/mteb/leaderboard) but it is convenience to use the API of them - at least for us. |
If it helps, I have successfully used: |
Hello, i am able to extract the embeddings from the model.
now hidden states has output of all the layers. You can use the output of last layer. Since i am a newbie to huggingface, there might be better ways to do this. Please share if you find something better. |
These models are multi-lingual? |
If you are looking for another convenient API might consider embaas. They offer a similiar structure to openai and you can use the MTEB leaderboard top members. They have some mutlilingual models as well and integrate wiht langchain or have an easy to use python client |
Is it possible to get embeddings from the model for my input text?
I.e. could I replace GTP3 calls from OpenAI with some python code and this model?
The text was updated successfully, but these errors were encountered: