AM.
Back to Overview

Smaller Embeddings Need a Retrieval Budget

Mandate & Focus

Published November 22, 2026 · 6 Min Read · Applied AI Systems

By Essay

Authored rankings and relevance labels, independent of the hypothetical vector dimensions. Offline arithmetic and boundary checks executed locally. No embedding model, search index, database size, latency or realized savings were measured.

Executive Summary

Bound vector-storage arithmetic, preserve compatible query and document representations, and compare retrieval coverage before accepting a smaller embedding configuration.

Article Details
November 22, 2026
6 Min Read
Applied AI Systems

About the Author

AM

Anant Mishra

Global Head - Technology, AI & ICT | Technology & AI Transformation Executive

A RAG cost proposal replaces 768-dimensional embeddings with 256-dimensional vectors. The storage arithmetic looks attractive. The harder question arrives when a user asks for the one document that the new retrieval path no longer returns. A smaller representation is a candidate design choice; it needs evidence about the work the search system must still perform.

For an enterprise knowledge service, evaluate the proposed change at two boundaries. First, calculate the particular representation being reduced. Then test retrieval against a declared set of questions and relevance judgments. Keep those findings separate until an actual implementation connects them. Multiplying a dimension reduction by the whole infrastructure bill skips most of the operating system around the vectors.

Calculate a bounded storage quantity

The current pgvector reference specifies 4 × dimensions + 8 bytes for its single-precision vector value. Under an invented inventory of 100,000 vectors, 768 dimensions give 308,000,000 bytes across those values. At 256 dimensions, the same formula gives 103,200,000 bytes. Those are calculated quantities for this type, not measured database sizes.

They exclude row and index overhead, source text, metadata, replicas, backups and working memory. They also exclude the period when both old and new indexes coexist. A migration may need that overlap so the team can compare behavior and retain a rollback option. Record the exclusions beside the estimate rather than allowing a useful component calculation to become an unsupported service-cost claim.

The input inventory matters as much as the formula. Count vectors at the actual unit being stored: one document may produce many chunks, and a revised chunking policy can change that count. Keep a corpus snapshot and its chunk identifiers with the estimate. A cheaper vector representation combined with substantially more chunks may lead to a different total than a fixed-count illustration suggests.

Check whether shortening is supported

Sentence Transformers’ Matryoshka documentation describes training representations that remain useful at shorter dimensions. That is a property to investigate in the chosen model and configuration. The documentation’s examples are not evidence that every embedding model can be shortened without changing the results needed by a particular enterprise.

Declare the exact model revision, preprocessing, dimensionality, normalization and distance metric for both paths. Preserve compatible query and document representations in each candidate. An interface accepting a vector of the expected length does not establish that its coordinates share the intended meaning. A clean migration record should explain how both sides were generated.

If several settings change together, describe the experiment as a comparison of complete configurations. It may still support a deployment decision, but it cannot isolate dimension count as the cause of a difference. A controlled dimension comparison would hold the other relevant choices fixed where the model supports that operation.

Freeze questions and relevance judgments

The scikit-learn recall reference defines recall as true positives divided by true positives plus false negatives. In a retrieval worksheet, those counts correspond to relevant documents found and relevant documents missed. For a top-three comparison, inspect which declared relevant identifiers appear in each path’s first three results. The denominator comes from the judgments, not from the number of results returned.

Use questions that reflect permitted real tasks and retain the evidence for the relevance judgments. Include important slices such as exact identifiers, terminology variants and questions requiring multiple sources. An aggregate can hide a regression in a small but important group. Review both the average and the per-question differences before deciding which trade-offs are acceptable.

Incomplete judgments require a visible boundary. If a worksheet has no relevance labels for a question, it cannot tell the evaluator whether the retrieved documents are useful. Mark that question unjudged in the declared summary. Do not quietly turn a missing judgment into perfect performance or assume that every returned document is irrelevant.

Read the paired differences

Imagine an authored fixture where the baseline finds both relevant documents for one question and the candidate finds only one. Another question retains its relevant source. A third loses the one source previously found. A single average reports a change; the paired records explain where it occurred and which documents deserve review.

Keep result identifiers and rank order, even when the chosen recall calculation uses set membership. Rank may matter for the later context-selection step. Reject duplicate identifiers in a result list so repeated copies cannot be interpreted as additional evidence. Explain whether metrics are averaged per question or pooled across relevant documents, because those approaches assign different weights.

The companion Design study reproduces those calculations using fictional rankings and declared labels. Its baseline and candidate are hand-written lists, independent of the hypothetical storage dimensions. The exercise tests the evaluator’s arithmetic and missing-judgment handling. It measures no embedding model or search index.

Connect the retrieval decision to service cost

An implementation rehearsal should retain actual index sizes, build time, query latency, operating configuration and retrieval results for the frozen task set. It should also check what reaches the answer generator. A relevant source retrieved at rank three may still be removed by a context limit or later filter. Good retrieval evidence is necessary for understanding that boundary, but it does not establish answer quality by itself.

The LLM inference cost calculator supports separate input/output-token scenarios. It does not estimate embedding storage, index builds or retrieval quality. Put the bounded vector calculation, retrieval comparison and model-call estimate side by side, with their assumptions intact. An embedding migration becomes reviewable when a team can show what gets smaller, which task outcomes change, and what actual evidence supports accepting the trade-off.

Sources

  1. Vector type storage reference — pgvector maintainers; checked 22 November 2026
  2. Matryoshka Embeddings — Sentence Transformers documentation; checked 22 November 2026
  3. Recall score definition — scikit-learn documentation; checked 22 November 2026

Related reading

Read the publishing standards or suggest a correction.

Continue the conversation

Putting a design decision into practice?

If this essay raises a question for your organisation, discuss the constraints, evidence and implementation choices with Anant Mishra. This is an invitation to talk, not a claim that the examples represent delivered client work.

Article Discussion & FAQs

Does reducing dimensions reduce the whole RAG bill proportionally?
A vector-value calculation covers one component. Indexes, source text, replicas, build work, retrieval and model calls require separate evidence.
Can any embedding model be truncated safely?
Shortening must be supported and evaluated for the selected model and task. Compatible dimensions alone do not establish compatible representations or preserved retrieval quality.
How are queries without relevance labels handled here?
The fixture marks them unjudged and excludes them from the macro denominator while retaining their records. Missing judgments are not treated as a zero or perfect score.

Ready to architect operational leverage?

Available for fractional executive leadership, enterprise architecture consulting, and board-level technical advisory.

Initiate Dialogue ↗