ld.← ALL FIELD NOTESTHE RELATED CASE STUDY ↗
FIELD NOTES / 06SYSTEMS   ·   RETRIEVAL & RAG

The systems cost behind a RAG pipeline.

At millions of vectors, decisions that look small in a prototype become infrastructure decisions.

Start with the raw numbers

One million vectors with 1,536 dimensions stored as FP32 need about 6.14 GB for the raw values alone. FP16 needs roughly half as much. Neither estimate includes indexes, payloads, replicas, or other overhead.

That arithmetic changed how I thought about our retrieval pipeline. The embedding model matters, but so do vector dimensions, precision, storage, and the number of candidates passed to reranking.

1 MILLION × 1,536 DIMENSIONS / RAW VALUES
FP32≈ 6.14 GB
FP16≈ 3.07 GB
PLUSIndexes & overhead

There is no free setting

Chunk size and overlap affect what is embedded. Top-k and HNSW parameters influence the candidates retrieved. Reranking more candidates can improve relevance, but adds compute and latency.

We explored Qdrant quantization and containerization while working with Voyage 4 embeddings and Voyage rerank 2.5. The right configuration depends on the dataset and constraints; we used BEIR benchmarks and retrieval metrics to compare changes.

Continue the conversation

Further reading

KEEP READING / 05Did retrieval actually get better?

Another note from the notebook.