Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:99980
loss:ContrastiveTensionLoss
text-embeddings-inference
Instructions to use Stergios-Konstantinidis/MNLP_M3_document_encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Stergios-Konstantinidis/MNLP_M3_document_encoder with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Stergios-Konstantinidis/MNLP_M3_document_encoder") sentences = [ "Question: who sang on the street where you live in my fair lady, Answer: On the Street Where You Live \"On the Street Where You Live\" is a song with music by Frederick Loewe and lyrics by Alan Jay Lerner, from the 1956 Broadway musical, My Fair Lady.[1] It is sung in the musical by the character Freddy Eynsford-Hill, who was portrayed by John Michael King in the original production. In the 1964 film version, it was sung by Bill Shirley, dubbing for actor Jeremy Brett.", "Question: who sang on the street where you live in my fair lady, Answer: On the Street Where You Live \"On the Street Where You Live\" is a song with music by Frederick Loewe and lyrics by Alan Jay Lerner, from the 1956 Broadway musical, My Fair Lady.[1] It is sung in the musical by the character Freddy Eynsford-Hill, who was portrayed by John Michael King in the original production. In the 1964 film version, it was sung by Bill Shirley, dubbing for actor Jeremy Brett.", "Question: who sings the song middle finger in the air, Answer: Middle Finger (song) \"Middle Finger\" is a song by American synthpop band Cobra Starship. The track was written and produced by Norwegian production team Stargate and features Pittsburgh rapper Mac Miller. It was released as the third promotional single from their fourth studio album, \"Night Shades\" and later as the second official single.", "[{'from': 'human', 'value': 'How can you use the x-intercepts and vertex of a quadratic equation to sketch its graph accurately?'}, {'from': 'gpt', 'value': 'To sketch the graph of a quadratic equation using the x-intercepts and vertex:\\n\\n1. Find the x-intercepts: Set y = 0 in the equation and solve for x. The x-intercepts are the points where the graph crosses the x-axis.\\n2. Find the vertex: Convert the equation into vertex form: y = a(x-h)^2 + k, where (h,k) is the vertex.\\n3. Plot the x-intercepts and vertex: Mark these points on the graph.\\n4. Determine the shape of the parabola: If a > 0, the parabola opens upwards. If a < 0, it opens downwards.\\n5. Sketch the parabola: Draw a smooth curve through the x-intercepts and vertex, following the shape determined in step 4.\\n\\nBy following these steps, you can accurately sketch the graph of a quadratic equation using its x-intercepts and vertex.'}]" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle