Embedding models are the backbone of semantic search, RAG pipelines, and vector databases. Choosing the wrong one costs you accuracy, money, or both.
Why it matters
This post compares eight models that frequently come up in modern AI stacks. They span zero-ops APIs, self-hosted open weights, on-device models, and hybrid retrieval, so you can pick one with confidence.
Our newsletter
Get tutorials, AI agent recipes, webinars, and early product updates in your inbox every two weeks
The contenders
| Model | Provider | Dims | Params | Max Tokens | Licence |
|---|---|---|---|---|---|
| text-embedding-3-small | OpenAI | 1536 (adjustable) | Undisclosed | 8,191 | Proprietary API |
| text-embedding-3-large | OpenAI | 3072 (adjustable) | Undisclosed | 8,191 | Proprietary API |
| gemini-embedding-001 | 3072 (adjustable, MRL) | Undisclosed | 2,048 | Proprietary API | |
| embeddinggemma-300m | 768 (down to 128, MRL) | 300M | 2,048 | Gemma | |
| qwen3-embedding | Alibaba / Qwen | 1024 – 4096 | 0.6B – 8B | 32,768 | Apache 2.0 |
| nomic-embed-text-v2-moe | Nomic AI | 768 (down to 256, MRL) | 475M total / 305M active (MoE) | 512 | Apache 2.0 |
| jina-embeddings-v5-text-small | Jina AI | 1024 (down to 32, MRL) | ~677M | 32,768 | CC BY-NC 4.0 |
| BGE-M3 | BAAI | 1024 | ~568M | 8,192 | MIT |
Deep dive
text-embedding-3-small (OpenAI)
OpenAI's workhorse embedding model.
It supports Matryoshka Representation Learning (MRL), letting you truncate dimensions at inference time without retraining. With this model you can trade a little accuracy for significant storage and speed savings (e.g., dropping to 512 dims cuts index size by ~66% with minimal quality loss).
Strengths:
Mature, widely supported API
Native dimension reduction via MRL (set the
dimensionsparameter, up to 1536)Solid English MTEB score (62.3, as reported by OpenAI in January 2024)
Zero ops: no GPU, no deployment
Weaknesses:
Proprietary: no local deployment, cost per token
Context window tops out at ~8K tokens
Black box: no insight into training data or architecture
Best for: Teams that want to ship fast and don't want to manage infrastructure. Prototyping, low-volume production, or when your stack is already OpenAI-native.
text-embedding-3-large (OpenAI)
The larger sibling of text-embedding-3-small.
Same API, same 8K context, same MRL trick, but with a higher quality ceiling and a default of 3072 dimensions. OpenAI reported 64.6 on MTEB (English) at launch in January 2024. A shortened 256-dim -large vector still outperforms a full 1536-dim ada-002 vector.
Strengths:
Higher accuracy than
-smallwith the same zero-ops workflow3072 default dims, adjustable via MRL for storage/quality trade-offs
Drop-in for teams already on OpenAI
Weaknesses:
More expensive per token than
-small, and larger vectors cost more to store/indexSame ~8K context limit and proprietary black-box constraints
Best for: OpenAI-native teams that want more accuracy than -small and are willing to pay for larger vectors and higher per-token cost.
gemini-embedding-001 (Google)
Google's first general-purpose text embedding model.
It defaults to 3072 dimensions (reducible to as low as 128 via MRL) and covers 100+ languages. At launch in March 2025, its experimental version took #1 on MTEB Multilingual (68.32), MTEB English v2 (73.30), and MTEB Code.
Google has since released Gemini Embedding 2 (generally available since April 2026). It is natively multimodal: text, images, video, audio and PDFs share one embedding space. Pick it if you need to search more than text. gemini-embedding-001 remains the text-only option covered here.
Strengths:
Near-frontier quality across multilingual, English, and code retrieval
Flexible dimensions (128–3072) via MRL
Zero ops: served through the Gemini API
Weaknesses:
Proprietary and API-only; no self-hosting
Shorter input window (~2K tokens) than Qwen3 or Jina v5
Requires manual normalisation when using non-default dimensions
Best for: Teams that want top-tier quality with no infrastructure and are comfortable with an API dependency. A strong "best quality, no GPU" default.
embeddinggemma-300m (Google)
Google's open-weight counterpart to gemini-embedding-001, released in September 2025. It's a 300M-parameter encoder built from Gemma 3, deliberately sized for on-device deployment. Google positions it for "environments with limited resources such as mobile phones, laptops, or desktops."
It outputs 768 dimensions, truncatable to 512, 256, or 128 via MRL, handles a 2048-token context, and was trained on 100+ languages. Google reports mean(task) scores of 69.67 on MTEB English v2, 61.15 on MTEB Multilingual, and 68.76 on MTEB Code, which is remarkable for the parameter count. Quantisation-aware trained checkpoints (Q4_0, Q8_0, mixed precision) ship alongside the full-precision weights.
One important operational detail: EmbeddingGemma expects task-specific prompt prefixes. Queries are formatted as task: {task description} | query: {content} and documents as title: {title | "none"} | text: {content}, with distinct prefixes for retrieval, question answering, fact verification, classification, clustering, semantic similarity, and code retrieval. Skip the prefixes and you leave quality on the table.
Strengths:
Genuinely small: 300M params, with QAT checkpoints for low-memory deployment
Runs on-device: no GPU, no API, no data leaving the machine
100+ languages and strong MTEB scores for its size
Compact 768-dim output, reducible to 128 via MRL
Weaknesses:
Gemma licence, not Apache 2.0 or MIT: subject to Google's Terms of Use and Prohibited Use Policy, so check it against your compliance requirements
2048-token context, same as
gemini-embedding-001and well short of Qwen3 or Jina v5Requires task-specific prompt prefixes; getting them wrong silently costs accuracy
Absolute quality still trails the frontier API models and larger open weights
Best for: On-device, offline, or privacy-sensitive retrieval: mobile apps, desktop tools, edge deployments, or anywhere you want embeddings without a GPU or a network round-trip. Also a good fit when you want a Google-quality model self-hosted rather than API-only.
qwen3-embedding (Alibaba / Qwen)
The Qwen3 embedding family comes in three sizes (0.6B, 4B, 8B) and supports an unusually long 32K token context window, a standout feature for document-level retrieval. The 8B model ranked #1 on the MTEB multilingual leaderboard (70.58, June 2025) and scores 75.22 on MTEB English v2, thanks to Qwen3's 100+ language pre-training. It is one of the strongest open-weight options at the top end.
Strengths:
State-of-the-art open-weight MTEB scores, especially multilingual
32K context window, best in class for long documents
Full Apache 2.0 licence, self-hostable
Flexible sizes: use 0.6B for speed, 8B for quality
Weaknesses:
8B variant needs real GPU memory (~16GB VRAM for fp16)
Larger sizes are heavier to serve than compact models
Cold-start cost if self-hosting for the first time
Best for: Long-document retrieval, multilingual applications, or teams that want top-tier quality with the freedom to self-host. Strong default choice for serious production workloads.
nomic-embed-text-v2-moe (Nomic AI)
Nomic's v2 is built on a Mixture of Experts architecture (8 experts, top-2 routing): 475M total parameters but only 305M active per forward pass, giving it a favourable quality-per-FLOP ratio. Unlike the English-only v1, v2-moe is explicitly multilingual (~100 languages, trained on 1.6B pairs), and it ships with fully open weights and a reproducible training pipeline.
Strengths:
MoE architecture: 305M active params for efficient inference
Fully open: weights, training data, and code are public
Multilingual out of the box (~100 languages)
768-dim output, reducible to 256 via MRL, compact for storage-sensitive workloads
Weaknesses:
Short 512-token context window: you'll need tighter chunking than the other models here
MoE inference carries more memory overhead than a dense model of similar active params
Top-end quality trails Qwen3-8B and the leading API models
Best for: Teams that care deeply about reproducibility and open science, or who want an efficient, multilingual, self-hosted model, provided your chunks fit within 512 tokens.
jina-embeddings-v5-text-small (Jina AI)
Despite the "small" name, this is a ~677M-parameter model built on a Qwen3-0.6B backbone, not a tiny CPU model. It distils much larger models into a sub-1B footprint. At release in February 2026 it scored ~71.7 on MTEB English v2 and ~67.7 on MMTEB, the highest among multilingual embedding models under 1B parameters. It supports a 32K token context, defaults to 1024 dims (truncatable to 32 via MRL), and ships task-specific LoRA adapters for retrieval, similarity, clustering, and classification.
Strengths:
SOTA quality among sub-1B multilingual models at release
32K context window for long-document retrieval
MRL down to 32 dims, plus task-specific LoRA adapters
Open weights, self-hostable
Weaknesses:
CC BY-NC 4.0 licence: the open weights are for non-commercial use only. Commercial use goes through Jina's API or a commercial licence
At ~677M params it wants a GPU for high throughput, unlike a CPU-only edge model
Newer release, with less community tooling than long-established models
Best for: Research and non-commercial projects that want near-frontier retrieval quality in a self-hostable sub-1B model, or commercial teams willing to license it, with long context and flexible output dimensions.
BGE-M3 (BAAI)
BGE-M3 from the Beijing Academy of AI is a versatile open model (~568M params, XLM-RoBERTa backbone) best known for multi-functionality: it can produce dense, sparse (lexical), and multi-vector (ColBERT-style) representations from a single model. It handles 100+ languages, an 8K context, and 1024-dim dense output, under a permissive MIT licence.
Strengths:
Dense + sparse + multi-vector retrieval from one model, ideal for hybrid search
100+ languages, 8K context
MIT licence, self-hostable
Weaknesses:
Dense-only MTEB scores trail the newest frontier models
Getting full value requires plumbing for sparse/multi-vector, not just dense vectors
Best for: Hybrid lexical-semantic search systems, and teams that want one self-hosted model covering dense, sparse, and multi-vector retrieval.
Benchmark snapshot (MTEB, English)
These figures are vendor-reported and drawn from different MTEB versions (legacy MTEB vs. MTEB English v2), so they are not directly comparable across rows. Multilingual and code performance differ again. Figures checked in November 2026. Always run your own eval on your domain data.
| Model | MTEB (English), approx | Notes |
|---|---|---|
| qwen3-embedding-8B | ~75.2 (Eng v2) | Top open-weight model; multilingual 70.58 |
| gemini-embedding-001 | ~73.3 (Eng v2) | Experimental version, March 2025; multilingual 68.32 |
| jina-embeddings-v5-text-small | ~71.7 (Eng v2) | SOTA under 1B params; non-commercial licence |
| embeddinggemma-300m | ~69.7 (Eng v2) | Only 300M params; multilingual 61.15, code 68.76 |
| text-embedding-3-large | ~64.6 (legacy) | OpenAI's higher-quality API model |
| text-embedding-3-small | ~62.3 (legacy) | OpenAI's default API model |
| nomic-embed-text-v2-moe | Not reported | BEIR 52.86, MIRACL 65.80; 512-token context |
| BGE-M3 | ~59 (dense) | Add sparse/multi-vector for hybrid gains |
Decision guide
| Your priority | Self-host? | Recommended model | Why |
|---|---|---|---|
| Ship fast, zero infra | No | text-embedding-3-small | Reliable API, no GPU or deployment |
| Best quality, zero infra | No | gemini-embedding-001 | Near the top of MTEB multilingual/English/code via API |
| Search across images, video or audio too | No | Gemini Embedding 2 | Natively multimodal, one embedding space |
| More accuracy, still OpenAI-native | No | text-embedding-3-large | Higher quality than -small, same workflow |
| On-device, offline, or no GPU | Yes | embeddinggemma-300m | 300M params, 768 dims, runs on phones and laptops |
| Long documents (>4K tokens) | Yes | qwen3-embedding | 32K context window, best-in-class open weights |
| Best self-hosted quality, GPU available | Yes | qwen3-embedding-8B | Top open-weight MTEB scores |
| Frontier quality in a small model, non-commercial use | Yes | jina-embeddings-v5-text-small | SOTA under 1B params, 32K context |
| Hybrid dense + sparse + multi-vector search | Yes | BGE-M3 | One model for all three retrieval modes |
| Open data / reproducibility | Yes | nomic-embed-text-v2-moe | Public weights, data, and training code |
Using with SurrealDB
All of these models produce float vectors you can index with SurrealDB's HNSW index, or with the DiskANN index added in v3.1. A minimal setup:
DEFINE TABLE documents SCHEMAFULL;
DEFINE FIELD content ON documents TYPE string;
DEFINE FIELD embedding ON documents TYPE array<float>;
DEFINE INDEX idx_embedding ON documents
FIELDS embedding
HNSW DIMENSION 1536 -- match your model's output dims
DIST COSINE; The DIMENSION value must equal your model's output size. 1536 matches text-embedding-3-small, but -large and gemini-embedding-001 default to 3072, qwen3/jina-v5/BGE-M3 to 1024, and nomic-v2-moe and embeddinggemma-300m to 768. If you use MRL to truncate dimensions, set DIMENSION to the truncated size.
How do you query the index?
Use the KNN operator <|k,ef|> to return the k nearest neighbours, and vector::distance::knn() to read each distance back. The example below uses toy 4-dimensional embeddings in place of a real model's output. Read the four numbers as pets, food, tech and sport. The query vector stands for a question about pets:
The two pet documents come back first, with a cosine distance close to 0. The third result, about marathon training, is far behind at about 0.66, because KNN always returns k rows even when only two are relevant. In production, the query vector comes from the same model that embedded your documents.
Takeaway
Ship fast, no infra: text-embedding-3-small (or text-embedding-3-large for more accuracy)
Best quality with no infra: gemini-embedding-001, or Gemini Embedding 2 for multimodal search
Best self-hosted quality: qwen3-embedding-8B
Frontier quality in a small self-hosted model: jina-embeddings-v5-text-small, if its non-commercial licence fits
On-device, offline, or CPU-only: embeddinggemma-300m
Hybrid dense/sparse/multi-vector search: BGE-M3
Open science / reproducible: nomic-embed-text-v2-moe
There is no universal winner. The right choice depends on your latency budget, infrastructure, language coverage needs, context-length requirements, licence, and how much you care about keeping the model on-prem. Run a quick MTEB-style eval on a sample of your own data before committing to any of them.
How to get started?
Ready to build semantic search and RAG on top of these embeddings?
Join our Discord server: new to embeddings in SurrealDB? Start in the #all-ai channel.