Model reference · open weights
affilgood-dense-retriever is an open-weight embedding model from SIRIS-Lab. 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
| Released by | SIRIS-Lab |
|---|---|
| Type | Embedding models |
| Task | Embeddings |
| Parameters (lead) | 560M |
| Context | 514 tokens |
| Runs with | sentence-transformers |
| Released | 2025-04-16 |
| Popularity | 2k downloads / month |
| Licence | Unknown |
About
This is a sentence-transformers model trained. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
Model Type: Sentence Transformer
Maximum Sequence Length: 128 tokens
Output Dimensionality: 1024 dimensions
Similarity Function: Cosine Similarity
SentenceTransformer(
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
(1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
(2): Normalize()
)
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("SIRIS-Lab/affilgood-dense-retriever")
# Run inference
sentences = [
'[MENTION] Hyderabad Cleft Society [COUNTRY] India',
'[MENTION] Hyderabad Cleft Society [ACRONYM] HCS [CITY] Hyderabad [COUNTRY] India',
'[MENTION] Hyderabad Rheumatology Center [ACRONYM] HRC [CITY] Hyderabad [COUNTRY] India',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
entity_linking_eval| Metric | Value |
|---|---|
| pearson_cosine | 0.7073 |
| spearman_cosine | 0.6826 |
| sentence_0 | sentence_1 | sentence_2 | |
|---|---|---|---|
| type | string | string | string |
| details | min: 5 tokensmean: 13.61 tokensmax: 32 tokens | min: 9 tokensmean: 18.63 tokensmax: 56 tokens | min: 10 tokensmean: 19.66 tokensmax: 58 tokens |
| sentence_0 | sentence_1 | sentence_2 |
|---|---|---|
| [MENTION] The Prince Of Wales'S Institute Of Architecture [CITY] London [COUNTRY] United Kingdom | [MENTION] The Princes Foundation [CITY] London [COUNTRY] United Kingdom | [MENTION] Royal Institute of British Architects [ACRONYM] RIBA [CITY] London [COUNTRY] United Kingdom |
| [MENTION] Development Finance & Public Policies [COUNTRY] Belgium | [MENTION] Development Finance and Public Policies [ACRONYM] DEFIPP [PARENT] University of Namur [CITY] Namur [COUNTRY] Belgium | [MENTION] Service Public Federal Finances [ACRONYM] SPF [CITY] Brussels [COUNTRY] Belgium |
| [MENTION] EES [COUNTRY] United States | [MENTION] Emerald Education Systems [ACRONYM] EES [CITY] Pasadena [COUNTRY] United States | [MENTION] ESI Group (United States) [ACRONYM] ESI [PARENT] ESI Group (France) [ACRONYM] ESI [CITY] Farmington Hills [COUNTRY] United States |
{
"scale": 20.0,
"similarity_fct": "cos_sim"
}
From the published model card. Full card on the HuggingFace links in the sidebar.
Benchmarks
As published on the model card — the maker's own numbers, not measured by AxForge.
| Task | Dataset | Metric | Score |
|---|---|---|---|
| Semantic Similarity | entity linking eval | Pearson Cosine | 0.707 |
| Semantic Similarity | entity linking eval | Spearman Cosine | 0.683 |
Using it via the API
Once AxForge deploys affilgood-dense-retriever for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (affilgood-dense-retriever 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":"affilgood-dense-retriever","input":"text to embed"}'
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.