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 Liu-Xiang/bge-base-financial-matryoshka with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Liu-Xiang/bge-base-financial-matryoshka with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Liu-Xiang/bge-base-financial-matryoshka") sentences = [ "The lawsuits were filed in the wake of media reports that the U.S. Department of Justice had served civil investigative demands upon these carriers seeking documents and information relating to this subject.", "What type of details does Note 15 of the Consolidated Financial Statements provide?", "What action did the U.S. Department of Justice take in relation to the antitrust allegations against Delta, American, United, and Southwest airlines?", "What does the index in a financial report indicate?" ] 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!