sentence-transformers How to use abideen/router-embedding with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("abideen/router-embedding")
sentences = [
"How do bees make honey?",
"How do plants make their food?",
"How do the themes of transience and human triumph over it manifest in the story?",
"Discuss the significance of the mentorship program in Sarah's professional growth within the company."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]