Feature Extraction
Transformers
Safetensors
sentence-transformers
multilingual
llava_eurobert_audio
embedding
jina-embeddings-v5
multimodal
vision
audio
vllm
video
image-feature-extraction
audio-feature-extraction
video-feature-extraction
sentence-similarity
custom_code
🇪🇺 Region: EU
Instructions to use jinaai/jina-embeddings-v5-omni-nano-text-matching with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jinaai/jina-embeddings-v5-omni-nano-text-matching with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="jinaai/jina-embeddings-v5-omni-nano-text-matching", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jinaai/jina-embeddings-v5-omni-nano-text-matching", trust_remote_code=True, device_map="auto") - sentence-transformers
How to use jinaai/jina-embeddings-v5-omni-nano-text-matching with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("jinaai/jina-embeddings-v5-omni-nano-text-matching", trust_remote_code=True) sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
config_sentence_transformers.json: mirror retrieval — set prompts={'document': 'Document: '} and default_prompt_name=null so SBERT users use encode_document(...), AutoModel/vLLM users prepend 'Document: ' manually (same paradigm as retrieval, no query side).
Browse files
config_sentence_transformers.json
CHANGED
|
@@ -1,13 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"__version__": {
|
| 3 |
-
"sentence_transformers": "5.1.2",
|
| 4 |
-
"transformers": "4.57.0",
|
| 5 |
-
"pytorch": "2.8.0"
|
| 6 |
-
},
|
| 7 |
"prompts": {
|
| 8 |
-
"
|
| 9 |
-
"document": ""
|
| 10 |
},
|
| 11 |
"default_prompt_name": null,
|
| 12 |
"similarity_fn_name": "cosine"
|
| 13 |
-
}
|
|
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"prompts": {
|
| 3 |
+
"document": "Document: "
|
|
|
|
| 4 |
},
|
| 5 |
"default_prompt_name": null,
|
| 6 |
"similarity_fn_name": "cosine"
|
| 7 |
+
}
|