Exact Formulas Behind the Calculator
Every figure rendered above comes from deterministic byte-level and vendor-published unit formulas so your architecture review has auditable math:
| Formula Component | Equation (N = Vectors, D = Dim, b = Bytes/Dim) |
Notes & Related Deep-Dive Guide |
|---|---|---|
| Raw Vector Payload | $N \times D \times b$ | b = 4 (FP32), 2 (halfvec), 1 (INT8), 0.125 (1-bit binary). See Quantization Math. |
| HNSW Graph + Buffer RAM | $1.20 \times (N \cdot D \cdot b + 320 \cdot N)$ | Covers m = 16 multi-layer neighbor lists, tuple headers, and 20% buffer headroom. See pgvector HNSW Tuning. |
| Annual Ingest Spend | $\frac{N \times T_{\text{chunk}}}{10^6} \times R_{\text{reindex}} \times P_{\text{1M}}$ | Models full re-embeds across model upgrades and chunk changes ($0 on Forge Turbo; $0.25/1M on Pro). See Batch Packing & Caching. |
| Monthly Query & Rerank | $Q_{\text{mo}} \times (\text{DB Read} + \text{Rerank}_{1\text{k}} + \text{Embed}_q)$ | Standalone rerankers add $2.00 / 1,000 queries ($12k/yr at 500k/mo); bundled in Forge Team ($199/mo annual). |
Programmatic Reproduction: Python CLI Sizing Script & Live curl Verification
Want to drop these exact sizing formulas into an internal architecture RFC or CI check? Run this standalone script or verify retrieval accuracy directly against Voxell Forge’s keyless bake-off endpoint:
def hnsw_ram_gb(vectors: int, dim: int, bytes_per_dim: float = 2.0) -> float:
payload_bytes = vectors * dim * bytes_per_dim
graph_and_tuple_bytes = vectors * 320 # m=16 links + tuple metadata
return ((payload_bytes + graph_and_tuple_bytes) * 1.20) / (1024 ** 3)
for label, dim, bpd in [
("OpenAI/Gemini 3072d FP32 (heap only)", 3072, 4.0),
("OpenAI/Gemini 3072d halfvec FP16", 3072, 2.0),
("Voxell Forge Pro 2560d halfvec FP16", 2560, 2.0),
("Voxell Forge Turbo 1024d halfvec FP16", 1024, 2.0),
]:
print(f"{label:40s}: {hnsw_ram_gb(10_000_000, dim, bpd):6.1f} GB @ 10M vectors")
# Keyless CLI verification against Voxell Forge (zero signup):
curl -sS -X POST https://api.voxell.ai/api/v1/agent/bakeoff \
-H "Content-Type: application/json" \
-d '{
"documents": [
{"name": "hnsw-sizing.md", "text": "Ten million 3,072d FP16 halfvec vectors require ~77.6 GB of resident HNSW RAM including graph edges and buffer headroom."},
{"name": "forge-vpc.md", "text": "Voxell Forge Local runs all five retrieval and reranking stages in under 14 GB VRAM on a single 24 GB GPU."}
],
"queries": ["How much resident HNSW RAM do 10 million 3,072d halfvec vectors require?"]
}'
Explore all 17 OpenAI & Gemini Optimization Guides, compare architectures on /compare/, review v4.0 Pricing, or start free in the Forge Console.