Views
No views yet

OpenAI text-embedding-large, Cohere Embed v4, gemini-embedding-001, and voyage-4-nano across finance, healthcare, legal, conversational, manufacturing, code, and STEM.| Property | Value |
|---|---|
| Parameters | 4B |
| Context Length | 32,768 tokens (32k) |
| Base Model | Qwen/Qwen3-4B |
| Embedding Dimensions | 2560, 1280, 640, 320, 160, 80, 40 |
| License | Apache-2.0 |
1from sentence_transformers import SentenceTransformer
2
3# Initialize model
4model = SentenceTransformer(
5 "zeroentropy/zembed-1",
6 trust_remote_code=True,
7 model_kwargs={"torch_dtype": "bfloat16"},
8)
9
10# Define query and documents
11query = "What is backpropagation?"
12documents = [
13 "Backpropagation is a fundamental algorithm for training neural networks by computing gradients.",
14 "Gradient descent is used to optimize model parameters during the training process.",
15 "Neural network training relies on efficient computation of derivatives through backpropagation.",
16]
17
18# Encode query and documents (uses task-specific prompts automatically)
19query_embeddings = model.encode_query(query)
20document_embeddings = model.encode_document(documents)
21# (2560,) (3, 2560)
22
23# Compute cosine similarities
24similarities = model.similarity(query_embeddings, document_embeddings)
25# tensor([[0.7525, 0.5670, 0.6835]])zembed-1 and competing embedding models, averaged across public and private benchmarks per domain. Full per-benchmark breakdown here.| Domain | ZeroEntropy zembed-1 | voyage-4-nano | Qwen3 4B | Cohere Embed v4 | gemini-embed-001 | jina-v5-small | OpenAI Large | bge-m3 |
|---|---|---|---|---|---|---|---|---|
| Finance | 0.4476 | 0.4227 | 0.3715 | 0.3670 | 0.3291 | 0.3576 | 0.3291 | 0.3085 |
| Healthcare | 0.6260 | 0.5356 | 0.5134 | 0.4750 | 0.5008 | 0.5132 | 0.5315 | 0.3620 |
| Legal | 0.6723 | 0.5957 | 0.5858 | 0.5894 | 0.6069 | 0.5716 | 0.5099 | 0.5207 |
| Conversational | 0.5385 | 0.4045 | 0.4034 | 0.4244 | 0.4247 | 0.4430 | 0.3988 | 0.3296 |
| Manufacturing | 0.5556 | 0.4857 | 0.4932 | 0.4919 | 0.4664 | 0.4725 | 0.4736 | 0.3736 |
| Web Search | 0.6165 | 0.5977 | 0.6914 | 0.7242 | 0.5881 | 0.6772 | 0.6750 | 0.6311 |
| Code | 0.6452 | 0.6415 | 0.6379 | 0.6277 | 0.6305 | 0.6354 | 0.6155 | 0.5584 |
| STEM & Math | 0.5283 | 0.5012 | 0.5219 | 0.4698 | 0.4840 | 0.3780 | 0.3905 | 0.3399 |
| Enterprise | 0.3750 | 0.3600 | 0.2935 | 0.2915 | 0.3224 | 0.3012 | 0.3307 | 0.2213 |
| Average | 0.5561 | 0.5050 | 0.5013 | 0.4957 | 0.4837 | 0.4833 | 0.4727 | 0.4050 |
