from sentence_transformers import SentenceTransformer from sentence_transformers.sentence_transformer.evaluation import ( EmbeddingSimilarityEvaluator, ) sentences1 = [ "A support agent reset the user's password.", "The database backup completed overnight.", "The release was rolled back after the deploy.", "The customer changed the billing address.", "The web server returned an SSL certificate warning.", "A new search index was built for documents.", ] sentences2 = [ "The account password was reset by support.", "A nightly backup of the database finished successfully.", "The deployment was reverted after the release.", "A user updated payment and billing details.", "The office printer ran out of toner.", "The kitchen refrigerator needs cleaning.", ] scores = [0.95, 0.90, 0.86, 0.55, 0.05, 0.03]