How to use ishandotsh/logembed_a1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ishandotsh/logembed_a1") sentences = [ "[instance: <*>] Terminating instance", "pam_unix(sshd:session): session opened for user <*> by (uid=<*>)", "[instance: <*>] Terminating instance", "[instance: <*>] Creating image" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
The community tab is the place to discuss and collaborate with the HF community!