Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:1000
loss:TripletLoss
text-embeddings-inference
Instructions to use vayishu/visa-minilm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use vayishu/visa-minilm with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("vayishu/visa-minilm") sentences = [ "What are the key points in passage fam_402.10_30?", "( v ) A dependent applying under [ paragraph ( s)(2 ) ( iii)](/current / title-8 / section-214.2#p-214.2(s)(2)(iii ) ) or [ ( iv)](/current / title-8 / section-214.2#p-214.2(s)(2)(iv ) ) of this section must also submit a certified statement from the post - secondary educational institution confirming that he or she is pursuing studies on a full - time basis .", "( b ) ( U ) The criteria for \n qualifying as an H-1B physician are found in subparagraph 3 below .", "( ii ) * What are the requirements for participation ? *" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!