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
Download config_sentence_transformers.json from hyper3labs/hyper3-embed-deu: direct link, hf CLI and curl.
- Browser
- Download file 3.51 kB
-
https://huggingface.co/hyper3labs/hyper3-embed-deu/resolve/main/config_sentence_transformers.json
- Command line
-
hf download hf://hyper3labs/hyper3-embed-deu/config_sentence_transformers.json
-
curl -L -o config_sentence_transformers.json https://huggingface.co/hyper3labs/hyper3-embed-deu/resolve/main/config_sentence_transformers.json
3.51 kB
| { | |
| "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" | |
| } | |