Sentence Similarity
sentence-transformers
Safetensors
German
English
hyper3_embed
feature-extraction
text-embeddings
german
late-interaction
mteb
custom_code
Instructions to use hyper3labs/hyper3-embed-deu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use hyper3labs/hyper3-embed-deu with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("hyper3labs/hyper3-embed-deu", trust_remote_code=True) sentences = [ "Das ist eine glückliche Person", "Das ist ein glücklicher Hund", "Das ist eine sehr glückliche Person", "Heute ist ein sonniger Tag" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 3,513 Bytes
88b959f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | {
"model_type": "SentenceTransformer",
"__version__": {
"sentence_transformers": "6.1.0",
"transformers": "5.17.0",
"pytorch": "2.14.0"
},
"prompts": {
"query": "Instruct: Given a search query, retrieve relevant passages.\nQuery: ",
"document": "",
"bitext": "Instruct: Retrieve translation-equivalent text.\nQuery: ",
"clustering": "Instruct: Group texts by topic.\nQuery: ",
"sts": "Instruct: Retrieve semantically similar text.\nQuery: ",
"classification": "Instruct: Classify the text.\nQuery: ",
"pair_classification": "Instruct: Determine whether texts have the same meaning.\nQuery: ",
"AmazonCounterfactualClassification": "Instruct: Classify a given Amazon customer review text as either counterfactual or not counterfactual.\nQuery: ",
"AmazonReviewsClassification": "Instruct: Classify the given Amazon review into its appropriate rating category.\nQuery: ",
"BelebeleRetrieval": "Instruct: Given a question, retrieve a passage in any language that answers the question.\nQuery: ",
"BlurbsClusteringP2P": "Instruct: Classify the given book title and blurb into its genre.\nQuery: ",
"BlurbsClusteringS2S": "Instruct: Classify the given book title into its genre.\nQuery: ",
"FalseFriendsGermanEnglish": "Instruct: Retrieve translations of the following text.\nQuery: ",
"FloresBitextMining": "Instruct: Retrieve translation-equivalent text.\nQuery: ",
"GerDaLIR": "Instruct: Given a legal query or passage, retrieve the court decision that addresses it.\nQuery: ",
"GermanSTSBenchmark": "Instruct: Retrieve semantically similar text.\nQuery: ",
"MLQARetrieval": "Instruct: Given a question, retrieve a passage in any language that answers the question.\nQuery: ",
"MTOPDomainClassification": "Instruct: Classify the intent domain of the given utterance in task-oriented conversation.\nQuery: ",
"MTOPIntentClassification": "Instruct: Classify the intent of the given utterance in task-oriented conversation.\nQuery: ",
"MassiveIntentClassification": "Instruct: Classify the intent of the given utterance in task-oriented conversation.\nQuery: ",
"MassiveScenarioClassification": "Instruct: Classify the scenario of the given utterance in task-oriented conversation.\nQuery: ",
"MultiEURLEXMultilabelClassification": "Instruct: Classify the given EU legal act into its EuroVoc subject domains.\nQuery: ",
"MultiHateClassification": "Instruct: Classify the given text as either hateful or not hateful.\nQuery: ",
"NTREXBitextMining": "Instruct: Retrieve translation-equivalent text.\nQuery: ",
"RTE3": "Instruct: Given a premise, retrieve a hypothesis that is entailed by the premise.\nQuery: ",
"STS17": "Instruct: Retrieve semantically similar text in English or German.\nQuery: ",
"STS22.v2": "Instruct: Retrieve semantically similar text.\nQuery: ",
"SwissJudgementClassification": "Instruct: Classify the given facts of a Swiss court case by whether the appeal was approved or dismissed.\nQuery: ",
"TenKGnadClusteringP2P": "Instruct: Classify the topic of the given text.\nQuery: ",
"TenKGnadClusteringS2S": "Instruct: Classify the topic of the given text.\nQuery: ",
"XMarket": "Instruct: Given a product name search, retrieve the corresponding product description.\nQuery: ",
"XNLI": "Instruct: Given a premise, retrieve a hypothesis that is entailed by the premise.\nQuery: "
},
"default_prompt_name": null,
"similarity_fn_name": "cosine"
}
|