Sentence Similarity
sentence-transformers
ONNX
Safetensors
modernbert
feature-extraction
dense
Generated from Trainer
dataset_size:606
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use llm-semantic-router/mmbert-embed-finance with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use llm-semantic-router/mmbert-embed-finance with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("llm-semantic-router/mmbert-embed-finance") sentences = [ "What might be contained in Item 8 of a financial document?", "What amount was authorized for future share repurchases by the company as of October 31, 2023?\n\nAnswer: $1.0 billion", "What information is contained in Item 8 of a financial document?\n\nAnswer: Item 8 contains the Financial Statements and Supplementary Data.", "What might be contained in Item 8 of a financial document?\n\nAnswer: Financial Statements and Supplementary Data" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Recommended loss for triplet data
❤️🤗 3
1
#1 opened 5 months ago
by
tomaarsen