LyraLearn AI Learning Platform
Exams
← Module 11 Β· AI Security
🎧 Listen

Data Protection and Privacy

The moment you send data to a model, you've made a privacy decision β€” often without realizing it. Every prompt is a data flow: text leaves your trust boundary, travels to a provider, may be logged or used to improve a service, and comes back. For enterprise and especially public-sector work, that flow has to be deliberate, documented, and defensible. An AI architect treats "which data goes where" as a design constraint, not an afterthought.

Diagram of data being classified by sensitivity and routed to a cloud model, kept on local infrastructure, or blocked entirely for secrets.

Which data goes to which provider

Not all data deserves the same destination. Classify before you route:

The architectural lever here is local-first as a privacy control. Running embeddings and, where possible, inference on-platform means sensitive text never crosses a third-party boundary. Local- first isn't just a performance or cost choice β€” it's the strongest privacy guarantee you can offer, because data that never leaves can't be leaked, logged, or subpoenaed elsewhere.

Minimize, encrypt, and document

Three practices make the difference between a passable design and an auditable one:

  1. PII minimization. Send the model the least data needed to answer. Redact or tokenize identifiers before they enter a prompt; retrieve passages, not whole records. The cheapest data to protect is the data you never sent.
  2. Encryption at rest. Embeddings, cached prompts, retrieved chunks, and the audit log are all data β€” encrypt them in storage (SQL Server TDE / column encryption, encrypted volumes) and in transit (TLS everywhere). Treat the vector store with the same care as the source database.
  3. Documented cross-border data flow. Write down where data physically goes β€” region, provider, sub-processors β€” and keep it current. Data residency is a hard requirement in much public-sector work, and "we don't know where the prompts go" fails a review on its own.

Mapping to expectations

These map cleanly onto NIST-style controls and common privacy frameworks: data minimization, access control, encryption, and a maintained record of processing. The point of writing them down is the same as in the threat model β€” an assessor can trace each control to the data it protects.

How LyraLearn applies this

LyraLearn computes embeddings locally so lesson and learner data stays on-platform; PII never enters the retrieval path because it indexes lesson content, not personal records. Stored embeddings and logs sit in an encrypted SQL Server 2025 database, transport is TLS-only, and the (small, well-defined) set of external calls is documented β€” so the cross-border story is a sentence, not a mystery.

🧠 Quiz yourself on this lesson →

Ask the AI Tutor

Grounded in the course lessons β€” it cites its sources and says when it doesn't know.