import torch from sentence_transformers import CrossEncoder query = "How can I reset a forgotten password?" passages = [ "Open account settings and request a password reset link.", "Contact the support desk to verify your identity and reset the password.", "Rotate the TLS certificate before the next web server deployment.", ] pairs = [(query, passage) for passage in passages]