Instructions to use maayans/all-mpnet-base-v2__ratio-specify with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use maayans/all-mpnet-base-v2__ratio-specify with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("maayans/all-mpnet-base-v2__ratio-specify") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
all-mpnet-base-v2__ratio-specify
sentence-transformers/all-mpnet-base-v2 fine-tuned for the SPECIFY ideation operation of RATIO (Retrieval Across Typed Ideation Operations): given a scientific query sentence, retrieve a concrete instantiation or narrower formulation of the query.
One of 9 checkpoints in the RATIO release (3 encoders x ADDRESS / BROADEN / SPECIFY); see the dataset card for the benchmark.
Input format (important)
This checkpoint was trained with literal text prefixes: query: for queries, document: for candidate sentences. Use the same format at inference:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("maayans/all-mpnet-base-v2__ratio-specify")
q_emb = model.encode(["query: " + q for q in queries])
d_emb = model.encode(["document: " + d for d in candidates])
Training
Relation-specific contrastive fine-tuning (MultipleNegativesRankingLoss) on the RATIO specify train split. The benchmark uses a temporal split: all test papers postdate the training data of every evaluated encoder. See the paper for details.
Citation
@misc{sharon2026ratiobenchmarkretrievaltyped,
title={RATIO: A Benchmark for Retrieval Across Typed Ideation Operations in Scientific Literature},
author={Maayan Sharon and Tom Hope},
year={2026},
eprint={2608.27394},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2608.27394},
}
- Downloads last month
- 16
Model tree for maayans/all-mpnet-base-v2__ratio-specify
Base model
sentence-transformers/all-mpnet-base-v2