Как отдавать письма клиентов во внешнюю LLM и не отдавать их персональные данные

habrahabr.ru · world
Full story

The author built an AI agent to process emails from internal technical support. Those emails contain personal data including full names, phone numbers, passports, card numbers and IP addresses. Since the author has no in-house language model, the text is sent to an external provider. The article explains the protection set up between the mailbox and the model: what data is detected and replaced, how the model is stopped from breaking labels, and how the values are restored in the response. It includes examples of input and output and a prompt.

Я делал ИИ-агента, который разбирает почту внутренней техподдержки. В письмах есть всё: ФИО, телефоны, паспорта, номера карт, IP-адреса. Своей языковой модели нет, значит, текст уходит внешнему провайдеру. Рассказываю, как устроена защита между почтой и моделью: что ищем, чем заменяем, как не дать модели сломать метки и как вернуть значения в ответ. С примерами входа и выхода, промптом и кодом. Читать далее

Read full article → Compare