Document Chunking Architecture for RAG: Fixed, Semantic, Late, and Contextual Retrieval


The honest reason most production RAG systems plateau is that dense-vector retrieval has no notion of a relationship. The retriever finds top-k cosine-similar chunks and hands them to the model; if the answer requires composing facts across three documents, vector RAG returns only the chunks lexically close to the query and silently drops the bridging fact. Microsoft GraphRAG named this in 2024; LightRAG offered a cheaper alternative in 2025; the 2026 conversation is no longer "should we add a graph" but "which slice of the workload deserves the graph and how do we compose vector and graph without doubling the indexing bill". This article is the deep-architecture decision guide: the multi-hop and global-query failure modes that motivate graphs, what pure vector RAG actually does and the workloads it serves well, the five-stage Microsoft GraphRAG pipeline and its honest cost (300x to 1000x vector indexing), LightRAG and the simpler-cheaper variants, Neo4j vector index for unified storage, three production hybrid architectures (vector-first plus graph expansion, graph-first with vector grounding, router-based dispatch), the decision framework by workload, indexing cost math worked through at 2026 prices, drift and freshness operational patterns, eight anti-patterns, five-stage maturity ladder.
Your RAG "feels accurate" in the demo and is quietly wrong at scale. Evaluate it as two systems: retrieval metrics + faithfulness/groundedness, in a golden-set harness in CI.
The RAG pipeline that won 2024 — one question, one dense-vector lookup, one LLM call grounded on the top-k — is not the system that ships to production in 2026. The replacement is not bigger embeddings or a better re-ranker; it is the retrieval loop. Agentic RAG composes four architectural primitives: self-query decomposition that turns a multi-part question into a structured plan, plan-execute-replan with explicit iteration budgets that bound the loop, tool-augmented retrieval with a schema-driven router that chooses between dense indexes / SQL / graph / web search, and a validation loop with a sufficiency critic (gate to terminate-or-replan) and a faithfulness critic (deterministic gate before emission). Together they produce a bounded, observable, auditable retrieval agent. This article is the architecture-first playbook: what each primitive does, how they compose, the four failure modes specific to agentic RAG, eight anti-patterns that account for most production incidents, and the five-stage maturity ladder from classical-RAG-with-LLM-wrapper to full audit-grade deployment.
Fine-tuning, RAG, and prompt engineering answer three different questions — how should it behave, what should it know, what should it be told. A decision architecture.
Advertise and partner
Reach engineering leaders and CTOs reading about AI, mobile and cloud architecture.
Sponsored mentions and co-authored articles or technical deep-dives. Relevant products only, always disclosed.