sentence-transformers How to use dnth/ssf-retriever-modernbert-embed-base-v4.1 with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("dnth/ssf-retriever-modernbert-embed-base-v4.1")
sentences = [
"A Principal Physiotherapy Researcher is responsible for planning research projects related to physiotherapy and healthcare. S/He identifies potential research areas and designs research projects. S/He leads grant application processes to secure research resources and partners with external organisations for research projects. S/He serves as the principal investigator in research projects of her/his specialisation, assists in the publication of findings in peer reviewed journals and presents research at local and international conferences. S/He may work in various settings such as but not limited to public and private institutions, sports teams, acute hospitals, community hospitals, rehabilitation centres, voluntary welfare organisations, schools, integrated and long-term care facilities and clients homes and work environments. S/He may also work as part of a collaborative, interdisciplinary team which may include teachers, nurses, doctors, audiologists, psychologists, social workers, occupational therapists and speech therapists. S/He may collaborate with research institutions to advance her/his research. S/He should be analytical, inquisitive and innovative. S/He should possess time and project management skills.",
"The Principal Physiotherapy Researcher specializes in managing clinical physiotherapy operations within acute care hospitals. This role focuses primarily on supervising physiotherapy staff, coordinating patient treatment schedules, and ensuring adherence to clinical protocols. Responsibilities include overseeing daily therapy sessions, facilitating communication between therapists and medical teams, and maintaining compliance with healthcare regulations. The researcher does not engage in grant writing or research publication activities but instead emphasizes clinical service delivery, staff training, and quality assurance. Strong leadership, organizational, and interpersonal skills are required to optimize therapeutic outcomes and support hospital administration.",
"The Principal Physiotherapy Researcher leads the development and execution of physiotherapy and healthcare research initiatives. This role involves identifying key research opportunities, designing comprehensive studies, and spearheading grant applications to secure necessary funding. The researcher acts as the chief investigator on projects within their area of expertise, contributing to academic publications and disseminating findings at both national and international forums. Operating across diverse environments—including hospitals, rehabilitation centers, sports organizations, educational institutions, and community settings—the researcher collaborates with multidisciplinary teams comprising healthcare and social service professionals. Proficiency in analytical thinking, innovation, and effective project management is essential to successfully advance research objectives and foster partnerships with external research bodies.",
"The Engineer/Engineering Manager/Maintenance Manager utilises engineering expertise to oversee the operation and upkeep of machinery within food manufacturing processes. This role involves designing and implementing production lines for both new product launches and improvements to existing food production capacity. The incumbent stays current with technological advancements relevant to food processing and maintains strong relationships with equipment suppliers to support the organisation’s technical needs. Responsibilities include controlling production processes, ensuring the reliability and sustainability of plant equipment through capacity planning, resource management for maintenance activities, and making informed decisions on equipment upgrades or retirements. The role demands a strong command of high-speed production machinery, effective communication skills for team leadership, and an analytical approach to promptly address equipment issues while adhering strictly to food safety standards and Workplace Safety and Health regulations."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]