Private AI guide

Self-hosted RAG

RAG is a pipeline, not a single privacy property. A self-hosted interface may still depend on external embeddings or inference, while a fully controlled pipeline must keep every mandatory component inside the required boundary.

Decision context

Start with the boundary, not the brand.

Private retrieval over internal documents, knowledge bases, matter files, research collections and other controlled corpora.

Ingestion

Where are documents parsed, transformed and chunked?

Retrieval data

Where are embeddings, indexes and retrieved passages stored and processed?

Inference

Does the generation model run locally or call an external endpoint?

Capacity

Can the hardware support model weights, context, KV cache and runtime overhead for the intended workload?

Common failure modes

What not to assume

01

Evaluating only the chat UI while ignoring the RAG data layer.

02

Assuming local vector storage guarantees local inference.

03

Ignoring context growth and runtime overhead when estimating memory fit.

Hard constraints win: mandatory privacy, platform, hardware or license requirements exclude incompatible configurations instead of merely lowering their rank.

Verified baselines

Reference configurations related to this guide

These configurations are evidence-backed launch references. They illustrate different privacy and hardware trade-offs; they are not universal recommendations.

FAQ

Key questions

What makes a RAG stack private?

The required privacy boundary must cover every relevant component: application, ingestion, document and index storage, retrieval and inference.

Does self-hosted RAG require local inference?

Not necessarily as a technical architecture, but local inference is required when the user’s hard constraint says inference or sensitive context must not leave the controlled environment.

Why does hardware matter for RAG?

RAG adds context and runtime overhead on top of model weights. Hardware fit therefore depends on quantization, context, KV cache, runtime and concurrency as well as model size.