Data Residency for RAG: What Actually Has to Stay In-Region
For a RAG system, data residency covers four things: source documents, the embeddings derived from them, retrieved content in transit, and logs. Each can land in a different region depending on where your vendors run, so the vector database's location is only part of the exposure.
The useful question isn't whether your vector database is in the right region. It's which of these four things actually needs to be, and what your contract or regulation actually requires for each.
Vendors Covered in this Article
Disclosure: We may earn a commission if you buy through some links on this page. It doesn't change what we recommend.
Embeddings carry more of the original content than teams assume
It's tempting to treat embeddings as anonymized, since they're just arrays of numbers rather than readable text. They're not anonymized in any legal sense: given the same embedding model, an embedding can often be used to reconstruct something close to the original text, and regulators that care about where personal data lives generally treat an embedding of personal data as personal data, not as a derived, exempt artifact. If your residency obligation covers the source document, assume it covers the embedding too, and check where your embedding model actually runs, not just where you store the resulting vectors.
Where does the embedding call execute, beyond where the index lives?
If you store vectors in an in-region vector database but call a hosted embedding API that runs in a different region, the source text crosses that boundary on every embedding call, even if the resulting vector never leaves. This is the single most common residency gap in RAG systems: the storage layer is compliant, and the compute layer that produced what's stored isn't. Check this for every hosted component in the pipeline, not only the embedding call: a reranking API or a generation model with the same out-of-region execution problem creates the identical gap.
Decide per data type, using your actual obligation, not a default
Work through source documents, embeddings, retrieved content in transit, and logs as separate categories, and check each against the specific residency requirement you're under, whether that's a customer contract, a sector rule, or a jurisdiction's data protection law. Some obligations only cover the source document; others explicitly extend to derived data like embeddings. Don't assume the strictest reading applies everywhere if your actual contract or regulation says otherwise, and don't assume the loosest reading applies either. Read the specific text.
Logs and observability are the residency gap nobody checks
Retrieved content and query text often end up in a logging or observability pipeline that runs on infrastructure in a different region than the rest of the stack, especially if that pipeline is a third-party tool adopted for convenience. This is frequently the actual residency issue in an otherwise well-architected system: the application and database are in the right place, and the logs quietly aren't.
This gap is easy to miss because the logging pipeline usually predates the RAG project itself: a team adopts an observability tool for general application monitoring, then routes the RAG pipeline's logs into it without re-checking whether that tool's region matches what the RAG system's data now requires. Treat every new pipeline that touches query text or retrieved content as a fresh residency question, even when the tool itself is already approved for other use cases.
A residency checklist to run against each data category
- Where does the source document live, and does that match the requirement?
- Where does the embedding model actually execute, not just where the resulting vector is stored?
- Where does retrieved content travel in transit, including any reranking or generation calls?
- Where do logs and observability data for this pipeline live?
- Does your written obligation cover derived data like embeddings, or only source documents?
Is data sovereignty the same as data residency?
Data residency asks where data is stored or processed. Data sovereignty asks who can compel access to it regardless of where it sits, since infrastructure run by a company subject to another country's laws can potentially be compelled to produce data even when that data physically stays in-region. If your obligation is sovereignty rather than residency, choosing an in-region data center from a vendor headquartered elsewhere may not satisfy it, and that distinction is worth confirming with whoever wrote the requirement rather than assuming the two are interchangeable.
What Good Looks Like
Good data residency practice for a RAG system means you've checked source documents, embeddings, retrieved content in transit, and logs separately against your actual obligation, not just confirmed the vector database's region.
Building The Capability (5-Stage Skill Ladder)
How to Get Started
Disclosure: We may earn a commission if you buy through some links on this page. It doesn't change what we recommend.
Drata can help track which residency and sovereignty requirements apply to which systems as part of a broader compliance program, though the region decisions themselves still have to be made by you and legal.
Vanta plays a similar role for organizing and evidencing compliance obligations, useful once you've done the harder work of mapping what each requirement actually covers.
Frequently Asked Questions
Are embeddings considered personal data if the source document is?
Treat them that way unless you have specific legal advice otherwise. Embeddings can often be used to reconstruct something close to the original text, and most frameworks that regulate where personal data lives extend that to data derived from it, not just the original document.
What's the most common data residency gap in RAG systems?
The embedding call itself, when a team stores vectors in an in-region database but calls a hosted embedding API running in a different region. The source text crosses the boundary on every call even though the stored vector never does.
Is data residency the same as data sovereignty?
No. Residency is about where data is stored or processed; sovereignty is about who can be compelled to produce it regardless of location, since infrastructure run by a company under another country's laws can potentially be compelled to disclose data even if it physically stays in-region.
About the numbers
This guide doesn't quote a sourced benchmark. Figures in it are estimates or general guidance, so check them against your own numbers.
Related Guides
A Go-Live Checklist for Shipping a RAG Pipeline
The specific steps to check before a RAG pipeline goes live: index warm-up, model version pinning, a canary check, and a real rollback plan.
Where Your Customer Data Actually Lives, and Why It Matters
What data residency and sovereignty rules actually require, and how to figure out where your customer data needs to live.
Data Residency Questions Every CTO Gets Asked (And How to Actually Answer Them)
Plain answers to the data residency and sovereignty questions that come up in enterprise sales and compliance reviews, before you need a legal team.
What Data Residency Actually Requires From Your Architecture
Data residency is not solved by picking a cloud region. Here is where storage, processing, backups, and logs actually diverge, and when to loop in counsel.
Why Your Ingestion Pipeline Needs to Survive Being Rerun
A guide to idempotent data pipelines, why retries and reruns are inevitable, and the specific patterns that keep a rerun from duplicating or corrupting data.
Where Your Data Actually Lives, and Why It Matters
How to figure out which of your data actually falls under residency or sovereignty rules, and what to check before assuming your cloud region is enough.