Infrastructure 9 min read15 March 2025

RAG Is Not a Feature — It's an Architecture Decision

Joshua Lamerton

RAG AI Architecture Vector Search LLM Infrastructure Production ML

Every week another tool promises to add RAG to your product in ten minutes. The demos are compelling. The production reality is different.

The Abstraction Mismatch

RAG isn't a feature you bolt on. It's a retrieval architecture decision that shapes your entire data pipeline — how you ingest, chunk, embed, index, and serve documents. Get those decisions wrong and no amount of prompt engineering will save you.

The most common mistake: treating RAG as a search problem when it's actually a freshness + precision + latency problem. You need all three simultaneously.

Chunking Is Not Trivial

How you split documents determines the quality ceiling of your retrieval. Fixed-size chunking is fast and dumb. Semantic chunking is slower and better. Hierarchical chunking — preserving document structure while enabling granular retrieval — is what production systems actually need.

Most teams get 70% of the way there with naive chunking and wonder why their RAG system hallucates on multi-paragraph queries.

The Embedding Model Is a Moving Target

Embedding models improve rapidly. Every time you switch, you need to re-embed your entire corpus. If you haven't planned for this operationally — versioned indexes, incremental re-embedding pipelines, A/B testing retrieval quality — you're going to pay for it in downtime and regression.

What Good Looks Like

A production RAG system has: clean ingestion with structured metadata, chunking tuned to your document types, hybrid retrieval with reranking, continuous evaluation of retrieval quality, and a clear plan for embedding model migration. Not ten minutes. But it works.

Clap