Created
April 30, 2024 03:50
-
-
Save vaibhavpandeyvpz/3746538dd11baeb5a775581e78e904f6 to your computer and use it in GitHub Desktop.
Generate word embeddings from sentences using "bge-large-en-v1.5" model.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sentence_transformers import SentenceTransformer | |
EMBEDDING_MODEL = "BAAI/bge-large-en-v1.5" | |
model = SentenceTransformer(EMBEDDING_MODEL) | |
embeddings = model.encode(sentences=["Hey", "How are you?"], normalize_embeddings=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sentence-transformers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment