Lesson 1: Outdated answers and exposed documents: a real failure · 7 min
Before you begin · The policy assistant · What went wrong
Learners sign in, so every finish and score is recorded. 6 fields to fill in with your details.



Minutes are an estimate.
Before you begin · The policy assistant · What went wrong
Tokens and context · Embeddings and retrieval · Match the term
Which pattern? · Order the pipeline · Design choice
Where permissions break · Enforce at retrieval · Check
Indirect prompt injection · Defences · Spot the injection
Evaluation · Ungrounded or grounded?
10 questions, 80% to pass. The result is saved to the learner's record.
Taken from the course itself.
In the Kestrel case, what caused the restricted salary band to appear in an answer?
Answer: Retrieval returned a restricted chunk because the index had no permission data. The index stored text without access metadata, and retrieval did not filter by who was asking. The model only wrote from what it was handed, so the control had to sit at retrieval. Asking the model nicely in the prompt, or raising the temperature, would not have fixed it.
Lesson 1: Outdated answers and exposed documents: a real failure
Which change fixes answers that contradict each other because three versions of a document are indexed?
Answer: Version the index, filter by effective date and deduplicate. Version the index, filter by effective date and remove duplicates, so the retrieved set holds only the current text. Raising top-k adds more of the same, and a higher temperature only changes the wording.
Lesson 3: Choosing a pattern and building the RAG pipeline
A retrieved web page contains hidden text telling the model to send the user's notes elsewhere. What is the best first defence?
Answer: Treat retrieved text as data, limit the tools and require confirmation for actions. Treat retrieved content as data and limit what the assistant can do, so that even a followed instruction has little effect and an action needs confirmation. Hoping the model ignores it, or retrieving more pages to dilute it, is not a defence.
Lesson 5: Resisting hidden instructions in retrieved content
Retrieval returns near-duplicates from three document versions.
Best response: Version the index, filter by effective date, deduplicate.
Weaker responses: Raise top-k; Increase temperature.
Comments from trainers
No comments yet. Tell other trainers how the course went.
Your comment
Comments are public. We remove spam and personal details.