How to use tasksource/ettin-17m-embed with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tasksource/ettin-17m-embed") sentences = [ "what is paediatric clinical psychology", "Pediatric neuropsychology (paediatric in the UK) is a sub-speciality within the field of clinical neuropsychology that studies the relationship between brain health and behaviour in children.any pediatric neuropsychologists are involved in teaching, research, supervision, and training of undergraduate and graduate students in the field. In the United States undergraduate and graduate psychology programs generally do not offer a track in pediatric neuropsychology, per se.", "âRealâ hummus, should contain about 175 calories, out of which 70-80 calories are contributed by fat. The average Israeli eats 8-10 kilograms (18-22 pounds) of hummus every year, so weâre talking about extra 15,000 calories which can make him gain about 2.5kg of body weight each year. So you can see how excessive consumption of the packaged product might be fattening over the years. The common serving size of hummus (real hummus, that is), which is around one cup (220-240g) may contain 400-450 calories. And every pita (âpita breadâ) contains another 270, so itâs not really âdietaryâ.", "Pediatrics (also spelled paediatrics or pædiatrics) is the branch of medicine that involves the medical care of infants, children, and adolescents. The American Academy of Pediatrics recommends people be under pediatric care up to the age of 21.[1] A medical practitioner who specializes in this area is known as a pediatrician, or paediatrician. The word pediatrics and its cognates mean healer of children; they derive from two Greek words: Ïαá¿Ï (pais child) and ἰαÏÏÏÏ (iatros doctor, healer)." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]