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
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
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)
Paste any huggingface.co model, GGUF, or dataset URL into our converter to generate ready-to-run huggingface-cli, cURL, Wget, and Python commands.
π Related Engineering Guides
Eliminate slow GPU pod cold starts in Kubernetes. Design shared NFS/Ceph/JuiceFS ReadWriteMany PVCs, InitContainer mirror sync, and NVMe model caching.
Fix 401/403 errors on gated Meta LLaMA 3.3 repos. Generate Read Access Tokens, pass HF_TOKEN safely via HF-Mirror, and resume 70B downloads reliably.
Compare GGUF, AWQ, GPTQ, and EXL2 LLM quantization formats. Detailed VRAM requirements, perplexity benchmarks, CPU offloading, and Ollama vs vLLM selection.
Deploy Mistral Large 2 (123B) and Pixtral 12B vision models with Tekken tokenizer, structured function calling, vLLM tensor parallelism, and fast mirrors.