All articles

More Dimensions Won't Fix Your Search

Embedding dimension count sets storage cost and part of a model's capacity, but it does not rank models or repair a mismatched retrieval method. Choose the model on judged queries, then measure the smallest dimension and precision that still meets your quality bar.

An oversized grey key with extra teeth jams against a lock face, while a small, precisely cut blue key sits in the keyhole and the shackle springs open.

When OpenAI launched its third-generation embedding models in January 2024, it reported that text-embedding-3-large, shortened to 256 dimensions, still outperformed the full 1536-dimensional text-embedding-ada-002 on the MTEB benchmark. The vector with one sixth of the dimensions won. Model training decided the outcome, not width.

That result does not mean shorter is always better, and it does not mean dimensions are irrelevant. Our position is narrower: dimension count is a cost and capacity setting, not a model-independent quality score. Pick the model and retrieval method on judged queries from your own workload. Then measure the smallest representation that still meets your quality requirement. Adding dimensions can improve a model, but it cannot fix a retrieval method that does not suit the task.

What do dimensions, precision and the model each control?

An embedding configuration combines three separate decisions. The model defines the learned mapping from text to vectors. The dimension count sets how many coordinates each vector has. The precision sets how many bits encode each coordinate: 32 for float32, 8 for int8, 1 for binary. An approximate index then adds its own loss on top. Two vectors with the same dimension count, produced by different models, are not comparable or interchangeable.

The benchmark in the OpenAI comparison matters too. MTEB averages scores across many task types, including classification, clustering, semantic similarity and retrieval. A higher average is a useful signal. It does not guarantee better retrieval on your corpus, in your language, for your queries.

Storage is the part you can calculate exactly. Raw vector payload is N × d × b / 8 bytes, where N is the vector count, d the dimension count and b the bits per coordinate:

Representation Raw bytes per vector Raw payload for 100 million vectors
3072 dimensions, float32 12,288 1,228.8 GB
1024 dimensions, float32 4,096 409.6 GB
1024 dimensions, int8 1,024 102.4 GB
1024 dimensions, packed 1-bit 128 12.8 GB

These rows are arithmetic, not equivalent-quality configurations or complete index sizes (decimal GB throughout). A real deployment adds IDs, index structures, codebooks or scale factors, any higher-precision vectors kept for rescoring, and replicas. Latency does not fall in proportion to bytes either: candidate counts, memory access patterns, decoding and rescoring all contribute. For how index structures change what a query reads, see the IVF and HNSW explainers.

How much quality does truncation cost within one model?

Shortening a vector only works when the model was trained for it. Matryoshka Representation Learning (Kusupati et al., NeurIPS 2022) trains a model so that the leading prefixes of its embedding (for example the first 64, 128 or 256 coordinates) are usable embeddings on their own. Cutting coordinates from a model trained without that objective discards information it spread across the whole vector, and quality can collapse.

The cleanest way to see the trade-off is one model, one benchmark, several sizes. The nomic-embed-text-v1.5 model card publishes exactly that:

Dimensions Reported MTEB average Float32 bytes per vector
768 62.28 3,072
512 61.96 2,048
256 61.04 1,024
128 59.34 512
64 56.10 256

Going from 768 to 256 dimensions cuts float32 payload threefold and lowers the reported average by 1.24 points. That is 1.24 points on an aggregate benchmark score, not a 1.24% loss in recall. Quartering it again, down to 64 dimensions, costs almost five more points. Whether 256 is "good enough" depends on the quality loss your application can accept, which this table cannot tell you.

Follow the model's own preprocessing when you truncate. Nomic's reference code applies layer normalization to the full vector, slices the prefix, then L2-normalizes the result. The same model also expects task prefixes such as search_query: and search_document:. A generic slice-and-renormalize function is fine for some models and subtly wrong for others.

Quantization reduces a different part of the cost

Quantization keeps the dimension count and encodes each coordinate in fewer bits. At a fixed dimension, int8 needs one quarter of the float32 payload and packed binary one thirty-second, before overhead. Dimension and precision reductions multiply in the byte arithmetic. Their quality losses do not simply multiply, so measure them together.

Hugging Face's embedding quantization experiments give a scoped example. For the 1024-dimensional mxbai-embed-large-v1, binary retrieval retained 92.53% of the float32 MTEB Retrieval score, rising to 96.45% with rescoring; int8 retained about 97% without rescoring. These are ratios of benchmark scores, not percentages of relevant documents found. The same report shows binary with rescoring at 74.77% for e5-base-v2. Same technique, very different outcome, depending on the model.

Be precise about what "rescoring" means, because it changes the storage bill:

  1. Query-side rescoring. The Hugging Face setup retrieves extra candidates with binary vectors, then rescores them with a float32 query against the binary document vectors. No float32 document vectors are kept.
  2. Stored-vector rescoring. Many engines keep full-precision document vectors and rescore candidates against them. That improves scores, but the retained vectors count toward storage.
  3. Either way, rescoring only reorders candidates it receives. A relevant document the first stage missed stays missed.

WarpSearch uses the second pattern. Its dimensions and storage guide documents float32 stored vectors, with compact PQ or RaBitQ index codes added on top and candidates rescored from the stored column. A 1-bit RaBitQ code is roughly 1/30 of a 768-dimensional float32 vector, but because it sits beside the full vectors, it does not cut total stored-vector space thirtyfold. Stored precision is not configurable today, so in WarpSearch the lever for stored bytes is fewer dimensions. The vector search beyond RAM post covers why compact codes still matter for what a query reads.

When more dimensions help, and when they cannot

"Dimensions are just storage" is also wrong. Weller et al.'s On the Theoretical Limitations of Embedding-Based Retrieval (ICLR 2026) shows that the number of distinct top-k document sets a single-vector embedding can return is bounded by its dimension. To test this, the authors built LIMIT: about 50,000 documents describing what people like, 1,000 queries of the form "who likes X", and exactly two relevant documents per query, arranged to require many different document combinations.

On the full LIMIT set, recall@100 from the paper's Table 5:

Method (constructed stress test) Recall@100
BM25 93.6
GTE-ModernColBERT (multi-vector) 54.8
Gemini Embed, 3072 dimensions 10.0
Qwen3 Embed, 4096 dimensions 4.8

Dimensions do help within a model. On the 46-document LIMIT-small set (Table 4), Gemini Embed's recall@2 rises from 7.7 at 128 dimensions to 33.7 at 3072. Yet at its largest size it still trails BM25 by a wide margin on the full set. A dimension sweep improved the model and left the gap to a different method almost untouched.

Read this as a stress test, not a representative benchmark. LIMIT's queries name the attribute exactly, which suits lexical matching, and the paper does not show that hybrid search always wins or that no future model could close the gap. The practical lesson is narrower and more useful: for exact identifiers, explicit constraints or combinations of requirements, compare BM25, filters and late-interaction models on your real queries before reaching for a wider embedding.

How to choose a representation: three references, not one

A single "recall" number usually mixes three kinds of loss. Separate them by measuring each against its own reference:

Evaluation Reference What it measures
Task relevance Human judgments or scored downstream outcomes Whether the configuration serves the user's need
Representation fidelity Exact search with the full-size vectors from the same model How truncation and quantization change that model's neighbors
Approximate-index fidelity Exact search in the same shortened or quantized representation Extra candidate loss from approximate search
Operational cost The deployed configuration, measured Storage, memory, bytes read and latency, including rescoring

A procedure that follows those references:

  1. Freeze the inputs. Fix the corpus, chunking, model versions, instructions and a set of judged queries. Include slices for each domain, each language and exact-match queries.
  2. Pick the model and method on relevance. Compare candidate models, BM25 and hybrid retrieval with nDCG@10 and evidence recall. For RAG, add downstream answer quality. Agreement with one model's nearest neighbors is not relevance.
  3. Sweep supported dimensions with exact search, then precision and rescoring depth, using the provider's preprocessing. Score against the human labels; use full-size exact results as a diagnostic, not ground truth. Test truncation and quantization together after measuring each alone.
  4. Add the approximate index last. Compare it with exact search in the same representation and record ANN recall, judged relevance, memory, total storage, bytes read and p50/p95 latency under stated hardware and cache conditions.
  5. Choose the smallest configuration within a quality tolerance you declared beforehand, confirmed on held-out queries with confidence intervals. If nothing small enough passes, revisit the model, chunking or retrieval method rather than adding width.

In WarpSearch, steps 3 and 4 can run from one ingest: declare truncated variants of an MRL vector field before indexing and query each by name with "exact": true. The truncate_dims option requires the cosine metric and renormalizes the stored prefix by default. Each variant adds storage and indexing work, and a variant added later covers only documents indexed after it. Model-specific steps such as Nomic's layer normalization still belong in your embedding pipeline.

Keep the full vectors, with model and preprocessing provenance, or the source text. Moving to a different supported prefix only needs a reindex from saved full vectors. Changing models means re-running the embedding model over the whole corpus, a much larger cost.

Key takeaways

  • Dimension count sets storage and part of a model's capacity. It does not rank models: OpenAI reported 256-dimensional text-embedding-3-large beating 1536-dimensional ada-002 on MTEB.
  • Truncate only Matryoshka-trained models, with the model's own preprocessing. Nomic's card shows 768 to 256 dimensions costing 1.24 aggregate MTEB points for a threefold payload cut.
  • Quantization results depend on the model: binary with rescoring kept 96.45% of MTEB Retrieval for mxbai-embed-large-v1 and 74.77% for e5-base-v2.
  • Count every stored representation. Compact index codes beside full-precision vectors do not shrink total storage by the code ratio.
  • More dimensions can help a model without fixing the method: on LIMIT, BM25 reached 93.6 recall@100 against 10.0 for a 3072-dimensional embedding.
  • Measure relevance, representation fidelity and index fidelity against separate references, then take the smallest configuration that meets a predeclared tolerance.

Cookie settings

Optional tracking stays off until you choose it. Your choice applies to this browser for 180 days. Read the details.

Essential storage keeps you signed in, protects forms, and remembers this choice. It is always available.