All Questions
Rag And Retrieval medium

You plan to index 50M chunks using 1,536-dimensional fp32 embeddings and keep the vectors in RAM for HNSW search. Roughly how much memory do the raw vectors need, and what follows from that?

  1. A About 30 GB, so the full index fits comfortably in the RAM of one commodity node with headroom to spare.
  2. B About 77 GB, because each dimension is stored as a 1-byte value in the default vector storage format.
  3. C About 3 TB, because each vector also stores its full chunk text inline within the same memory block.
  4. D About 300 GB before index overhead, so reducing dimensions or quantizing vectors is worth evaluating.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions