Size the index before you pick the instance
Vector search indexes usually live in RAM for speed, and memory is the expensive part of running them. The raw size is simple arithmetic; the index structure, metadata and replicas then multiply it. This calculator estimates the total so you can choose hardware or a hosted plan with headroom.
One million 1,536-dimension float32 vectors are 6.14 GB of raw data (6,144 bytes each). With 50% index overhead and one replica, plan for about 9.22 GB.
How the estimate is built
Raw size = vectors × bytes per vector
Total = raw size × (1 + index overhead) × replicas
Sizes are in decimal units: 1 GB = 10⁹ bytes. Cloud instances often quote memory in GiB (2³⁰ bytes, about 7% larger).
Common embedding sizes
| Dimensions | Per vector | Raw | Total |
|---|---|---|---|
| 384 | 1,536 bytes | 1.54 GB | 2.3 GB |
| 768 | 3,072 bytes | 3.07 GB | 4.61 GB |
| 1,024 | 4,096 bytes | 4.1 GB | 6.14 GB |
| 1,536 | 6,144 bytes | 6.14 GB | 9.22 GB |
| 3,072 | 12,288 bytes | 12.29 GB | 18.43 GB |
Choosing the overhead
Graph indexes such as HNSW store links between neighbouring vectors; depending on settings like the number of links per node, that can add roughly 10% to 100% on top of raw data. Inverted-file indexes can be smaller. Add room for metadata, IDs and the original text if they are stored alongside, and leave free memory for queries and updates.
Quantization trade-offs
Storing values as float16 halves memory with little loss in recall for most models. int8 cuts it to a quarter, and binary to one thirty-second, but recall falls more, so many systems use a compressed index for search and re-rank the top results with full-precision vectors. Test recall on your own queries before committing.
Sizing for next year, not today
An index that fits today can run out of memory within months if the corpus keeps growing. Suppose you start with 1 million chunks and add 100,000 a month. After a year you have 2.2 million, which needs 20.28 GB at the default settings, or 40.55 GB with one replica for failover. Size the instance for the size you expect at the end of the planning period, and leave headroom for the memory that queries, inserts and the operating system need on top of the index.
When memory is not the only option
Some engines can keep full vectors on disk and only a compressed copy in memory, using the compressed copy to shortlist and the full vectors to re-rank. That trades some query latency for much lower memory. If you go that route, the "Raw vector data" figure (6.14 GB for the default) becomes a disk requirement rather than a RAM one.
Cutting the vector count
Chunk size drives vector count. Splitting documents into 200-token chunks creates roughly twice as many vectors as 400-token chunks. Fewer, larger chunks save memory but can hurt retrieval precision.
For hardware choices, see GPU buy vs rent; for API spend, AI cost calculators; for converting storage units, use the audio file size calculator as a bitrate-to-bytes reference.
Vector storage questions
How much memory do 1 million embeddings need?
At 1,536 dimensions in float32, 6.14 GB raw, or about 9.22 GB with 50% index overhead.
Does quantization reduce accuracy?
Somewhat. float16 usually loses little; int8 and binary lose more, often offset by re-ranking.
What is index overhead?
Extra memory the search index uses, such as HNSW neighbour links, on top of the raw vectors.
Are these GB or GiB?
Decimal GB (10⁹ bytes). A GiB is about 7% larger.