Zero data retention in RAG: what it covers and what it doesn't
Zero data retention means a provider agrees not to store prompts and responses after an approved request, but each provider scopes it to certain endpoints, keeps some safety data anyway, and cannot stop a breached or dishonest hop from copying a request in flight, so a RAG team should keep the corpus local and send less.
Does zero data retention make a hosted RAG pipeline private?
No. Zero data retention covers storage of eligible inference requests at one provider. Hosted vector stores, file tools and logs may sit outside it, safety records can still be kept, and November 2026 research found ZDR-flagged prompts copied by intermediaries. Keep conversion and the index local, and send only the passages a question needs.
What zero data retention means at each provider
Zero data retention, or ZDR, is an agreement about storage. The provider processes the request and then does not keep the prompt or the response. The details differ by provider, and they are narrower than the label suggests.
OpenAI's data controls page says abuse monitoring logs are kept for up to 30 days by default, and that ZDR and Modified Abuse Monitoring require prior approval. With ZDR on, the `store` parameter for Responses and Chat Completions is always treated as false. Endpoints marked as not eligible may still store application state. `/v1/vector_stores` is one of them: its state is kept until you delete it.
Anthropic's API retention documentation describes ZDR as enabled per organization by its account team. Features on the Messages API that the eligibility table marks as not covered, such as code execution, stay outside it. Its Privacy Center adds that safety classifier results are still retained, and that Covered Models require limited retention.
OpenRouter's ZDR documentation sorts endpoints into three tiers: ZDR, Safety Retention, and Retention and Training. Enforcement can be set for the account, a model group, a guardrail or one request. It applies to provider routing for inference, not to plugins and tools, and in-memory prompt caching is not counted as retention.
What the November canary research showed
On November 19, 2026, Dragos published canary token research led by HD Moore. From July through November the team sent roughly two million prompts carrying unique URLs and credentials to AI services, then watched where those secrets were used.
Three findings matter for anyone who relies on ZDR. Dragos found evidence that at least three hosting providers had been breached, and in two of those breaches some stolen requests were marked ZDR. Marketplace resellers could read and keep customer prompts with ordinary request logging. One AI lab fetched the secret URLs from roughly two-thirds of the requests sent to its models with no data collection or ZDR set. The report's summary is plain: a privacy flag only binds the first hop, and every hop on a routed path can see the whole prompt and response.
Three days later, OpenRouter reported that it had off-boarded three providers, removed 125 endpoints from ZDR eligibility and notified affected customers, and that it found no breach of OpenRouter itself. The lesson is not that ZDR is worthless. It is a contract term about storage. It does not control who handles a request while it is in flight, and it is only as good as each party's honesty and security.
Map your RAG pipeline against the agreement
A RAG system sends data to more places than the final model call. Walk each stage and ask whether a hosted service touches it, and whether that service's ZDR scope names it.
- Conversion: parsing PDFs, Word files and scans into text. If a hosted parser does this, the whole document leaves your machine, not just a snippet. - Chunk storage: the JSONL rows you keep. Rows in a hosted store follow that store's retention, not the inference agreement. - Embeddings: OpenAI's table lists its embeddings endpoint as ZDR eligible, but each provider sets its own scope, so check the one you use. - The vector index and file search: hosted vector stores commonly sit outside the agreement, as OpenAI's does. - Generation: the model call that ZDR was written for, carrying the question and the retrieved passages. - Tools, plugins and traces: agent tools, web plugins and observability services each have their own terms.
Most of the volume is in the first four stages. A single answer sends a few passages, while indexing sends every page you own. That is why the data residency guide and this checklist meet in the same place: the corpus itself.
Keep the corpus local and send less
The surest way to shrink the exposure is to keep conversion, chunks and the index on hardware you control, and to send a hosted model only the passages a question needs. RAG with frontier models is that split: convert locally, and spend the frontier budget only on the answer. Converting documents locally does the heaviest step without an upload. Browser conversion is a Preview capability at ragconverter.com: files are parsed in the tab by the rusty_rag parsers from Remade with Rust, and the output is a chunks.jsonl file you keep. Semantic embeddings in the browser are also Preview. A persistent corpus and query API are Planned, not shipped, so the index lives in your own vector database.
Before indexing, look at what the chunks contain. The converter flags email addresses, phone numbers, Luhn-valid card numbers and vendor-prefixed credentials in each passage's metadata, and scanning a corpus before indexing explains how to act on those flags. A credential that never reaches a prompt cannot be stolen from one.
None of this makes hosted inference private. The passages you do send still travel the provider's path. Dragos suggests seeding your own canary: put a fake credential in the context your pipeline already sends and treat any use of it as an incident. That turns a promise into something you can check.
Questions to ask your provider in writing
Provider terms change often, and the pages above were read on November 24, 2026. Before you rely on zero data retention, get answers to these:
- Is ZDR approved for this organization or project, and how can we confirm it in the console? - Which endpoints and features does it cover, and which of ours are excluded, such as vector stores, file search, code execution or tools? - What is retained regardless: classifier results, safety records, flagged content, legal holds? - Does the agreement bind every subprocessor and router hop, or only you? - Is prompt caching counted as retention?
If the answers depend on a router, pin the upstream providers yourself. For a product that calls conversion from code, the developer API guide covers what the stateless endpoint returns today.