Case study
A privacy-first LLM pipeline analyzing 500K items a day
LLM-powered analysis where customers control what data reaches the model, and sensitive values are pseudonymized before they leave.
The problem
New product features needed LLM-based analysis of customer data. Sending raw data to an LLM wasn't acceptable: it can contain PII, and customers need control over what is shared with a model.
Context and scale
- About 500,000 items to analyze per day.
- Part of replacing a third-party vendor tool with an in-house product.
- Customer data that often contains PII, such as email addresses, across customers with different sensitivity requirements.
My role
I architected and implemented the privacy-first pipeline, from sensitivity-based data handling through the LLM execution layer.
Diagnosis
As a Security Champion, I already worked with the organization's data-classification standards, so I knew which fields were sensitive and how each had to be handled. The design started from those classifications instead of adding redaction afterwards.
Solution
- Pipelines that handle each field according to its data-sensitivity level.
- Customer-controlled settings: customers choose which data can be sent to the LLM and which can't.
- Reversible pseudonymization: values like email addresses are replaced with placeholders before the request, the mapping stays in memory, and the real values are restored when the response comes back.
- LLM routing across tiered models to balance result quality against API cost.
- Server-Sent Events for real-time token streaming, and semantic caching to avoid redundant LLM calls.
- Observability dashboards for guardrails, token usage, and model telemetry.
Result
Privacy-ready LLM analysis at around 500K items a day. The model sees only what customers allow, PII is pseudonymized before it leaves, and responses are mapped back to real values, so result quality stays high.
Lessons
- Start privacy design from data classification, not from the model. Knowing which fields were sensitive, and how sensitive, shaped the whole pipeline.
- Pseudonymize instead of deleting. Reversible placeholders keep the structure the model needs, so protecting PII didn't cost result quality.
- Customer control builds trust. Letting customers decide what reaches the LLM made the feature easier to adopt.
- Treat LLM calls like any other expensive dependency: route by need, cache repeated work, and watch tokens and cost from day one.
Technologies
- LLMs
- PII redaction
- Data classification
- SSE
- Semantic caching
- AI observability
Details are generalized to respect employer confidentiality.
Next case studyFrom 120 minutes to under 5: real-time event processing at 24× speed