Research questionHow can RAG systems keep private documents and queries from leaking sensitive information?RAG systems handle confidential content at several points: user queries and retrieved documents may be sent to an external generator, and document embeddings stored in vector databases can reveal or enable reconstruction of their source text. Protections must limit this exposure without removing the context needed for useful answers or altering representations so much that retrieval suffers.