PII in logs and retention
A user pastes their passport number and a page of medical notes into your assistant. Where does that text go next? Into the trace, the request log, the analytics table, an annotation queue, an eval dataset, a cache and the nightly backup. Observability is only safe if you decide, on purpose, what to keep, what to hide, who can see it and when it's deleted.
In this lesson you'll learn to
- List the places personal data ends up in an LLM system, and why prompts carry more of it than ordinary logs.
- Decide what to store and for how long, with separate tiers for metadata, full content and datasets.
- Redact or pseudonymise personal data before it is stored, and know the limits of redaction.
- Control access, honour deletion requests across every copy, and check provider retention terms.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.