Back to the blog

An assistant with your data: why many RAG systems fail in production

Published on · 2 min read

  • RAG
  • applied AI
  • company data

An assistant that answers using your company’s information (manuals, contracts, tickets, clinical records) is usually built with a technique called RAG: the system searches your documents for relevant passages and hands them to the model so it can write the answer. The demo works in an afternoon. Taking it to production is another story.

Almost everything published on this is accounts from teams and vendors, not controlled studies, so the figures below are indicative.

Where it usually fails

  • Evaluation. One team reports its system scored 90% on a hand-built question set and fell to around 60% on real queries. Without continuous evaluation, you find out about the problem when a customer complains.
  • Retrieval. Several guides agree that when answers are bad, the fault is almost always in finding the right passage, not in the model. And it can degrade silently as the corpus grows.
  • Document chunking. Cutting text into fixed-size pieces splits sentences and tables in half. Respecting document structure (headings, sections) usually improves results.
  • Neural search only. Combining keyword search and semantic search, with a second step that reranks the results, is now the common pattern. Keyword search still wins in many cases.

What we do differently

  1. Build the evaluation set first, with real user questions and the correct answers, and measure every change against it.
  2. Always cite the source. If the assistant shows which document each claim came from, the user can verify it and we can debug it.
  3. Allow “I don’t know”. An assistant that says “I couldn’t find that in your documents” is worth more than one that makes things up.
  4. Respect permissions. Each person should retrieve only the documents they already have access to.

One practitioner estimate puts a first production-ready system with all these pieces at three to six months. That is why it pays to start narrow: one set of documents, one type of question and a clear way to measure whether it works. If you are thinking about an assistant with your data, tell us about the case.