Sentence Similarity
sentence-transformers
Safetensors
Transformers
English
mistral
feature-extraction
text-embeddings-inference
Instructions to use annamodels/LGAI-Embedding-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use annamodels/LGAI-Embedding-Preview with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("annamodels/LGAI-Embedding-Preview") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use annamodels/LGAI-Embedding-Preview with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("annamodels/LGAI-Embedding-Preview") model = AutoModel.from_pretrained("annamodels/LGAI-Embedding-Preview") - Notebooks
- Google Colab
- Kaggle
Usage of the model
#1
by longluu - opened
Thanks for making this model publicly available. Can you put in some instructions on how to use the model? I suppose it's similar to other LLM-based embeddings like Qwen3-Embedding-4B but the config files are different so I wonder how we can put in a custom prompt for task description. Thanks.