RCRAG Converter

Confidential computing for RAG: what an attested enclave protects

Confidential computing for RAG runs the model inside a hardware-isolated enclave that proves, through attestation, what code it runs, so the provider's own staff and hosts cannot read the retrieved passages and questions while they are processed; it does not protect your vector store, your gateway, your logs or the documents before retrieval.

Does confidential computing keep my RAG documents private?

Only the part that runs inside the attested enclave. Confidential computing for RAG can keep the retrieved passages and the question sealed from the model host while the model runs, if your client checks the attestation before sending. Your vector store, embedding step, gateway and logs sit outside it, so convert and index locally and send only the passages a question needs.

Why the retrieved passages are the part that leaves

A RAG answer is built from pieces of your documents. The retriever picks the passages that match a question, and those passages travel to the model in the prompt. If the model is hosted, that means slices of your contracts, tickets or notes leave your machine every time someone asks something. The files stay home. The relevant paragraphs don't.

Most hosted providers answer that worry with a policy. Zero data retention is a promise not to keep prompts after the response, and it is worth having; we covered how to get it in zero data retention for RAG. A promise is not something you can check from the outside, though. On November 30, 2026, The Register quoted an inference provider's founder calling ZDR worth "about the cost of toilet paper", and reported Notion's statement that a breach at Fireworks AI, an inference provider it used, had exposed Notion AI chat transcripts.

That is the gap confidential computing tries to close: move the guarantee from a contract into hardware you can verify.

What confidential computing actually does

Confidential computing runs a workload inside a trusted execution environment, an isolated region of a CPU or GPU whose memory is encrypted and walled off from the host operating system, the hypervisor and the people who run the machine. NIST describes the building blocks in IR 8320, Hardware-Enabled Security. The major clouds sell versions of it, and NVIDIA documents confidential computing on its GPUs and CPUs, which is what makes it practical for model inference.

The second half is attestation. The hardware produces a signed measurement of the code it is running, and a client can check that measurement before it sends anything. Without that check, an enclave is just another server you are told to trust.

The Register piece names gateways and providers that route prompts to enclave-backed models, including Maple, Privatemode, Tinfoil and NEAR AI, and notes OpenAI is testing a Private Inference service. We have not tested any of them, and a name in a news story is not an endorsement. The questions below apply to all of them.

Attestation is the part to check

Apple's Private Cloud Compute design is the clearest public description of what good looks like, whether or not you use Apple. The device encrypts each request only to server nodes whose attested measurements match a software release in a public transparency log. Apple says the nodes keep no general-purpose logging, keep no user data after the request, and give site reliability staff no privileged way around those rules. It also commits to publishing production software images for outside researchers.

Use that as a checklist for any confidential computing for RAG offer. Ask what exactly is measured: the model server only, or the whole stack that touches the prompt. Ask whether your client verifies the attestation before it sends a passage, or whether the provider checks it for you. Ask where the measurements are published and who can compare them. Ask what logs and metrics leave the enclave, and whether they can contain text.

If the answers are vague, you are back to a policy, just with better marketing.

What an enclave does not cover in a RAG pipeline

An enclave protects the model call. A RAG system is more than the model call.

Your vector store holds an embedding of every passage and often the passage text itself. Your embedding step may call a hosted API that is not in an enclave at all. Your gateway or app server sees every question and every answer in the clear before it forwards them. Your application logs, traces and caches can hold the same text long after the enclave forgot it. None of that is inside the attested boundary unless you put it there.

There are also limits inside the boundary. You are trusting the chip vendor's isolation and its attestation keys, and research on side channels against trusted execution environments is an active field. And an enclave does nothing about what the passages say: a poisoned document can still steer the model, which is why indirect prompt injection is a separate job. Confidential computing narrows who can read the prompt. It does not decide what should be in it.

Where homomorphic encryption fits, and where it does not

Homomorphic encryption is the other "encrypted AI" idea in the news, and it works differently: the server computes on data it cannot decrypt at all. Apple's write-up on homomorphic encryption shows a real retrieval use. Its private nearest neighbor search encrypts a query embedding on the device, the server scores it against a large index without seeing it, and the device decrypts the candidates. Apple uses it, with an anonymizing relay and differential privacy, to match landmarks in Enhanced Visual Search.

That is encrypted retrieval against someone else's database, with the reranking done on the device. It is not a hosted language model reading your passages under encryption. Fully homomorphic language-model inference exists as research and early previews, and we would want a reproducible benchmark before quoting any speed for it. For your own documents today, the cheaper version of "the server never sees it" is not sending it.

Keep the documents local, then send only what a question needs

Start where you have full control. RAG Converter's free converter runs as WebAssembly in your browser tab, so documents are read by the page and never sent to a server. The parsing stack comes from Remade with Rust, the memory-safe libraries behind the converter. The paid API is different: it takes a document over HTTP after you sign in, so use the browser for anything you would not hand to a vendor. More on that split in why convert documents locally and local RAG in your browser.

Then shrink what leaves. Scan the corpus for personal data before you index it, following this checklist, and send the model a few passages per question instead of whole files, the trade-off covered in RAG with frontier models. If a hosted model still has to see those passages, an attested enclave is a real improvement over a retention promise. Check the attestation yourself, and map what sits outside it before you call the pipeline private.

More on converting for RAG