pairs = [ ("How do I reset my password?", "How can I reset my password?"), ("Is the API rate limited?", "Is the API not rate limited?"), ("Refund policy for annual plans", "Refund policy for monthly plans"), ] for a, b in pairs: va, vb = encoder.encode([a, b], normalize_embeddings=True) print(f"{float(va @ vb):.3f} {a!r} vs {b!r}")