# Smaller embeddings that kept their recall

Published 2025-06-30 · Topics: Vector search, AI

Quantising vectors without losing the results that matter.

An embedding stored as 32-bit floats is mostly precision nobody asked for. Quantising it makes every vector smaller and every scan faster; the question is what it does to the results.

## Three sizes

| Format | Bytes per dimension | What is lost |
|---|---|---|
| 32-bit float | 4 | Nothing |
| 8-bit integer | 1 | Fine distinctions between close scores |
| 1 bit | 1/8 | Everything but the sign |

## Rescore what you kept

A common pattern searches the small vectors first, keeps a few times more candidates than it needs, and rescores those candidates with the full vectors. The scan reads the small vectors; only a short list ever touches the large ones.

## Measure on your own data

How much recall a format keeps depends on the model and on the queries. The only number that matters is the recall on a labelled set of your own questions, measured before and after.

[All articles](https://danielealbano.me/blog)

## Building something with RAG, search or AI? Write to me.

[Open the contact form](https://danielealbano.me/contact)

---

Every page of this site is available in Markdown: request its URL with the header `Accept: text/markdown`.
