The RAG Cost Surprise: Ingestion Is Pennies, Synthesis Is 90% of the Bill
Embedding 25,000 documents with OpenAI text-embedding-3-small ($0.02/1M) costs less than $1 one-time. Yet retrieving Top-10 large chunks (8,000 tokens) into a frontier synthesis LLM 3,000 times a day quickly runs $1,000+/month.
Chunk Size, Overlap & Top-K Discipline
Using 400–600 token semantic chunks with 10–15% overlap and a lightweight reranker to pass only the top 4–6 relevant passages cuts synthesis input tokens in half while improving grounded answer accuracy.
Watch Vector Memory Footprint on High-Dimension Embeddings
3072-dimension float32 vectors consume 2x the RAM of 1536-dimension vectors and 3x that of 1024-dimension models. Dimension reduction (Matryoshka embeddings) or scalar quantization cuts managed vector DB bills sharply at scale.