Most "RAG vs fine-tuning" comparisons talk about accuracy, cost and freshness. One difference gets less attention and matters a lot for business chatbots in the UK, EU, Canada and Australia: what happens when someone asks you to delete their data.

With retrieval-augmented generation (RAG), the knowledge lives in an index outside the model. You can find the records that came from one person and remove them. With fine-tuning, anything that went into the training set is spread across the model's weights. The practical fix is usually to retrain without it.

That alone is a good reason to keep customer records out of fine-tuning sets and to design your RAG index so deletion is easy from day one. This post shows the one habit that makes it easy: tag every chunk with its source at ingestion time.

The problem with "we'll just re-index later"

A typical first RAG build splits documents into chunks, embeds them and pushes them into a vector store. Each chunk gets a random ID. Weeks later someone asks: "Customer X wants their data removed. Is any of it in the chatbot?"

If the chunks don't record where they came from, you can't answer without rebuilding the whole index. Support tickets, call transcripts and CRM notes are the usual culprits, because they're useful for answers and full of names and order numbers.

Tag chunks with a source ID and a personal-data flag

Here's a minimal in-memory version of the idea. A real build would use your vector database's metadata fields, but the shape is the same.

from dataclasses import dataclass, field @dataclass class Chunk: chunk_id: str text: str source_id: str # the document or record this came from contains_personal: bool # set at ingestion time @dataclass class Index: chunks: dict = field(default_factory=dict) by_source: dict = field(default_factory=dict) def add(self, chunk: Chunk): self.chunks[chunk.chunk_id] = chunk self.by_source.setdefault(chunk.source_id, set()).add(chunk.chunk_id) def delete_source(self, source_id: str) -> int: ids = self.by_source.pop(source_id, set()) for cid in ids: del self.chunks[cid] return len(ids) def search(self, words): words = {w.lower() for w in words} hits = [c for c in self.chunks.values() if words & set(c.text.lower().split())] return [(c.chunk_id, c.source_id) for c in hits] 

Load two help articles and one support ticket that was split into two chunks:

idx = Index() idx.add(Chunk("faq-1", "returns are accepted within 30 days", "help/returns", False)) idx.add(Chunk("faq-2", "orders ship within 2 business days", "help/shipping", False)) idx.add(Chunk("tkt-881-a", "customer jane asked about returns on order 4471", "ticket/881", True)) idx.add(Chunk("tkt-881-b", "jane was refunded for order 4471", "ticket/881", True)) print("before:", idx.search(["returns", "refunded"])) print("deleted chunks:", idx.delete_source("ticket/881")) print("after:", idx.search(["returns", "refunded"])) print("personal chunks left:", sum(c.contains_personal for c in idx.chunks.values())) 

Output:

before: [('faq-1', 'help/returns'), ('tkt-881-a', 'ticket/881'), ('tkt-881-b', 'ticket/881')] deleted chunks: 2 after: [('faq-1', 'help/returns')] personal chunks left: 0 

One call removes every chunk that came from the ticket, and the chatbot can no longer retrieve it.

Map people to sources, not just chunks to sources

In a real system, a deletion request names a person, not a ticket. So keep a second lookup from customer ID to the source IDs that mention them (tickets, chats, emails). The deletion flow becomes:

  1. Look up every source linked to the customer.
  2. Call delete_source for each one in the vector store.
  3. Remove the same records from any cache or backup that feeds re-indexing, or they'll come back on the next rebuild.
  4. Log what was removed and when.

Most vector databases support filtered deletes by metadata, so step 2 is usually a single query per source.

Decide at ingestion what shouldn't go in at all

The cheapest personal data to delete is the data you never indexed. Before you ingest tickets or transcripts, ask whether the chatbot needs them. Often the useful part is the answer your team gave, which can be rewritten into a help article without names. The contains_personal flag helps here too: you can report how much personal data the index holds and push that number down.

Where fine-tuning still fits

None of this means fine-tuning is wrong. It's useful for tone, output format and narrow repeated tasks. The safe pattern is to fine-tune on examples with no personal data, and let RAG supply the facts. Then a deletion request only touches the index.

This is general engineering advice, not legal advice. Check UK GDPR, the EU GDPR, PIPEDA or Australia's Privacy Act with your own adviser.

If you're planning a chatbot that answers from your own documents and tickets, our GenAI chatbot development team builds RAG chatbots with this kind of data handling for businesses in the USA, UK, Canada and Australia.

FAQ

Can you remove data from a fine-tuned model?
Not directly. The data is built into the weights, so the usual fix is to retrain without it. That's why customer records shouldn't go into fine-tuning sets.

Does deleting a chunk from the vector store remove it everywhere?
Only from that index. Check caches, logs, backups and the raw document store that feeds re-indexing.

Should support tickets go into a RAG chatbot?
Only if the chatbot needs them. Turning common answers into anonymous help articles is usually safer and gives cleaner answers.

Originally published on the Dzimark blog.