Learn to defend AI products before launch: prompt injection, retrieval authorization, moderation, bias testing, privacy, and a risk-sized checklist.
The playbook that reached a customer acme-assist can now answer help-centre questions with citations, and the support team loves the demo.
The attack that looks like an ordinary question A customer asks acme-assist something normal: "How long does a UPI refund take?" Nothing about the...
Why the role of a message matters Chat models treat message roles differently.
Relevance is not authorization A vector search answers one question: which chunks are closest in meaning?
Checking what the model is about to say Output screening checks the final answer before the customer sees it.
Moderation is not injection defence A moderation layer is a separate check that screens inputs and outputs for harmful or policy-violating content...
The playbook that reached a customer acme-assist can now answer help-centre questions with citations, and the support...
The attack that looks like an ordinary question A customer asks acme-assist something normal: "How long does a UPI...
Why the role of a message matters Chat models treat message roles differently.
Relevance is not authorization A vector search answers one question: which chunks are closest in meaning?
Checking what the model is about to say Output screening checks the final answer before the customer sees it.
Moderation is not injection defence A moderation layer is a separate check that screens inputs and outputs for harmful...
Why the same question can get different answers Bias means a system produces systematically different outcomes for...
What leaves your infrastructure Every call to a hosted model sends the prompt, including retrieved text, to a third...
Matching intensity to risk An internal tool used by twelve engineers does not need the guardrails of a public chatbot...
Cost: everything here runs free on local models.
You attacked acme-assist with a poisoned help article, measured the attack, added structural separation and output...
Putting retrieved text in the system message happens because it feels like background instruction.
Roles that use the skills in this module.
AI Engineer
MLOps Engineer
Platform Engineer
Not a software engineer sheet. Every problem comes from real DevOps, SRE, Platform and Cloud interviews, from your first script to a system you build yourself.
Open the Coding Sheet