Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
Generated from Trainer
dataset_size:6300
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use TatvaRA/bge-base-financial-matryoshka with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use TatvaRA/bge-base-financial-matryoshka with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("TatvaRA/bge-base-financial-matryoshka") sentences = [ "What are the main components of technology and infrastructure costs?", "As of January 29, 2023, from the total aggregate lease obligations of $14.7 billion, $1.5 billion was payable within 12 months.", "Technology and infrastructure costs include payroll and related expenses for employees involved in the research and development of new and existing products and services, development, design, and maintenance of our stores, curation and display of products and services made available in our online stores, and infrastructure costs.", "'Note 13 — Commitments and Contingencies — Litigation and Other Legal Matters' is stated to be part of Part IV, Item 15 of the consolidated financial statements within an Annual Report on Form 10-K." ] 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!