Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
Generated from Trainer
dataset_size:6448
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use iamleonie/leonies-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use iamleonie/leonies-test with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("iamleonie/leonies-test") sentences = [ "How are retail sales data integrated into trading models?", "Lagged variables represent historical values of a time series variable and are used in forecasting models to capture the impact of past observations on future market trends, enhancing the accuracy of predictions by incorporating relevant historical information.", "Retail sales data reflect consumer spending patterns and overall economic activity. Traders analyze this indicator to gauge consumer confidence, sectoral performance, and potential market trends related to retail-focused stocks.", "Regulatory approval for a new drug can have a positive impact on a pharmaceutical company's stock price as it opens up new revenue streams and market opportunities." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K