How to use AdamLucek/modernbert-embed-quickb with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("AdamLucek/modernbert-embed-quickb") sentences = [ "What is the interpretation described as inappropriate?", ". Factors to be considered in determining the reasonableness of the lawyer’s expectation of confidentiality include the sensitivity of the information and the extent to which the privacy of the communication is protected by law or by a confidentiality agreement", ". 20 of competition and rests on an inappropriate interpretation of SBA regulation 13 C.F.R. § 125.9(b)(3)(i). See SHS MJAR at 16–23; VCH MJAR at 16–23", ". 29-2, the CIA’s declaration explains in much more detail what is meant by “intelligence sources and methods” or “intelligence activities,” see Third Lutz Decl. ¶–30" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]