Sentence Similarity
sentence-transformers
Safetensors
gemma3_text
feature-extraction
dense
Generated from Trainer
dataset_size:20000
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use yasserrmd/cardio-gemma-300m-emb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use yasserrmd/cardio-gemma-300m-emb with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("yasserrmd/cardio-gemma-300m-emb") sentences = [ "What is the importance of careful management of intravascular volume and hypertension in preventing acute pulmonary edema in post-MI parturients during the immediate postpartum period?\n", "True resistant hypertension is defined as office blood pressure (BP) ≥140/90 mm Hg despite being treated with at least 3 antihypertensive drugs including a diuretic. It is confirmed by initial 24-hour ambulatory blood pressure monitoring (≥130/80 mm Hg), which excludes the white coat effect.", "Careful management of intravascular volume and hypertension is essential in preventing acute pulmonary edema in post-MI parturients during the immediate postpartum period. By controlling intravascular volume and lowering systolic pressure, the left ventricle can eject to a smaller end-systolic volume, reducing pulmonary congestion caused by diastolic dysfunction. Strict control of hypertension is particularly important as it is associated with a better short-term prognosis than hypotension in patients with pulmonary edema and reversible/transient diastolic dysfunction. Proper management can help prevent complications and improve outcomes in these patients.", "Non-HDL-C is selected as a superior lipid component for assessing cardiovascular health because it has been found to have higher prediction of cardiovascular disease compared to total cholesterol. It represents cholesterol contained in atherogenic lipoprotein particles and is recommended for screening followed by a fasting lipid profile when the non-HDL-C is above a certain threshold. It is also associated with obesity and can be used to grade the lipid metric." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K