Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:4370
loss:CosineSimilarityLoss
text-embeddings-inference
Instructions to use VaggP/bge-fine-tuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use VaggP/bge-fine-tuned with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("VaggP/bge-fine-tuned") sentences = [ "\nConstruct: Recognise a linear graph from its shape\nSubject: Finding the Gradient and Intercept of a Line from the Equation\nQuestion: Use a graphing program (e.g. Desmos) to plot the following pairs of functions.\n\\[\ny=3 \\text { and } y=-2\n\\]\n\nTom says both functions are linear\n\nKatie says both functions are vertical lines\n\nWho is correct?\nIncorrect Answer: Neither is correct\nCorrect Answer: Only\nTom\n", "Believes the coefficent of x in an expanded quadratic comes from multiplying the two numbers in the brackets", "Does not know the properties of a linear graph", "Misremembers the quadratic formula" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 349 Bytes
5f437b4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [
{
"idx": 0,
"name": "0",
"path": "",
"type": "sentence_transformers.models.Transformer"
},
{
"idx": 1,
"name": "1",
"path": "1_Pooling",
"type": "sentence_transformers.models.Pooling"
},
{
"idx": 2,
"name": "2",
"path": "2_Normalize",
"type": "sentence_transformers.models.Normalize"
}
] |