Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
dense
Generated from Trainer
dataset_size:138875
loss:MatryoshkaLoss
loss:CachedGISTEmbedLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use epaulson2/medical-gte-base-eldercare with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use epaulson2/medical-gte-base-eldercare with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("epaulson2/medical-gte-base-eldercare") sentences = [ "Represent this sentence for searching relevant passages: What is HERS Miconazole 3 used for?", "Indications For the temporary relief of skin irritations Directions Adults: Take five granules three times daily or as recommended by your healthcare practitioner. Children: Take three granules and follow adult directions.", "Warnings Do not use on children under 2 years of age unless directed by a doctor. For external use only avoid contact with eyes. Irritation occurs or if there is no improvement within 4 weeks (for athlete's foot and ringworm)irritation occurs or if there is no improvement within 2 weeks (for jock itch).", "Uses • treats vaginal yeast infections" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.models.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_Pooling", | |
| "type": "sentence_transformers.models.Pooling" | |
| }, | |
| { | |
| "idx": 2, | |
| "name": "2", | |
| "path": "2_Normalize", | |
| "type": "sentence_transformers.models.Normalize" | |
| } | |
| ] |