Private RAG: when AI search over your own documents beats a chatbot, and what it takes to build one
TechScripts Nepal · Kathmandu · November 20, 2026 · 5 min read
Most organizations have the same problem in different clothes: the answer exists, somewhere in a policy manual, a contract, a past proposal or a ticket history, and finding it takes someone who already knows where to look. General AI chatbots don't help much, because they don't know your documents and they will guess when they don't know.
Retrieval-augmented generation, usually shortened to RAG, is the standard way to fix that. Instead of asking a model to answer from memory, the system first finds the relevant passages in your own documents, then asks the model to answer using only those passages, and shows you which ones it used.
When it's worth building
RAG earns its keep when:
- The knowledge is written down but scattered, across many documents, versions and systems.
- Answers need to be traceable. Policy, compliance, legal, engineering and support questions all need a source someone can check.
- The same questions come up again and again, often from new staff or from teams who don't own the documents.
- The data can't go to a public chatbot, because it's confidential, regulated or simply sensitive.
It's probably not worth it when the documents are few and well organized (a good index does the job), or when the questions need calculation over structured data rather than reading text. That's a database query, not a search.
How it works
A private RAG system has four parts:
- Ingestion. Documents are collected from where they live, converted to text, split into passages, and stored with their source, version and access rules.
- Retrieval. When someone asks a question, the system finds the most relevant passages. Good systems combine meaning-based search (embeddings in a vector index) with plain keyword search, because product codes, clause numbers and names are often matched better by keywords.
- Answering. The model is given the question and the retrieved passages, with instructions to answer only from them and to say so when they don't contain the answer.
- Citation. Every claim in the answer links back to the passage it came from, so the reader can check it in one click.
Why citations aren't optional
A RAG answer without citations asks people to trust the model. With citations, it asks them to check a source, which is a much smaller request. Citations also make the system's mistakes visible: if an answer cites a passage that doesn't support it, a reader can see that, and you can fix the cause.
A useful test before launch: for a set of real questions, check whether each cited passage actually supports the sentence that cites it. That single check catches most of the problems below.
Common reasons answers go wrong
- Bad splitting. If documents are cut into passages in the wrong places, a rule and its exceptions end up in different pieces, and the model sees only half.
- Stale or duplicate versions. If last year's policy and this year's are both indexed with no version information, the system will happily cite the wrong one.
- Tables and scans. Text extraction from scanned PDFs and complex tables is often poor. Check what the system actually indexed, not what the document looks like.
- Retrieval misses. If the right passage isn't retrieved, no model can answer correctly. Measure retrieval separately from answer quality.
- No "I don't know". If the model isn't instructed and tested to admit when the passages don't answer the question, it will fill the gap.
Keeping it private
Private RAG means more than not using a public chatbot:
- Respect existing permissions. A user should only get answers from documents they could already open. Carry access rules through ingestion and filter at retrieval time.
- Choose where the model runs. Options range from a cloud provider's enterprise API with no data retention, to a model hosted in your own cloud account, to fully self-hosted open-weight models. Our post on Mistral Large 4's open weights covers some of the self-hosting trade-offs.
- Log questions and answers, with care about who can read the logs, so you can audit use and improve the system.
Start small
The best first project is one document collection, one group of users and a list of real questions they ask today. Build it, measure how often the cited answer is correct, and expand from there. A narrow system people trust is worth more than a broad one they double-check.
How we help
Private RAG with citations is one of the systems TechScripts Nepal builds most often, deployed where your data already lives. We can help choose the scope, build ingestion that handles your actual documents, set up an evaluation with your own questions, and hand it over to your team with the training to run it. If you have a pile of documents people keep asking about, tell us about it. For a related pattern, where AI drafts and a person approves, see our guide to human-in-the-loop workflows.