Keeping private data out of the AI

Your app sends text to an AI company. How do you keep people's names, emails and phone numbers out of it?

In production · about 5 minutes

Everything your app sends to the model leaves your hands: the question, the documents, the chat so far. If people's names and emails are in that text, the model can repeat them to someone else. Swap them out in code before the text is sent.

Picture: a post with the name Sanjay Rao and the email sanjay.rao@example.com goes through a code step and comes out with the placeholders member and email in their place before it reaches the model