sentence-transformers How to use MasterControlAIML/finetuned-ecfr-embeddings with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("MasterControlAIML/finetuned-ecfr-embeddings")
sentences = [
"The name/business name, address/business address, and contact information of the export broker, including telephone numbers and email addresses.",
"If an export broker is used, you must provide their full business details along with ways to contact them such as phone numbers and emails.",
"Order form records are required to be maintained as per section 1305 of the regulations.",
"Only the name and address of the export broker are necessary; there's no need to include contact information like phone numbers or emails."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]