Select Interactive
AI · Tech Stack & Tools8 min read

How On-Premise RAG Works: From Your File Share to Cited Answers

Retrieval-augmented generation is how a private AI system answers questions from your own documents instead of guessing from training data. Here is the full pipeline as it runs on a server inside your office: the document watcher, the index, retrieval, and answers that cite their sources, with nothing leaving your network.

By Jeremy Burton

Partner, Select Interactive

Key takeaway

Want the short version? Skip down for a concise summary.

Jump to summary

When we tell a law firm or a medical practice that a server inside their office can answer questions from their own documents, with citations, without any data leaving the building, the reaction is usually some version of: how? The honest answer is a technique called retrieval-augmented generation, RAG for short, and it is worth understanding because it explains both why the answers are trustworthy and why the privacy promise holds.

RAG is not exotic. It is the same pattern behind most serious document AI products, cloud or local. What changes with on-premise AI is not the technique but the custody: every step of the pipeline below runs on hardware you own, behind your firewall. This article walks the whole path, from a file landing on your file share to a cited answer appearing in a private chat.

What RAG Is, and Why On-Premise Changes Custody, Not the Technique

A language model on its own answers from what it learned during training: broad public knowledge, frozen at a point in time, with no awareness of your contracts, your policies, or the email your client sent last Tuesday. Ask it about your business and it will either decline or improvise. Improvisation is the failure mode everyone fears, and rightly so.

Retrieval-augmented generation fixes this by splitting the job in two. Before the model writes a single word, the system retrieves the passages from your own documents that are most relevant to the question. Then the model generates an answer grounded in those passages, and only those passages, citing where each claim came from. The model supplies the language skill; your documents supply the facts.

RAG turns "trust the model" into "verify the sources." That is a much easier thing to ask of a professional.

Every step in that loop, the index, the retrieval, the model, the chat, can run on a single well-specified server. Cloud products run the identical loop on their hardware, holding your documents while they do it. On-premise runs it on yours. The technique is the same; the custody is the entire difference.

Index Time: The Watcher, Chunks, and Embeddings

The pipeline has two halves that run on different clocks. The first half runs continuously in the background, whether anyone is asking questions or not, and its job is to keep the system current with your files.

It starts with a document watcher pointed at wherever your knowledge lives: a file share to begin with, and SharePoint, document management systems, or email archives as scoped during discovery. When a file is added or changed, the watcher notices on its own. Nobody uploads anything, and there is no "remember to sync" step, which matters because a knowledge system your team has to maintain by hand is a knowledge system that goes stale.

Each document is then split into chunks: passages a few paragraphs long, sized so that each one carries a coherent idea. Chunking sounds like a detail and is actually one of the levers that most affects answer quality, which is why we tune it against your real documents during onboarding rather than accepting defaults.

Finally, each chunk is converted into an embedding: a numerical fingerprint of the passage’s meaning, produced by a small model running on the same server. Passages about termination clauses end up near other passages about termination clauses, even when the wording differs. The fingerprints go into a vector index, which is the searchable memory of the whole system. When the watcher sees a file change, its chunks are re-embedded and the index updates, typically the same day.

Query Time: Retrieve, Compose, Cite

The second half of the pipeline runs only when someone asks a question, and it runs in seconds. Someone types into the secure chat: "What does the Henderson agreement say about early termination fees?"

  1. The question is embedded with the same model that fingerprinted the documents, so question and passages live in the same space of meaning.
  2. The index is searched for the chunks closest to the question: the relevant clauses from the Henderson agreement, not the whole contract and not the unrelated NDA next to it.
  3. The local model composes an answer from those retrieved passages, instructed to stay grounded in them and to say so when they do not contain the answer.
  4. Citations are attached: the answer links the source documents and passages it drew from, so the reader can open them and confirm.

Notice what the model is being asked to do in this design: read a handful of passages and write a grounded summary with references. That is a much narrower job than "know everything," and it is a job that today’s open-weight local models do well. This is the technical reason on-premise AI became viable for real work: retrieval carries the knowledge, so the model no longer has to.

Citations Are the Trust Mechanism

Every answer the system produces shows its sources, and this is a design rule, not a nice-to-have. An uncited answer, however fluent, asks your team to trust a machine. A cited answer asks them to do something professionals already do every day: check the reference.

In practice this changes how the tool gets used. The system becomes a very fast research assistant that hands you the answer and the folder it came from, and a person makes the call. That workflow survives a wrong answer gracefully: retrieval can surface the wrong passage, and a model can over-summarize, but a reader who opens the cited source catches it in seconds. We design for that human-in-the-loop explicitly, which is why we describe the platform as built for assistive work rather than unsupervised legal or medical decisions.

Citations also give us the tuning loop. When an answer cites the wrong passage, that is a retrieval problem with a visible trace: we can see what was retrieved and adjust chunking, embeddings, or ranking during onboarding. Grounded systems fail loudly and improvably; ungrounded ones fail silently.

Access Control and the Network Boundary

A RAG system that indexes everything for everyone would be a data breach with a search box. The index knows what is in every document it has seen, including the HR folder and the partner compensation memo, so the pipeline enforces permissions at answer time: individual accounts, role-based access, and audit logs of who asked what. A question from someone without rights to a document does not retrieve from it, and the answer behaves as if the document does not exist.

Around all of it sits the network boundary that makes on-premise mean something. The AI server lives on its own isolated segment with general outbound internet blocked at the firewall. Documents, embeddings, the index, chat history, logs, and backups all stay on hardware you own. There is no telemetry to a vendor and no route out for your data, because the firewall does not have one.

This is the architectural difference between a privacy promise written in a vendor policy and one enforced by a firewall rule. Policies change with acquisitions and terms-of-service updates. A network segment with no outbound route does not.

What RAG Is Not

A few clarifications keep expectations honest, and we would rather set them here than in a sales meeting.

  • It is not training on your data: your documents are indexed for retrieval, not baked into model weights. Remove a document and it is gone from the index; nothing about your data lives inside the model.
  • It is not fine-tuning: you do not need a custom-trained model to get answers from your documents, and for document Q&A, retrieval beats fine-tuning on freshness, cost, and traceability.
  • It is not magic recall: answer quality depends on retrieval quality, which depends on tuning against your real documents. That is engineering work, and it is most of what onboarding is for.
  • It is not a decision-maker: the system drafts, summarizes, and finds; your people verify and decide. Cited sources make that fast.

If this pipeline sounds like what your office needs, the next questions are practical ones: what hardware runs it, and what does it cost against the subscriptions you are paying today? We wrote companion pieces on both: the private AI server hardware guide and what on-premise AI actually costs.

Your Documents In, Cited Answers Out, Nothing Leaves

RAG is the reason a private AI server can be trusted with real work: retrieval grounds every answer in your own documents, citations make every answer checkable, and the network boundary keeps the entire loop, files, index, model, and chat, on hardware you own. No step of it requires your data to touch a cloud model.

The fastest way to evaluate it is to watch it answer questions about your own documents. That is exactly what our discovery phase produces, before any hardware is purchased. Book an intro meeting and bring the three questions your team asks most; we will show you what the pipeline does with them.

Work With Us

Have a project in mind?

We build the web's most demanding applications. Let's talk about yours.

Get in Touch

Keep Reading

Related Articles

All News
AI · Web Strategy9 min read

What Does On-Premise AI Actually Cost? Cloud Subscriptions vs a Server You Own

Per-seat AI subscriptions never stop billing. A private AI server is bought once and owned. We run the real numbers for a 15-person office: ChatGPT Business and Microsoft Copilot seat math on one side, a Mac Studio or NVIDIA DGX Spark on the other, and where the lines cross.

Read article
AI · Tech Stack & Tools10 min read

Inside a Private AI Server: A Hardware Guide to Mac Studio, NVIDIA DGX Spark, and Custom Builds

What machine actually runs a private AI system for an office? We break down the three builds we quote most, Mac Studio, NVIDIA DGX Spark, and custom GPU workstations: the specs that matter, what each one costs in the 2026 RAM squeeze, and how to size the box to your team instead of overbuying.

Read article
AI · Web Strategy10 min read

A Private AI Brain for Your Office: Introducing On-Premise AI Solutions

We now design, build, and manage dedicated AI systems that run entirely on hardware inside your office. Your documents, client data, and conversations never leave your network, and every answer cites its sources. Here is what the new service includes and how an engagement works.

Read article