How to Fix RAG

Katya Poslavskaya27 Oct 2026

Problem

A RAG assistant that impressed on a data subset often stalls before production. The full corporate base is large, noisy, growing and has many content owners, so retrieval worsens and wrong answers appear. The risk is highest when the assistant talks to clients. Customers rarely have datasets or metrics, only a wish for "95% accuracy".

Example from the article: an assistant kept giving absurd answers over instructions with Excel functions. The base had been cut into 100-token chunks, which for Russian turned dense formulas and descriptions into incoherent scraps.

Solution in brief

Treat the model as the last suspect. Build a classic hybrid pipeline (BM25 plus embeddings, reranker), set chunk size by content type, and add agentic loops or graphs only after the baseline hits its limits. Evaluate with an LLM judge on a reference set that experts correct from drafts, rerun it before every release, and clean the base with a duplicate and contradiction checker.

Questions this case answers
  • How to keep the answer quality of a retrieval-augmented assistant stable when the document base grows, becomes contradictory and no labeled test data exists
  • How to decide which pipeline stage to fix when a retrieval-augmented system gives wrong answers and the cause is unknown
  • How to set up chunking, indexes and retrieval so a RAG assistant works on a full corporate knowledge base and not only on a demo subset?
  • How to evaluate a RAG system when the customer has no labeled dataset and no metrics?

Tools and methods

  • Hybrid search — BM25 and embeddings merged with Reciprocal Rank Fusion, then a cross-encoder reranker
  • BGE-M3, OpenAI text-embedding-3-large, E5 — embedders; BGE-M3 for closed environments
  • LLM chunking — an LLM sets chunk boundaries on messy documents
  • Router model — sends simple queries to classic RAG, hard ones to agentic
  • LLM-as-a-judge — scores answers against a reference on a 1 to 10 scale
  • Data Validator — KTS's module that flags duplicates and contradictions
Continue reading — it's free

Google or a one-time email code. No password.