Secure RAG with Sensitive Data Protection
Enterprise Retrieval-Augmented Generation architecture with automated Google Cloud DLP inspection.

Context and problem
Unfiltered document ingestion into enterprise vector databases embeds raw PII directly into dense vector indexes, creating cross-tenant data leakage risks during similarity retrieval.
A production-ready reference architecture and notebook demonstration showing how to integrate Google Cloud Sensitive Data Protection into vector search and RAG pipelines to protect confidential records during enterprise generative query processing.
My contribution
Authored the reference architecture and end-to-end executable notebook, which was reviewed and merged into Google Cloud’s official `GoogleCloudPlatform/generative-ai` repository (PR #518).
Approach and key decisions
- Inserted pre-ingestion Cloud DLP inspection and synthetic surrogate replacement ahead of chunking and embedding generation.
- Demonstrated zero-PII vector indexing on Vertex AI while preserving authorized response re-identification within tenant security boundaries.
- Presented the architectural pattern at Google Cloud Next 2025 in Las Vegas.
Outcome
Merged into Google’s official `GoogleCloudPlatform/generative-ai` reference repository and featured as a conference session at Google Cloud Next 2025.
The source code is public, so the implementation speaks for itself. Questions about design decisions or adapting it to your environment are welcome: get in touch
Architecture Dossier
- Role
- Creator & Maintainer
- Stage
- Active Open Source
- Category
- Security & privacy
- Source code
- Public repository
Technology
- Python
- Vertex AI
- Cloud DLP
- Vector Search
- LangChain
Topics
- RAG