Sentence Similarity
sentence-transformers
Safetensors
xlm-roberta
feature-extraction
Generated from Trainer
dataset_size:178
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use rezarahim/bge-finetuned-reranker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use rezarahim/bge-finetuned-reranker with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("rezarahim/bge-finetuned-reranker") sentences = [ "What is the basis for the company's calculation of deferred tax assets and liabilities?", " We could be subject to various penalties or restrictions on our ability to conduct our business, which could have a material and adverse impact on our business, operating results, and financial condition.", " The company's calculation of deferred tax assets and liabilities is based on certain estimates and judgments and involves dealing with uncertainties in the application of complex tax laws.", " March 4, 2024." ] 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!