Sentence Similarity
sentence-transformers
Safetensors
English
bert
Machine-learning
Data-Science
feature-extraction
dense
Generated from Trainer
dataset_size:167112
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use DigitalAsocial/all-MiniLM-L6-v2-ds-rag with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use DigitalAsocial/all-MiniLM-L6-v2-ds-rag with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("DigitalAsocial/all-MiniLM-L6-v2-ds-rag") sentences = [ "Our final beliefs about θ combine both the relevant information we had a priori and the knowledge we gained a posteriori by observing data.", "To get an understanding of what the Bayesian machinery looks like in action, let us return to our coin toss example.", "In each case, the model returns a vector of size N that contains the probabilities of the N categories.", "For the moment, in fact, let us consider draws and losses to be equally bad for us." ] 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!