RAG for customer support: grounding your agent in what your company actually knows
A language model on its own is a confident generalist. Ask it about your refund window and it will give you an answer — fluent, reasonable, and quite possibly wrong, because it's guessing at your policy from the average of every policy it saw in training. In customer support, a confident wrong answer is worse than no answer. Retrieval-augmented generation (RAG) is how you fix that.
The problem RAG solves
Your agent needs to speak from your facts: this product's return window, this plan's limits, this region's rules. There are two ways to get facts into a model — bake them in with fine-tuning, or look them up at answer time. For support, retrieval wins almost every time:
- Your knowledge changes weekly; retraining a model to match is slow and expensive.
- Retrieval lets the agent cite its source, so answers are auditable and you can see why it said what it said.
- When a policy is wrong, you edit one document — not a model.
RAG means: before the agent answers, it fetches the most relevant passages from your knowledge and reasons over those. The model supplies the language; your documents supply the truth.
What good retrieval actually looks like
The naive version — embed every document, grab the top few chunks, stuff them in the prompt — demos well and disappoints in production. The details that separate good from bad:
- Chunking that respects meaning. Split on sections and ideas, not arbitrary character counts, so a retrieved passage is self-contained.
- Freshness. Stale knowledge is the most common cause of confidently wrong answers. Retrieval is only as good as the last time the source was updated.
- Grounding discipline. The agent should answer from what it retrieved and say "I don't have that" when it didn't — not paper over a gap with a plausible guess.
That last point is the whole game. A grounded agent that admits a gap is trustworthy. An ungrounded one that fills every gap with fluent invention will eventually tell a customer something that costs you money.
Retrieval is a feature you maintain
The mistake teams make is treating the knowledge base as a one-time upload. It's a living system: new products, changed policies, and the questions customers actually ask should all flow back into it. The conversations your agent can't resolve are a map of what's missing — which is exactly the feedback loop that makes the agent better over time.
Grounding is what turns a clever model into a reliable colleague. You can wire your knowledge into an agent and see it answer from your own facts on the develop page.