Topic 4 of 5 · 5 min read
Consent and privacy when reusing production data
Goal: Decide whether a set of production logs may be reused for evals or fine-tuning under a stated policy.
Being able to read your logs does not mean you may reuse them: check what users were told, what they opted out of, how long you may keep the data and what your model provider allows, before logs enter an eval set or a training file. This is a design step, not a legal afterthought.
Check yourself · 1 of 3
What should you check before adding production conversations to a fine-tuning file?
This lesson is engineering guidance, not legal advice. Ask counsel for your jurisdiction and contracts.
Why it matters
Conversation logs hold names, health details, company secrets and sometimes passwords. Using them for a new purpose can breach your own terms, your customers' contracts or privacy law. A fine-tuned model may also reproduce training text, which makes a leak harder to undo than a deleted row.
The questions to ask, in order
- What did we tell users? The terms and privacy notice must cover using conversations to improve the product. If they do not, reuse needs consent or a notice change first.
- Did the user or the customer opt out? Store the flag with the trace and filter on it. Enterprise contracts often forbid reuse entirely.
- Purpose limitation. GDPR Article 5 says data collected for one purpose should not be processed in an incompatible way later. Debugging is not automatically the same as training.
- Data minimisation and storage limitation. Keep only what the case needs and delete it on a schedule.
- Can we remove the personal data? Redact names, emails, ids and free-text details, then spot check. Redaction is imperfect, so treat redacted data as still sensitive.
- What does the provider do with our data? API providers publish retention periods and training policies, for example a default of up to 30 days of retention for API usage at OpenAI. Check your own contract and settings.
- Evals or fine-tuning? Evals are usually a smaller step than training, since eval cases are few, reviewed and removable. Fine-tuning copies data into model weights and needs the stricter answer.
Before and after
Weak: "Dump last month of chats into the fine-tuning bucket." Better, a short rule in the pipeline:
def eligible(trace):
return (trace.consent_to_improve and not trace.customer_opted_out
and trace.age_days <= 90 and trace.region in ALLOWED_REGIONS)
What goes wrong
- Assuming internal use is free. Internal reuse is still a new purpose.
- Keeping raw logs forever. Retention limits apply to your copies too.
- Redacting only by pattern. A regex misses "my neighbour John in flat 4".
Examples
An enterprise opt-out
A SaaS company sells its assistant to two banks. One contract bans any reuse of conversation data. The pipeline filters on a customer flag, so the bank's traces never reach the failure-mining queue, even though the engineers can see them in the tracing tool.
Retention catches up
Raw traces are kept 30 days. Eval cases built from them are anonymised, so they stay. A reviewer finds a case with an order number left in. It is removed and the redaction step gets a new check.
Key points
- Check what users were told, what they opted out of and what customer contracts allow before reusing any log.
- Store consent and opt-out flags on the trace so pipelines can filter on them.
- Purpose limitation, data minimisation and storage limitation under GDPR Article 5 apply to your eval and training copies too.
- Redaction is imperfect, so treat redacted data as still sensitive and spot check it.
- Fine-tuning needs a stricter answer than evals because it copies data into model weights.
Common mistakes
- Treating anything the team can see in a log tool as free to use for training.
- Forgetting that customer contracts can forbid reuse even when users consented.
- Keeping raw copies in an eval repository with no retention schedule.
- Relying on pattern-based redaction alone.
Check yourself · 2 of 3
Which GDPR Article 5 principle says data collected for one purpose should not be processed in an incompatible way later?
Check yourself · 3 of 3
Which step makes evals a smaller privacy step than fine-tuning on the same logs?
Practice items, not counted towards your mastery.
Start here
- Your AI product needs evals (Hamel Husain) (opens in a new tab)ArticleFree
Explains why looking at real traces and building evals from them is the core loop of improving an LLM product.
- A Field Guide to Rapidly Improving AI Products (Hamel Husain) (opens in a new tab)ArticleFree
Practical advice on error analysis, reading data and building a feedback loop around real failures.
- Patterns for Building LLM-based Systems and Products (Eugene Yan) (opens in a new tab)ArticleFree
Covers evals and collecting user feedback as the base of a data flywheel for LLM products.
More for this topic
- Art. 5 GDPR: Principles relating to processing of personal data (opens in a new tab)StandardFree
The text of purpose limitation, data minimisation and storage limitation that govern reusing logs.
- Your data (OpenAI API guide) (opens in a new tab)DocsFree
States how long API data is retained and what controls exist, the kind of provider rule that limits log reuse.