Skip to content
Merged
39 changes: 39 additions & 0 deletions mteb/models/searchmap_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
from __future__ import annotations
from functools import partial
from mteb.model_meta import ModelMeta, sentence_transformers_loader

# Define task instructions with specific task names
task_instructions = {
"Classification": "Generate a representation for this text that can be used for classification:",
"Clustering": "Generate a representation for this text that can be used for clustering:",
"Retrieval": "Generate a representation for this text that can be used for retrieval:",
"STS": "Generate a representation for this text that can be used for semantic similarity:",
"PairClassification": "Generate a representation for this text pair that can be used for classification:",
"Reranking": "Generate a representation for this text that can be used for reranking:",
"Summarization": "Generate a representation for this text that can be used for summarization:"
}
Comment thread
Samoed marked this conversation as resolved.

searchmap_preview = ModelMeta(
loader=partial(
sentence_transformers_loader,
model_name="VPLabs/SearchMap_Preview",
revision="69de17ef48278ed08ba1a4e65ead8179912b696e",
model_prompts=task_instructions,
),
name="VPLabs/SearchMap_Preview",
Comment thread
Samoed marked this conversation as resolved.
languages=["eng_Latn"],
open_weights=True,
use_instructions=True,
release_date="2025-03-05",
n_parameters=435_000_000,
memory_usage_mb=1660,
embed_dim=4096,
license="mit",
max_tokens=8192,
reference="https://huggingface.co/VPLabs/SearchMap_Preview",
similarity_fn_name="cosine",
framework=["Sentence Transformers", "PyTorch"],
public_training_code=None,
public_training_data=None,
training_datasets=None

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also can you share which datasets you have used?

Suggested change
training_datasets=None
training_datasets=None,
adapted_from="NovaSearch/stella_en_400M_v5",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No we don't have this available for upload yet. So for now we'll not be uploading the training dataset, maybe in subsequent versions we will upload them.

)