Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:3507
loss:GISTEmbedLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use himanshu23099/bge_embedding_finetune1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use himanshu23099/bge_embedding_finetune1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("himanshu23099/bge_embedding_finetune1") sentences = [ "Is there an option to use ride-sharing apps like Ola or Uber for travel from the Airport to the Mela?", "Are there towing services available if my vehicle breaks down in the parking lot?\n Yes, towing services are available if your vehicle breaks down in the parking lot.", "No, ride-sharing options like Ola or Uber are not available for travel from the Airport to the Mela. Pilgrims are encouraged to use other transport options like taxis, buses, or dedicated shuttle services provided for the event.", "Baking bread requires certain key ingredients to achieve a perfect texture. Flour, water, and yeast are the base, while salt enhances flavor. The dough should be kneaded until smooth, then allowed to rise in a warm area. After a proper rise, shaping the loaf is essential for even baking in the oven." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K