How my agent actually finds answers — and what happens when it doesn't

Part 5 findings of an experiment: building an LLM-powered support agent with deterministic boundaries. The companion repo contains the full code.

"What's your refund policy?"

Something has to know the answer. The model doesn't. Not reliably.

The answer lives in documents the company wrote. Getting the right one in front of the model at the right moment has an intimidating name: retrieval-augmented generation (RAG). And most explanations make it sound like magic.