sentence-transformers How to use vineet10/fm with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("vineet10/fm")
sentences = [
"The Supplier shall deliver the Batteries to the Manufacturer within 5 days of receipt of each",
"according to the MOU?",
"What is the Delivery Schedule for the Batteries?",
"single order?"
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]