Model reference · open weights
static-retrieval-mrl-en is an open-weight embedding model from sentence-transformers. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Maker | sentence-transformers |
|---|---|
| Type | Embedding models |
| Task | Embeddings |
| Runs with | sentence-transformers |
| Released | 2024-10-24 |
| Popularity | 0 downloads / month |
| Licence | Open weights |
About
This is a sentence-transformers model trained on the gooaq, msmarco, squad, s2orc, allnli, paq, trivia_qa, msmarco_10m, swim_ir, pubmedqa, miracl, mldr and mr_tydi datasets. It maps sentences & paragraphs to a 1024-dimensional dense vector space and is designed to be used for semantic search.
Read our Static Embeddings blogpost to learn more about this model and how it was trained.
all-mpnet-base-v2.See static-similarity-mrl-multilingual-v1 for a general-purpose multilingual static embedding model. It's been trained for semantic textual similarity, paraphrase mining, text classification, clustering, and more.
Model Type: Sentence Transformer
Maximum Sequence Length: inf tokens
Output Dimensionality: 1024 tokens
Similarity Function: Cosine Similarity
Training Datasets:
Language: en
License: apache-2.0
SentenceTransformer(
(0): StaticEmbedding(
(embedding): EmbeddingBag(30522, 1024, mode='mean')
)
)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("tomaarsen/static-retrieval-mrl-en-v1")
# Run inference
sentences = [
'Gadofosveset-enhanced MR angiography of carotid arteries: does steady-state imaging improve accuracy of first-pass imaging?',
'To evaluate the diagnostic accuracy of gadofosveset-enhanced magnetic resonance (MR) angiography in the assessment of carotid artery stenosis, with digital subtraction angiography (DSA) as the reference standard, and to determine the value of reading first-pass, steady-state, and "combined" (first-pass plus steady-state) MR angiograms.',
'In a longitudinal study we investigated in vivo alterations of CVO during neuroinflammation, applying Gadofluorine M- (Gf) enhanced magnetic resonance imaging (MRI) in experimental autoimmune encephalomyelitis, an animal model of multiple sclerosis. SJL/J mice were monitored by Gadopentate dimeglumine- (Gd-DTPA) and Gf-enhanced MRI after adoptive transfer of proteolipid-protein-specific T cells. Mean Gf intensity ratios were calculated individually for different CVO and correlated to the clinical disease course. Subsequently, the tissue distribution of fluorescence-labeled Gf as well as the extent of cellular inflammation was assessed in corresponding histological slices.',
]
embeddings = model.encode(sentences)
print(e
From the published model card. Full card on the HuggingFace links in the sidebar.
How it works
Benchmarks
As published on the model card — the maker's own numbers, not measured by AxForge.
| Task | Dataset | Metric | Score |
|---|---|---|---|
| Information Retrieval | NanoClimateFEVER | Cosine Accuracy@1 | 0.320 |
| Information Retrieval | NanoClimateFEVER | Cosine Accuracy@3 | 0.520 |
| Information Retrieval | NanoClimateFEVER | Cosine Accuracy@5 | 0.600 |
| Information Retrieval | NanoClimateFEVER | Cosine Accuracy@10 | 0.780 |
| Information Retrieval | NanoClimateFEVER | Cosine Precision@1 | 0.320 |
| Information Retrieval | NanoClimateFEVER | Cosine Precision@3 | 0.193 |
| Information Retrieval | NanoClimateFEVER | Cosine Precision@5 | 0.140 |
| Information Retrieval | NanoClimateFEVER | Cosine Precision@10 | 0.104 |
| Information Retrieval | NanoClimateFEVER | Cosine Recall@1 | 0.147 |
| Information Retrieval | NanoClimateFEVER | Cosine Recall@3 | 0.239 |
| Information Retrieval | NanoClimateFEVER | Cosine Recall@5 | 0.279 |
| Information Retrieval | NanoClimateFEVER | Cosine Recall@10 | 0.420 |
| Information Retrieval | NanoClimateFEVER | Cosine Ndcg@10 | 0.331 |
| Information Retrieval | NanoClimateFEVER | Cosine Mrr@10 | 0.445 |
| Information Retrieval | NanoClimateFEVER | Cosine Map@100 | 0.260 |
| Information Retrieval | NanoDBPedia | Cosine Accuracy@1 | 0.700 |
| Information Retrieval | NanoDBPedia | Cosine Accuracy@3 | 0.840 |
| Information Retrieval | NanoDBPedia | Cosine Accuracy@5 | 0.900 |
| Information Retrieval | NanoDBPedia | Cosine Accuracy@10 | 0.940 |
| Information Retrieval | NanoDBPedia | Cosine Precision@1 | 0.700 |
| Information Retrieval | NanoDBPedia | Cosine Precision@3 | 0.587 |
| Information Retrieval | NanoDBPedia | Cosine Precision@5 | 0.544 |
| Information Retrieval | NanoDBPedia | Cosine Precision@10 | 0.452 |
| Information Retrieval | NanoDBPedia | Cosine Recall@1 | 0.080 |
Using it via the API
Once AxForge deploys static-retrieval-mrl-en for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (static-retrieval-mrl-en below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/embeddings \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"static-retrieval-mrl-en","input":"text to embed"}'
Create an account — your API key is available in the console. 5M tokens/month currently included with every new account at launch.