AI10 min read

RAG in production — seven mistakes we see on every engagement.

Retrieval-augmented generation looks simple on a slide. In production, it’s the thousand unglamorous decisions around the retrieval that separate a demo from a system people will actually trust.

Every enterprise AI engagement we’re called into looks the same on day one: a working prototype, a weary engineering lead, and the question “why do the answers go wrong on exactly the questions we care about?” The answer is almost always one of the same seven things. Here they are, in roughly the order we find them.

1. Chunking as an afterthought

By far the most common mistake. Someone grabbed a chunker with default settings — 512 tokens, 10% overlap, split on newlines — and ran the entire corpus through it. Now a question about “refund policy” retrieves a mid-sentence fragment of page 14, missing the preceding definition and the following exception.

Chunking is not an infrastructure concern. It’s a product decision. Chunks should be the size and shape of the thing a user is likely to ask about. For policy documents that’s a clause. For technical documentation that’s a section. For transcripts that’s a speaker turn plus the preceding context. Decide, then automate.

2. Pure vector search where keyword search would have worked

Vector search is magical for semantic matches and terrible for exact ones. Ask a RAG system about error code SV-402 and it will cheerfully return the eight nearest neighbours in embedding space — most of which don’t mention SV-402 at all.

Fix: hybrid retrieval. Run BM25 (or Elasticsearch, or OpenSearch) alongside your vector index and merge results. The engineering cost is modest. The quality lift on names, codes, SKUs, model numbers, acronyms, and jargon is enormous.

3. No reranker

Vector top-K is a cheap, coarse filter. Treating its first result as the answer is like reading only the first search result Google returns. In production, retrieve more candidates than you need (K = 20 to 50), then apply a cross-encoder reranker (something like bge-reranker or Cohere Rerank) to score the final 3–5 that go to the model.

This is a one-week engineering investment that typically moves retrieval quality more than any other single intervention.

4. Treating the LLM as the source of truth

RAG systems get built with the vague feeling that “the model will figure it out.” The model will not figure it out. Given mediocre retrieval, the model will cheerfully hallucinate a confident answer that cites nothing. Given good retrieval but unclear instructions, the model will cherry-pick the chunks it likes.

Rule: the LLM is a reader, not a librarian. If the retrieval doesn’t surface the right chunk, no amount of prompt engineering will save the answer. Fix retrieval first.

5. No evals, just vibes

“It seems better after that change” is how RAG systems regress silently. Without a repeatable eval, you don’t know whether yesterday’s prompt tweak helped the common case and quietly broke the long-tail.

Minimum viable eval:

  1. A curated set of 30–100 real user questions, with the specific chunk that should be retrieved for each.
  2. A faithfulness check — does the final answer actually use what was retrieved? (Automatable with a second LLM call.)
  3. A groundedness check — does the answer include claims not supported by the retrieved chunks?
  4. A deployment gate. Anything that fails more than N questions blocks the change from going out.

This is two weeks of engineering investment. It will pay for itself the first time you catch a silent regression.

6. Stale indexes

The content that went into the vector index three months ago is not the content on the website today. Nobody wired up re-indexing, so users ask about a feature that launched last week and the system confidently references documentation from before it existed.

Fix: incremental re-indexing on content change, with a timestamp attached to every chunk and a cheap heuristic to prefer newer chunks when they rank close. Most customers don’t need full re-index. They need to know which document changed last Tuesday.

7. No per-user context

The RAG system answers every user the same way, because the question text is the only input. But the real intent is “answer me, given my account, my plan, my region.”

Fix: user and session context become part of the retrieval filter and the prompt. “Retrieve from documents relevant to this user’s plan and region” is a five-line change in the retrieval query. It’s the difference between a chatbot that answers generically and one that feels like it knows who you are.

The pattern

Looking at this list, the common thread is clear: most RAG failures are not model failures, they’re system design failures. The model is doing the best it can with what the retrieval system hands it. Your engineering time should go into the retrieval system — the chunker, the hybrid index, the reranker, the evals — before it goes into prompt engineering, model swaps, or fine-tuning.

The order matters. Teams we work with usually get an immediate 40–60% quality lift by fixing the retrieval layer. Everything after that is diminishing returns.


If you’re building a RAG system and any of this list sounds familiar, we’d be happy to take a look. Start a conversation →

Services

Building AI features?