Jaco van der Laan

Architecture

The Retrieval Layer Is a Product Decision

Great data architecture still yields broken AI when the retrieval layer is treated as plumbing. What the model is handed — and whether the rule's exceptions came with it — decides the answer.

You can do everything upstream right — clean pipelines, a governed semantic layer, trusted data — and still ship an AI that gives wrong answers. The reason sits in a layer most teams treat as pipework: retrieval. Retrieval is where the question gets shaped, the right context gets found and filtered, and the answer gets assembled — and every one of those is a design choice, not a technical default. Hand the model a good foundation through a careless retrieval layer and the foundation never reaches the decision. The failure is quiet, which is what makes it dangerous. Retrieval that returns part of what was needed produces an answer that looks right and is wrong — the model fills the gap plausibly, the output is fluent, and nothing flags that a piece was missing. The canonical case is the rule that has an exception: a policy that holds "resolve within 24 hours, except for accounts under $10K, which get 72." Retrieve the rule without its exception and the agent confidently applies the wrong SLA. The rule without its exception isn't a smaller truth — it's an operational risk wearing the costume of a correct answer. Which is why the shape of what gets retrieved is a product decision, owned deliberately, not an infrastructure setting left on its default. It determines whether meaning survives the trip from your governed data to the model's context: does the retrieval carry the rule and its exceptions, the definition and its scope, the number and the caveat that qualifies it? Get that right — the rule and its exception together — and you get trusted output. Get it wrong and no amount of upstream quality saves you, because the model reasons over what it was handed, not over what you stored. For a semantic-first architecture this is the last mile and the one most likely to be skipped. The semantic layer defines meaning; the retrieval layer decides how much of that meaning reaches each decision. Treat it as plumbing and you've built a beautiful foundation that leaks at the tap. Treat it as a product surface — designed, owned, tested against the exception cases — and the foundation finally shows up where it counts.

← All concepts & vocabulary