Sentence Similarity
sentence-transformers
Safetensors
mpnet
feature-extraction
Generated from Trainer
dataset_size:108121
loss:TripletLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use GPTasty/TastyRecipesEmbedderV2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use GPTasty/TastyRecipesEmbedderV2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("GPTasty/TastyRecipesEmbedderV2") sentences = [ "NAME: Zucchini, Peppers, and Tomatoes\n\nCATEGORY: Lunch/Snacks\n\nKEYWORDS: Peppers, Vegetable, Low Protein, Low Cholesterol, < 60 Mins, Inexpensive, Lunch/Snacks\n\nTOOLS: pan\n\nINGREDIENTS: zucchini, butter, olive oil, onion, bell pepper, chopped tomato, basil, oregano, feta cheese, parmesan cheese, black olive\n\nINSTRUCTIONS: \nWash, trim, and slice zucchini.\nSalt zucchini lightly and allow to drain for about ten minutes, then pat dry.\nHeat the butter and oil, sauté onions until wilted.\nAdd the zucchini and peppers, cook 2 to 3 minutes.\nStir in tomatoes, herbs, and add salt and pepper to taste.\nCook 4 to 5 minutes, or until the vegetables are tender.\nIf the tomatoes are especially juicy, cook briefly over high heat to reduce pan juices.\nRemove from heat, stir in optional feta and olives or parmesan, if desired.", "NAME: Zuvers Barbecue Sauce\n\nCATEGORY: Sauces\n\nKEYWORDS: < 30 Mins, Sauces\n\nTOOLS: sauce pan, separate bowl\n\nINGREDIENTS: molasses, ketchup, apple cider vinegar, worcestershire sauce, liquid smoke, brown sugar, onion powder, chili powder, dry mustard, garlic powder, cornstarch, water\n\nINSTRUCTIONS: \nMix first 5 ingredients in sauce pan. Turn burner on low.\nMix next 5 dry ingredients in a separate bowl, and stir into the wet ingredients a little at a time, to make sure everything is smooth.\nOnce it is all mixed together, turn burner to medium and bring to a simmer, stirring occassionally. Simmer 15 minutes to meld flavors.\nMix cornstarch and water, stir into sauce and simmer 5 more minutes.", "NAME: Honey BBQ Wings Like Kfc's\n\nCATEGORY: < 4 Hours\n\nKEYWORDS: < 4 Hours\n\nTOOLS: cooling rack, small saucepan\n\nINGREDIENTS: purpose flour, salt, black pepper, chicken wing, bbq sauce, honey\n\nINSTRUCTIONS: \nIn a shallow dish, combine flour, salt, and pepper.\nCoat chicken in flour mixture; refrigerate for 1 hour; coat chicken again with remaining flour mixture.\nIn a small saucepan, heat BBQ sauce and honey until warm; turn heat to low and keep warm.\nDeep-fry chicken, 8-10 pieces at a time, in 375 degree oil for 13 minutes.\nDrain chicken on cooling racks.\nImmediately toss fried chicken with BBQ sauce mixture.\nRepeat with remaining chicken.", "NAME: Whipped Carrots\n\nCATEGORY: Vegetable\n\nKEYWORDS: Low Protein, < 60 Mins, Easy, Vegetable\n\nTOOLS: peeler, mixer, mixing bowl, large saucepan, knife\n\nINGREDIENTS: carrot, butter, nutmeg, milk, salt\n\nINSTRUCTIONS: \nWash the carrots and peel and trim ends.\nCut the carrots in half and place in a large saucepan with enough water to cover them. Add salt and bring to a boil.\nCook until tender.\nDrain the carrots and place them in a mixing bowl. Add milk, butter and nutmeg. Beat with an electric beater until smooth." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle