Sentence Similarity
sentence-transformers
Safetensors
English
roberta
feature-extraction
dataset_size:10K<n<100K
loss:CosineSimilarityLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use moranmiz/recipe-sbert-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use moranmiz/recipe-sbert-model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("moranmiz/recipe-sbert-model") sentences = [ "Ingredients: 2 mangoes - peeled, seeded, and chopped, 3/4 cup chopped onion, 3/4 cup chopped cilantro, 1/2 cup chopped fresh mint, 1 1/2 limes, juiced, 1/2 teaspoon minced fresh ginger root (optional). Instructions: Stir mangoes, onion, cilantro, mint, lime juice, and ginger in a bowl until evenly mixed.", "Ingredients: 2 mangoes - peeled, seeded, and chopped, 1 (8 ounce) can pineapple tidbits, drained, 1/4 cup chopped fresh cilantro leaves, 2 tablespoons peeled and finely chopped fresh ginger, 1/2 cup chopped red onion, 1/4 cup rice vinegar, 1 teaspoon crushed red pepper flakes, or to taste. Instructions: Combine mango, pineapple, cilantro, ginger, red onion, vinegar, and red pepper flakes in a bowl, and stir lightly to mix well.", "Ingredients: 3 egg whites, 1 cup white sugar, 1/2 teaspoon distilled white vinegar, 1/2 teaspoon vanilla extract, 1 pinch salt, 2 cups semisweet chocolate chips. Instructions: Preheat oven to 300 degrees F (150 degrees C). Grease baking sheets or line them with parchment paper. In a medium bowl, whip egg whites to soft peaks. Gradually add the sugar, vinegar and vanilla while whipping to stiff peaks. Fold in chocolate chips. Drop by spoonfuls onto the prepared cookie sheets. Bake for 20 to 25 minutes in the preheated oven, until cookies are dry.", "Ingredients: 1 (18.25 ounce) package yellow cake mix, 5 tablespoons instant lemon pudding mix, 2 eggs, 1/4 cup butter, softened, 1/3 cup water, 1/8 cup applesauce. Instructions: Preheat oven to 350 degrees F (175 degrees C). Grease and flour a 9 inch springform pan. In a medium bowl, stir together the cake mix and instant pudding. Add the eggs, butter, water and applesauce, mix with an electric mixer until smooth. Pour batter into the prepared pan. Bake for 30 to 35 minutes in the preheated oven, until a toothpick inserted comes out clean. Let cake cool in the pan for 10 minutes before removing from pan to cool on a wire rack." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle