How to use s2593817/sft-question-embedding with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("s2593817/sft-question-embedding") sentences = [ "What are the name, population, and life expectancy of the largest Asian country by land?", "Find the names and phone numbers of customers living in California state.", "What is the age of the doctor named Zach?", "What are the name and location of the cinema with the largest capacity?" ] 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!