By Sagar Shankaran, Founder of CallSphere
RAG over sensitive data requires careful tenant isolation, embedding privacy, and access control. The 2026 patterns for safe RAG.
Key takeaways
RAG indexes documents. Documents contain sensitive data. The vector index is searchable; the retrieved chunks flow to LLM providers; outputs may contain sensitive content. Each step is a potential leak.
By 2026 the patterns for privacy-respecting RAG are well-understood. This piece walks through the layered defense.
flowchart TB
Threats[Threats] --> T1[Cross-tenant leak]
Threats --> T2[Cross-user leak]
Threats --> T3[Provider data exposure]
Threats --> T4[Embedding inversion]
Threats --> T5[Prompt-injection exfiltration]
Five distinct threats. Each has its own mitigations.
Documents from one tenant's corpus retrieved for another tenant's query.
Defenses:
Within a tenant, documents user A should not see retrieved for user B's query.
Hear it before you finish reading
Talk to a live CallSphere AI voice agent for real estate in your browser — 60 seconds, no signup.
Defenses:
Retrieved chunks sent to an LLM provider may be processed, logged, or used for training.
Defenses:
In theory, an attacker with embeddings can partially reconstruct the original text.
Defenses:
In practice for 2026, full inversion is not yet a practical attack on most embeddings. But access controls should still treat the embedding store as sensitive.
A malicious document in the corpus contains instructions to "exfiltrate the previous context."
Defenses:
Still reading? Stop comparing — try CallSphere live.
See the real estate AI agent handle a real call — complete, industry-specific, and live in your browser. No signup.
flowchart LR
Doc[Document with PII] --> Redact[PII redaction at index]
Redact --> Embed[Embed with model]
Embed --> Store[Per-tenant vector store]
Query[User query + ACL] --> Retrieve[Filter by tenant + ACL]
Retrieve --> Context[Filtered context]
Context --> LLM[LLM via BAA provider]
LLM --> Output[Output via guard]
Each layer adds a check. Compromise of one layer does not compromise the system.
When indexing sensitive data:
flowchart TD
Q[Query] --> User[Resolve user identity]
User --> Perms[Resolve permissions]
Perms --> Filter[Filter retrievable docs]
Filter --> Top[Top K from filtered set]
The filter is non-negotiable. Without it, the retriever returns everything and you trust the LLM not to use what it shouldn't — a bad bet.
Even with everything else right, the output may include sensitive content the model inferred. Patterns:
Every retrieval should be logged with:
Compliance reviews depend on this log. Without it, breach analysis is guesswork.
| Standard | RAG-relevant requirement |
|---|---|
| HIPAA | BAA with provider, PHI redaction at boundaries |
| GDPR | DSAR, right-to-be-forgotten support, EU residency |
| Access logs, encryption at rest and transit | |
| PCI DSS | No card data in indexes |
A privacy-first RAG architecture often satisfies multiple frameworks at once.
For our healthcare voice agent's RAG:
Layered defenses; no single failure compromises the system.

Written by
Sagar Shankaran· Founder, CallSphere
LinkedInSagar Shankaran is the founder of CallSphere, where he builds production AI voice and chat agents deployed across healthcare, hospitality, real estate, and home services. He writes about agentic AI, LLM engineering, and shipping voice agents that handle real calls in production.
See how AI voice agents work for your industry. Live demo available -- no signup required.
Reasoning models (Claude Mythos, o3, Opus 4.7, DeepSeek V4-Pro) for browser-side llms (webgpu) — a May 2026 comparison grounded in current model prices, benchmark...
Self-hosted on-prem stack for browser-side llms (webgpu) — a May 2026 comparison grounded in current model prices, benchmarks, and production patterns.
Reasoning models (Claude Mythos, o3, Opus 4.7, DeepSeek V4-Pro) for edge / on-device llm inference — a May 2026 comparison grounded in current model prices, bench...
Self-hosted on-prem stack for edge / on-device llm inference — a May 2026 comparison grounded in current model prices, benchmarks, and production patterns.
DeepSeek V4 vs Llama 4 vs Qwen 3.5 vs Mistral Large 3 for edge / on-device llm inference — a May 2026 comparison grounded in current model prices, benchmarks, and...
Reasoning models (Claude Mythos, o3, Opus 4.7, DeepSeek V4-Pro) for multilingual customer support — a May 2026 comparison grounded in current model prices, benchm...
© 2026 CallSphere Inc. All rights reserved.
Made within San Francisco
Watch how CallSphere handles real customer calls, schedules appointments, and processes payments — live.
Try Live DemoBook a DemoCalculate Your ROI