HF-Mirror Logo
HF-Mirror Mirror Gateway
🌐 δΈ­ζ–‡
Task-Adapted Vectors πŸ•’ Reading Time: ~15 min read πŸ“… Updated 2026-11

Jina Embeddings v3: Task-Specific LoRA Adapters, 8192 Context Length & Matryoshka Dimension Slicing

Use Jina Embeddings v3 task-specific LoRA adapters for retrieval, clustering, and code search with 8192 context and Matryoshka dimension reduction.

🎯 Jina Embeddings v3 task adapter design

In the past, teams had to switch back and forth between different models (one for retrieval, another for classification). Jina Embeddings v3 supports calling the corresponding lightweight LoRA header immediately during inference through the task parameter:

  • retrieval.query: Optimized for short search queries to enhance intent capture.
  • retrieval.passage: Specially optimized for long document paragraphs, supporting a maximum of 8192 Tokens.
  • classification: semantic classification adaptation; separation: cluster analysis adaptation.

⚑ Mirror downloading and Python multi-task vector calculation

Download Jina weights
export HF_ENDPOINT="https://hf-mirror.net"
huggingface-cli download jinaai/jina-embeddings-v3 \
  --local-dir /data/models/jina-embeddings-v3 \
  --local-dir-use-symlinks False
jina_demo.py: Targeted adapter call
from transformers import AutoModel
#
model = AutoModel.from_pretrained("/data/models/jina-embeddings-v3", trust_remote_code=True)
#
# Queries and documents use different dedicated task adapters
query_vec = model.encode(["How to achieve efficient quantification of large models?"], task="retrieval.query")
doc_vec = model.encode(["This is an in-depth technical article introducing the principles of AWQ and GGUF quantization algorithms..."], task="retrieval.passage")
#
print("Query vector dimensions:", query_vec.shape)
print("Document vector dimensions:", doc_vec.shape)
⚑ Need Instant Mirror Download Commands for This Model?

Paste any huggingface.co model, GGUF, or dataset URL into our converter to generate ready-to-run huggingface-cli, cURL, Wget, and Python commands.

Open HF Link Converter β†’

πŸ”— Related Engineering Guides

← Articles Index Explore All 39 Open-Source AI Engineering Guides Quick Start → 5-Minute Zero-Friction Setup Tutorial