All articles

Why I Don’t Think Casual RAG Is Ready for Company Data

A gentle look at what sits between a working demo and a production AI system.

Dark flow diagram with four zones. Raw documents (PDFs, wikis, scans) go through a dashed Refining zone of three steps: check extraction, control who adds files, tag and set access. From there a green safe path leads to Embed clean data in the Index zone and on to a Cited answer. A red demo shortcut runs from Raw documents straight to a Casual index node marked as skipping refining.
Follow the red line: the casual demo goes from folder to index and skips the dashed refining zone. The green path is the one the article argues for.

Lately, while catching up on open-source projects, I’ve noticed how much the AI tooling has shifted. Getting an AI to answer from your own documents used to be a research task. Today many people build a first version in an afternoon. So, let’s talk about RAG, and why I think the afternoon version is not yet enough for company data.

Simply put, RAG (Retrieval-Augmented Generation) lets a model answer from outside data as well as its own memory. It is like asking someone a question and letting them look it up in a book.

Why did RAG become so popular?

Because retraining a large model is hard. In the past, you took a pre-trained model, ran transfer learning on your own dataset and kept an MLOps pipeline going to protect accuracy. After GPT-3, models became too big to fine-tune easily, and commercial providers stopped giving access to their base models. So, the industry needed a way to give private data to a model without retraining it.

Those who remember the early days of LangChain know it was painful to use. It was made for developers, and it took time and patience. Things changed after GPT-3.5, and open-weight models such as LLaMA helped RAG mature. Better vector databases and GraphRAG made retrieval better again.

Many people point to n8n and OpenClaw when they talk about the recent RAG boom. I am thankful for both. n8n pushed workflows and automation forward. OpenClaw, together with tools like Obsidian, helped many people see what AI can do. For learning and for personal use, they are great. However, a personal tool is not an enterprise-grade multi-agent or RAG solution, and I think we should say that gently, without taking anything away from them.

Where does the wall start?

We are going to hit a wall very soon.

The current state of AI usage is like claiming you can turn lead into gold just by throwing things into a furnace. Maybe one in a hundred thousand gets lucky. Without a real refining process, you don’t get gold. In RAG, the lead is your old PDFs, stale wikis and scanned forms, and the refining is the part nobody shows in a demo.

There are two places you can look first.

The first is the parser. A scanned table goes through OCR, and one swapped digit or merged cell can reach the answer with a citation that looks perfectly right. The OHRBench paper (8,561 document images across seven domains) reports that none of the OCR solutions it tested was good enough for building high-quality RAG knowledge bases. Tools such as Docling use OCR for scanned PDFs and a table model to predict rows and columns, as described in the Docling technical report, which is a good start. Benchmark numbers come from the authors’ own setups, so please treat them as a hint and test your own documents.

The second is who can add files. The PoisonedRAG paper from USENIX Security 2025 reports about 90% attack success when five malicious texts per question were injected into a knowledge base of millions of texts. That is a research setup, and I would not copy the number into a risk report. The lesson that carries over is simpler. If anyone can drop a file into the corpus, the corpus is part of your attack surface. OWASP added vector and embedding weaknesses as a new entry in its 2025 list for LLM applications, and its OWASP Top 10 for LLMs 2025 summary stresses strict permission and access control.

In my own notes on guardrails for the RAG layer, source vetting and permission filters at retrieval time are the ones that get skipped most often. Malware in agent skillsets and data leakage belong to the same family of risks. They are already real, so a working school project or demo is not a good reason to relax.

Why does this matter for small models too?

Take Google’s Gemma 4 family, as of November 2026. It points to AI moving onto the device instead of relying only on API calls. Think of a clothing app that checks whether a shirt fits you with a model on your phone. To make this work, the industry is moving to Small Language Models (SLMs). Fewer parameters means less knowledge inside the model, so the support has to come from somewhere else. I think that support will be mature RAG. When RAG goes to the edge, we get new backend, frontend and security questions as well.

It always comes back to data quality. People often treat RAG like a magic vacuum, hoping they can dump raw PDFs and old wikis into a vector database. But raw data is not qualified data. I don’t think a magical, robust AI framework will arrive to close that gap. In my view, the way forward is the old, boring work of data engineering. Build proper ETL or ELT pipelines. Tag the metadata. Set up access control before anything reaches the embedding model. It is not the exciting part of AI, but we really cannot framework our way out of bad data.

In Myanmar, I would love to see more real production AI: event-driven indexing with Airflow, tracing with Langfuse, real recommendation and forecasting systems, and enterprise OCR on solid infrastructure. I am glad to see local products appearing, and I hope we build more on research, good datasets and careful SLM work.

What can you try this week?

Pick ten pages from your own documents. Include a scan, a table and a page with an old policy. Run them through the parser you plan to use and compare the extracted text with the original by eye. Count the wrong cells and write the number down. Then list who is allowed to add a file to your corpus, and who reviews it. If one of those two answers is “nobody”, you have found your first task, and it is a good one.

I have not run this parser test myself yet, so I will share my numbers when I do. The article before this one, What I’d Check Before Letting an AI Assistant Search Company Documents, covers the read side of the same problem. Next, I will write about How I’d Measure an Enterprise AI Pilot.

Thomas