# Training data

> Find and hide private and sensitive data in tickets, chats and calls before a model learns from them. Measure the misses on your own labelled sample.

1.  [Home](/)
2.  [Use cases](/use-cases)
3.  Training data

Training data

# Take the private data out before your model takes it in

**Opami Protect finds the private and sensitive data in your training set and replaces it, with badges or with realistic fake data, before a single row reaches the model.** Your model learns your business. It does not learn the people in it.

[→ Protect console](https://console.opami.ai)[Read the quickstart](https://console.opami.ai/docs)

training-set.jsonl Fake dataBadges

Ticket 7731: João Costa_Person 1_**Full name**João CostaPedro Lima cannot log in from joao@lusomar.pt_Email 1_**Email address**joao@lusomar.ptpedro@atlas.pt.

Ana Silva_Person 1_**Full name**Ana SilvaMarta Reis called about her loan with Lusomar_Company 1_**Name**LusomarBanco Atlas.

Chat: Rui Mendes_Person 1_**Full name**Rui MendesTiago Lopes wants the delivery sent to Rua Augusta 20, Lisboa_Location 1_**Address**Rua Augusta 20, LisboaRua do Sol 8, Porto.

Call: the card ending 4417_Finance 1_**Card number**44179902 was charged twice.

Ticket 7740: Lena Vogel_Person 1_**Full name**Lena VogelClara Weber asks for a refund on order 48213.

Note: call Bruno Costa_Person 1_**Full name**Bruno CostaNuno Faria back on +351 912 345 678_Phone 1_**Phone number**+351 912 345 678+351 934 222 101 after 5 pm.

Survey: Sofia Ramos_Person 1_**Full name**Sofia RamosInês Duarte says the Porto_Location 1_**City**PortoBraga store never called back.

Ticket 7731: João Costa_Person 1_**Full name**João CostaPedro Lima cannot log in from joao@lusomar.pt_Email 1_**Email address**joao@lusomar.ptpedro@atlas.pt.

Ana Silva_Person 1_**Full name**Ana SilvaMarta Reis called about her loan with Lusomar_Company 1_**Name**LusomarBanco Atlas.

Chat: Rui Mendes_Person 1_**Full name**Rui MendesTiago Lopes wants the delivery sent to Rua Augusta 20, Lisboa_Location 1_**Address**Rua Augusta 20, LisboaRua do Sol 8, Porto.

Call: the card ending 4417_Finance 1_**Card number**44179902 was charged twice.

Ticket 7740: Lena Vogel_Person 1_**Full name**Lena VogelClara Weber asks for a refund on order 48213.

Note: call Bruno Costa_Person 1_**Full name**Bruno CostaNuno Faria back on +351 912 345 678_Phone 1_**Phone number**+351 912 345 678+351 934 222 101 after 5 pm.

Survey: Sofia Ramos_Person 1_**Full name**Sofia RamosInês Duarte says the Porto_Location 1_**City**PortoBraga store never called back.

Ticket 7731: João Costa_Person 1_**Full name**João CostaPedro Lima cannot log in from joao@lusomar.pt_Email 1_**Email address**joao@lusomar.ptpedro@atlas.pt.

Ana Silva_Person 1_**Full name**Ana SilvaMarta Reis called about her loan with Lusomar_Company 1_**Name**LusomarBanco Atlas.

Chat: Rui Mendes_Person 1_**Full name**Rui MendesTiago Lopes wants the delivery sent to Rua Augusta 20, Lisboa_Location 1_**Address**Rua Augusta 20, LisboaRua do Sol 8, Porto.

Call: the card ending 4417_Finance 1_**Card number**44179902 was charged twice.

Ticket 7740: Lena Vogel_Person 1_**Full name**Lena VogelClara Weber asks for a refund on order 48213.

Note: call Bruno Costa_Person 1_**Full name**Bruno CostaNuno Faria back on +351 912 345 678_Phone 1_**Phone number**+351 912 345 678+351 934 222 101 after 5 pm.

Survey: Sofia Ramos_Person 1_**Full name**Sofia RamosInês Duarte says the Porto_Location 1_**City**PortoBraga store never called back.

Ticket 7731: João Costa_Person 1_**Full name**João CostaPedro Lima cannot log in from joao@lusomar.pt_Email 1_**Email address**joao@lusomar.ptpedro@atlas.pt.

Ana Silva_Person 1_**Full name**Ana SilvaMarta Reis called about her loan with Lusomar_Company 1_**Name**LusomarBanco Atlas.

Chat: Rui Mendes_Person 1_**Full name**Rui MendesTiago Lopes wants the delivery sent to Rua Augusta 20, Lisboa_Location 1_**Address**Rua Augusta 20, LisboaRua do Sol 8, Porto.

Call: the card ending 4417_Finance 1_**Card number**44179902 was charged twice.

Ticket 7740: Lena Vogel_Person 1_**Full name**Lena VogelClara Weber asks for a refund on order 48213.

Note: call Bruno Costa_Person 1_**Full name**Bruno CostaNuno Faria back on +351 912 345 678_Phone 1_**Phone number**+351 912 345 678+351 934 222 101 after 5 pm.

Survey: Sofia Ramos_Person 1_**Full name**Sofia RamosInês Duarte says the Porto_Location 1_**City**PortoBraga store never called back.

Your dataWhat the model learns from

**Your model**learns your business, not the people in it

Rows of a training set scroll through a line marked Opami Protect. Above the line, the rows hold real names, email addresses and card numbers. Below it, the same rows hold realistic fake data, or badges, and only those reach your model.

## What a model learns, it can repeat

**Your tickets, chats and calls hold years of what your customers told you. They also hold your customers.** You want to fine-tune a model on them, or build test data that behaves like production, and researchers have shown that a trained model can repeat personal data it saw, word for word, including names, phone numbers and email addresses.

→ [Carlini and others, Extracting Training Data from Large Language Models, USENIX Security 2021](https://arxiv.org/abs/2012.07805)

A model fine-tuned on raw tickets

Finish the note: "Call the customer back on…"

Repeated, word for word, from the training data

A made-up example: asked to finish a note, a model fine-tuned on raw tickets writes out a real customer's name and phone number that it saw in its training data.

The common fixes fall short.

-   **A free detector and a sample read by hand** cannot tell you what slipped through in the rows you did not read.
    
-   **Blank tags break the data:** a model trained on \[NAME\] tags learns to write tags.
    
-   **Column rules mask the database** while the notes and comments go to staging as they are.
    

> ## AI should make people and companies stronger.
> 
> It should not cost them their private data, their knowledge or their edge. Private data should stay private.
> 
> If you are looking for a reason to say no to AI, we are the wrong partner

![](/img/greg-stoos-portrait.jpg)**Greg Stoos**Founder of Opami

## Clean the text before the model learns it

1.  1
    
    You run your text through Opami Protect, on your own servers or in our EU cloud.
    
2.  2
    
    It finds the private and sensitive data and hides it behind badges. Inside a request, one person keeps one badge.
    
3.  3
    
    You measure the misses on a sample you labelled by hand, before you train.
    

The original

With badges

With realistic fake data

Ana Silva_Person 1_**Full name**Ana SilvaMarta Reis called about her loan with Lusomar_Company 1_**Name**LusomarBanco Atlas.

Ana Silva_Person 1_**Full name**Ana SilvaMarta Reis called about her loan with Lusomar_Company 1_**Name**LusomarBanco Atlas.

Ana Silva_Person 1_**Full name**Ana SilvaMarta Reis called about her loan with Lusomar_Company 1_**Name**LusomarBanco Atlas.

_A made-up example. On the left, the original; on the right, realistic fake data in place of the private details._

## Fake names. Real knowledge

Opami Protect can replace the private data with realistic fake data, in 7 languages (English, Portuguese, French, Spanish, German, Italian and Dutch), so the text still reads like real text. **A model trained on it learns how your business talks, and does not learn to write tags or your customers' names.** The same replacement gives your staging and test environments data that behaves like production.

## Count the misses yourself

Run Opami Protect on a sample you labelled by hand. Then run the tool you use today on the same sample, and compare. **You learn what each one lets through before a model learns it.**

### We say how much it misses

Opami Protect leaks far less than the tools that exist today, and we say how much. Ask any other tool how much it misses. The vendors we studied do not say.

[Our public benchmark →](/benchmark)

## Find your next use case

The same Opami Protect, in front of other work. [See all use cases →](/use-cases)

[

### AI apps

The AI sees what it means. Not who it's about.

](/use-cases/ai-apps)[

### Agents & Assistants

The model plans. Your code knows the names.

](/use-cases/agents)[

### Workplace AI

The approved AI should be the best AI.

](/use-cases/workplace-ai)[

### Data analysis

Know your customers. Keep them to yourself.

](/use-cases/data-analysis)[

### Conversations

People say their card number out loud.

](/use-cases/conversations)[

### Redaction

The black marker does not scale.

](/use-cases/redaction)

## Questions

Something else on your mind? [Talk to us →](/contact)

How do I remove personal data before fine-tuning a model?

Run the text through Opami Protect before it enters your training set, and measure the misses on a sample you labelled by hand.

Can I make test data from production data?

Yes. Run the production text through Opami Protect and use the version with realistic fake data in staging and test. Free-text fields get the same treatment as the columns.

Can a fine-tuned model repeat personal data it saw?

Yes. Researchers have shown it. A model cannot easily unlearn a name, so the cheapest time to remove it is before training.

Will the same person get the same badge across my whole corpus?

Inside one request, yes. Opami Protect keeps nothing between requests, so a name that must stay the same across a whole corpus needs your own table today. We are working on a batch mode, coming later, that will give each person, company or project the same fake name across every document in the batch.

Is the data anonymous after this?

Often not, under the law. Data with fake names, or with badges, is often still personal data.

Does it catch everything?

No, Opami Protect does not catch everything. It leaks far less than the tools that exist today, and we say how much.

## Try it on your own data

Opami Protect is in private beta. Register at the console, run a sample of your own text, and see what it hides. No sales call.

[→ Protect console](https://console.opami.ai)[Read the quickstart](https://console.opami.ai/docs)
