Learn

GDPR and internal RAG: what EU teams need to check

By Amine Zaghdoudi, CTO and co-founder, Ragirag ·

An internal RAG assistant processes personal data as soon as your documents contain names, emails or HR records, which is almost always. Before rollout, map where the data goes, who processes it, how it is deleted, and how you will answer access and erasure requests. This is a practical checklist, not legal advice.

Start with roles and a contract

For documents your organisation uploads, your organisation is normally the controller and the RAG provider is a processor acting on your instructions. The GDPR requires a written contract with the processor covering the subject matter, duration, nature and purpose of processing, the types of data, and the processor’s obligations (Article 28). In practice this is a data processing agreement, or DPA.

Ask the provider for its DPA before uploading real documents, and check that it lists the sub-processors it relies on and how you will be told about changes.

Map the full data flow, not just the hosting location

“Hosted in the EU” is a good start but rarely the whole picture. A RAG system has several steps, and each can involve a different party in a different country. Write down, for one document and one question, every place the content travels.

  • Storage of the original files, the database and the vector index.
  • Embedding: turning document passages and questions into vectors, often done by an external model provider.
  • Generation: sending the question and retrieved passages to a language model.
  • Logs, backups and monitoring tools that may capture prompts or answers.
  • Email or support tools that receive any content.

Check transfers outside the EU

If any step sends personal data to a country outside the European Economic Area, the GDPR’s transfer rules apply (Chapter V, Articles 44 and following). The transfer needs a legal basis, such as an adequacy decision for that country or appropriate safeguards like Standard Contractual Clauses. Remote access by the provider’s staff from outside the EU can also count as a transfer.

For an AI assistant, the usual transfer points are the embedding and generation providers. Some platforms let you choose a provider per use: in Ragirag, for example, each team can pick an EU model provider for answer generation, while embeddings are created with a US provider. Know which applies to each team before uploading sensitive material.

Minimise what goes in

Data minimisation (Article 5(1)(c)) applies to what you upload. An assistant built to answer policy questions does not need individual employment contracts. Upload the documents that serve the purpose, and keep files with special category data, such as health information, out unless there is a clear need and a legal basis.

Use the tool’s own controls to narrow access further: separate knowledge spaces per team, and document-level restrictions for the few files a team needs but not everyone in it should read.

Treat embeddings and logs as personal data

Vector embeddings of a passage that names a person should be treated with the same care as the passage itself. They are derived from personal data, they are stored next to the document identifier, and the passage text is usually kept with them for citations. The same goes for chat history: questions often mention colleagues by name.

Ask how long chat history is kept, whether prompts appear in application logs, and whether any of it is used to train or improve models. The answer to the last question should be no.

Make deletion complete

Storage limitation (Article 5(1)(e)) and the right to erasure (Article 17) only work if deleting a document removes every copy the system made. Confirm that deleting a document also deletes its chunks and vectors, not only the file, and that deleting a team or account removes chat history too. Ask how long backups keep deleted data.

Prepare for data subject requests

Employees and other people named in your documents keep their rights of access, rectification and erasure (Articles 15 to 17). Decide in advance how you will find their data in the assistant: which teams hold which document types, who can search them, and how a correction to a source document flows through to future answers.

Records, risk assessment and the AI Act

Add the assistant to your record of processing activities (Article 30). If the documents include large volumes of sensitive data, or the assistant supports decisions about people, assess whether a data protection impact assessment is required (Article 35).

The EU AI Act adds obligations that depend on how the system is used. A question-answering assistant over internal documents is generally not a high-risk use, but using one to evaluate candidates or employees could fall into a high-risk category. The Act also asks organisations that deploy AI to ensure their staff have sufficient AI literacy. Obligations are phasing in over several years, so check the current timeline with your legal team.

A short checklist

Before rolling out an internal RAG assistant in an EU organisation, confirm that you have:

  1. a signed DPA and the current list of sub-processors;
  2. a data-flow map covering storage, embeddings, generation, logs and backups;
  3. a legal basis for each transfer outside the EEA;
  4. a document scope that matches the purpose, with sensitive files restricted or excluded;
  5. confirmation that content is not used for model training;
  6. a tested deletion path that removes files, vectors and history;
  7. a procedure for access and erasure requests;
  8. an entry in your record of processing activities, and a DPIA decision.