Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
Generated from Trainer
dataset_size:100000
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use krumeto/snowflake-arctic-embed-xs-ms-marco-triplet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use krumeto/snowflake-arctic-embed-xs-ms-marco-triplet with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("krumeto/snowflake-arctic-embed-xs-ms-marco-triplet") sentences = [ "Represent this sentence for searching relevant passages: what is spider silk made of", "Arachnid Pictures. Spider's silk is made up of chains of amino acids. In other words, it is simply a protein (see How Food Works for details on amino acids and proteins). The two primary amino acids are glycine and alanine. Spider silk is extremely strong -- it is about five times stronger than steel and twice as strong as Kevlar of the same weight.", "Spider silk is made of several kinds of proteins. These proteins are processed and stored within the spider's abdomen. Spiders typically have six or eight spinnerets, organs at the rear of their abdomen, through which they extrude the silk proteins.", "Neon is the second lightest noble gas, after helium, and it has an atomic number of 10. On the periodic table, it is identified with the symbol Ne. The noble gases were recognized in the late 1800s, when scientists realized that an entire class of gases was missing from the periodic table of elements." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!